Pythonmonkey

Latest version: v1.0.0

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

Scan your dependencies

Page 1 of 3

2.0

print(next(myit)) StopIteration exception

using a python iterator in JS:
py
import pythonmonkey as pm

myit = iter((1,2))
pm.eval("""
(myit) => {
console.log([...myit]); // [1, 2]
}
""")(myit)

1.0

1.0.0

PythonMonkey is now stable for production, including [Distributive's](https://distributive.network/) use-case of [DCP](https://docs.dcp.dev/)! šŸ„³

Bug Fixes:
- calling a python method that has 0 parameters in JavaScript would cause a segfault rather than a `TypeError: Class.method() takes 0 positional arguments but 1 was given` exception
- Using a python iterable as the yield of a JavaScript `function*` generator would cause a segfault rather than a `TypeError: 'iterable' object is not an iterator` exception

0.9.0

This release fixes the long annoying [string corruption bug](https://github.com/Distributive-Network/PythonMonkey/issues/340).

PythonMonkey is now super powerful and a lot more stable! :mechanical_arm: :mechanical_arm: :mechanical_arm:

---

Generated release notes:

What's Changed
* Upgrade SpiderMonkey to mozilla-central commit `a283127a5d0aa005c54d339e8ca27414b55f079b` by github-actions in https://github.com/Distributive-Network/PythonMonkey/pull/424
* Fix the string corruption bug by Xmader in https://github.com/Distributive-Network/PythonMonkey/pull/428
* Philippe/final edits for first release by philippedistributive in https://github.com/Distributive-Network/PythonMonkey/pull/427
* Make the wheel packages we build also support lower versions of macOS by Xmader in https://github.com/Distributive-Network/PythonMonkey/pull/415
* Make easier debugging HTTP errors (such as `DCPError: no transports defined`) by Xmader in https://github.com/Distributive-Network/PythonMonkey/pull/371
* Docs: add uninstallation instructions in the README by Xmader in https://github.com/Distributive-Network/PythonMonkey/pull/431
* Add CI for publishing to āŠ‡istributive's archive server by Xmader in https://github.com/Distributive-Network/PythonMonkey/pull/432


**Full Changelog**: https://github.com/Distributive-Network/PythonMonkey/compare/v0.8.1...v0.9.0

0.8.1

- bug fixes:
- segfault could occur if `exit()` or `quit()` were called asynchronously
- `atob` did not include padding
- pythonmonkey could not be installed on Windows if cargo was not installed beforehand

- performance improvements:
- improved memory-use, particularly regarding python strings passed to JavaScript
- increased the maximum JavaScript garbage-collected heap size to the maximum allowed (4 GB)

- other:
- pythonmonkey now ships pre-built arm64 wheels
- removed Doxygen and Graphviz as mandatory prerequisites to install PythonMonkey (you still need them to build the docs, but you'll have to install them yourself if you wish to do so)

0.8.0

- python `bytes` objects are now passed to JavaScript as immutable `Uint8Array`
- python `dict` and user-defined class objects now use the prototype chain for following methods in JavaScript:
- `Object.prototype.toString`
- `Object.prototype.toLocaleString`
- `Object.prototype.valueOf`
- python iterator objects passed to JS now have the `[Symbol.toPrimitive]` and `.valueOf` properties in JavaScript to support use with `console.log`

Page 1 of 3

Ā© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.