Py5

Latest version: v0.10.4a2

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

Scan your dependencies

Page 2 of 3

128100140.7.2a0

New Features:
* py5 now works on OSX with the generic python interpreter. There are still a few OSX-specific problems but there is a clear path between this release and cross-platform feature parity.

Bug fixes:
* 4
* 71
* 72

128100130.7.1a6

New Features:

* py5 now requires Java 17 to be installed on your computer. If `JAVA_HOME` is set, it must point to your Java 17 installation.
* Update Processing jars to version 4.0b6. This means py5 now supports the new features in that release, including the new commands for controlling the Sketch window such as `window_move()` and `window_title()`.
* Improvements to py5 to enable packaging with [pyinstaller](https://pyinstaller.readthedocs.io/en/stable/). In the near future I will add documentation to the py5 website explaining how to do this. If you can't wait that long, [have a look at this gist for a working example](https://gist.github.com/hx2A/5f664f2934723f47aa05886c99a22c9d). That example has room for improvement, and will be improved before the documentation is finalized.
* The typehints have been updated to conform to [PEP 585](https://peps.python.org/pep-0585/). Also, the numpy typing package `nptyping` has been removed in favor of using the numpy typehint features introduced in versions 1.20 and 1.21. This version of py5 now requires `numpy>=1.21`, but that shouldn't be a problem for anyone because that version has been out for almost a year now and most likely you have version 1.22 installed already.
* The `run_sketch` command line tool now accepts command line arguments that will get passed to Processing. Among other things, this will allow the Thonny plugin to set the window position. (see 60)

Bug fixes:

* Fix 58
* Fix 59
* Fix 63

127700120.7.0a0

New Features:

* Reworked noise functionality. The Python noise library is no longer used to generate noise; the library has been removed as dependency. Instead, py5 uses the OpenSimplex noise algorithm and Processing's noise algorithm. The [OpenSimplex algorithm](https://en.wikipedia.org/wiki/OpenSimplex_noise) is provided by [KdotJPG's OpenSimplex2S implementation](https://github.com/KdotJPG/OpenSimplex2).
* New Py5Vector class

Fixes:
* Fix 50
* Fix 52

127700110.6.0alpha.2

New Features:

* Context Managers: methods like `begin_shape()` or `push_matrix()` can be used as context managers
* py5bot now supports the SVG and PDF renderers
* Update to the latest Processing 4.0 beta 2 jars
* The `save()` and `save_frame()` methods can now save to a `io.BytesIO` object
* Version number conforms to proper semantic versioning standards

Fixes:

* Fix https://github.com/hx2A/py5generator/issues/40
* Fix https://github.com/hx2A/py5generator/issues/44

127500100.5a2

Fixes:

* Fix `run_sketch` on Windows and OSX. Previously the utility did not work on either platform.

New features:

* Support hexadecimal and web color notation assignments to the pixels array (`pixels = "882222"`)
* Support 3 character web color notation (`"882222"`)

127500090.5a1

The 0.5a0 release was a bad release. I botched the py5bot kernel code in a poorly executed merge, and then didn't do sufficient testing to detect the problem. This release fixes those problems.

I have updated my release process to make sure this doesn't happen again. Also, I will prioritize developing a unit test framework for py5.

There are two other changes in this release:

* Proper support for specifying colors using hexadecimal notation and web color notion. See [26](https://github.com/hx2A/py5generator/issues/26).
* The `sketch_portal()` method will by default throttle the frame rate to 30 frames per second. Previously the default was for no throttling. This change will improve the experience of users who use this for the first time on mybinder, where a Sketch running at the default Sketch speed of 60 frames per second will look jumpy in the Sketch portal when no throttling is used.

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.