Picraft

Latest version: v1.0

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.0

========================

The major news in 1.0 is that the API is now considered stable (so I won't make
backwards incompatible changes from here on without lots of warning,
deprecation, etc.)

The new features in 1.0 are:

* The new :mod:`~picraft.turtle` module implements a classic logo-like turtle
in the Minecraft world
* A rudimentary :attr:`~picraft.player.Player.direction` attribute is now
available in Minecraft Pi (`20`_)

The docs have also undergone some re-organization and expansion to make them
a bit more friendly.

.. _20: https://github.com/waveform80/picraft/issues/20

0.6

* A new :func:`~picraft.vector.sphere` generator function was added (`13`_)
* The :attr:`~picraft.world.World.blocks` attribute was updated to permit
arbitrary sequences of vectors to be queried and assigned
* Event decorators can now be used in classes with the new
:meth:`~picraft.events.Events.has_handlers` decorator (`14`_)
* Installation instructions have been simplified, along with several recipes
and code examples throughout the docs (`15`_, `16`_)
* When used with a Raspberry Juice server, chat events can now be monitored and
reacted to using event decorators (`19`_); many thanks to GitHub user
wh11e7rue for not just suggesting the idea but providing a fantastically
complete pull-request implementing it!

And fixes some bugs:

* The default for ``ignore_errors`` was changed so that picraft's network
behaviour now matches mcpi's by default (`18`_)
* A silly bug in :func:`~picraft.vector.circle` prevented the *center*
parameter from working correctly

.. _13: https://github.com/waveform80/picraft/issues/13
.. _14: https://github.com/waveform80/picraft/issues/14
.. _15: https://github.com/waveform80/picraft/issues/15
.. _16: https://github.com/waveform80/picraft/issues/16
.. _17: https://github.com/waveform80/picraft/issues/17
.. _18: https://github.com/waveform80/picraft/issues/18
.. _19: https://github.com/waveform80/picraft/issues/19

0.5

* The major news is the new obj loader and renderer in the
:class:`~picraft.render.Model` class. This includes lots of good stuff like
bounds calculation, scaling, material mapping by map or by callable,
sub-component querying by group, etc. It's also tolerably quick (`10`_)
* As part of this work a new function was added to calculate the coordinates
necessary to fill a polygon. This is the new :func:`~picraft.vector.filled`
function (`12`_)
* Lots more doc revisions, including new and fixed recipes, lots more
screenshots, and extensions to the chapter documenting vectors.

.. _10: https://github.com/waveform80/picraft/issues/10
.. _12: https://github.com/waveform80/picraft/issues/12

0.4

* The events system has been expanded considerably to include an event-driven
programming paradigm (decorate functions to tell picraft when to call them,
e.g. in response to player movement or block hits). This includes the ability
to run event handlers in parallel with automatic threading
* Add support for circle drawing through an arbitrary plane. I'm still not
happy with the implementation, and may revise it in future editions, but
I am happy with the API so it's worth releasing for now (`7`_)
* Add Raspbian packaging; we've probably got to the point where I need to start
making guarantees about backward compatibililty in which case it's probably
time to make this more generally accessible by including deb packaging
(`8`_)
* Lots of doc revisions including a new vectors chapter, more recipes, and so
on!

.. _7: https://github.com/waveform80/picraft/issues/7
.. _8: https://github.com/waveform80/picraft/issues/8

0.3

* Add support for querying a range of blocks with one transaction on the
Raspberry Juice server (`1`_)
* Add support for rotation of vectors about an arbitrary line (`6`_)
* Add bitwise operations and rounding of vectors
* Lots of documentation updates (fixes to links, new recipes, events documented
properly, etc.)

.. _1: https://github.com/waveform80/picraft/issues/1
.. _6: https://github.com/waveform80/picraft/issues/6

0.2

stupid bug in 0.1 (but what are alphas for?). It also adds a couple of minor
features:

* Fix a stupid error which caused ``block.data`` and ``block.color`` (which
make up the block database) to be excluded from the PyPI build (`3`_)
* Fix being able to set empty block ranges (`2`_)
* Fix being able to set block ranges with non-unit steps (`4`_)
* Preliminary implementation of getBlocks support (`1`_)

.. _1: https://github.com/waveform80/picraft/issues/1
.. _2: https://github.com/waveform80/picraft/issues/2
.. _3: https://github.com/waveform80/picraft/issues/3
.. _4: https://github.com/waveform80/picraft/issues/4

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.