Zope Untrusted Python Library
Project description
Sandboxed environment for untrusted code / templates, using zope.security and RestrictedPython
CHANGES
6.1 (2024-08-02)
Update safe builtins for Python 3, adding bytes, and removing cmp, coerce, long, reduce, unichr, and unicode.
6.0 (2023-09-13)
Drop support for Python 2.7, 3.5, 3.6.
Make sure the tests do not fail even on unsupported PyPy3 because ZTK might run them.
5.0 (2022-11-29)
Backwards incompatible changes
Require RestrictedPython >= 4.
Drop support for writing output of print calls to a variable named untrusted_output. It is now done the same way RestrictedPython handles printing, i. e. access it trough the variable printed. .interpreter.CompiledProgram still supports output to a file like object by implementing accessing the printed data.
The following names are no longer available via __builtins__ as they are either potentially harmful, not accessible at all or meaningless:
__debug__
__name__
__doc__
copyright
credits
license
quit
Drop support to run the tests using python setup.py test.
Drop support for Python 2.6.
Features
Add support for Python 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11.
4.0.0 (2013-02-12)
Test coverage at 100%.
Package extracted from zope.security, preserving revision history
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zope.untrustedpython-6.1.tar.gz
.
File metadata
- Download URL: zope.untrustedpython-6.1.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae70f67c9f94c0f051619af9092fea739e47284b75bef01b82ca7d75e8f3814 |
|
MD5 | 9668594b3ccc52718bc2f6e772b7272a |
|
BLAKE2b-256 | 074335e07a0a20b559dd0fbeb2326530722da0f312b90fcdb131a7cf2d656388 |
File details
Details for the file zope.untrustedpython-6.1-py3-none-any.whl
.
File metadata
- Download URL: zope.untrustedpython-6.1-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53409443cd296ba586bb0ef703a015bf22f94c1d95c0174b5be11d3c5b1db57b |
|
MD5 | e2cf93ff7252adff7302df7a2c37614d |
|
BLAKE2b-256 | 97027fb1ee6d4c1ea296ec4f6a29d8f88609583a165606958eb71f54add285a2 |