Sandboxed environment for untrusted code / templates, using zope.security and RestrictedPython
CHANGES
7.0 (2025-09-12)
Replace pkg_resources namespace with PEP 420 native namespace.
6.2 (2025-08-08)
Add support for Python 3.12, 3.13.
Drop support for Python 3.7, 3.8.
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
Metadata
Release files for zope.untrustedpython 7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| zope_untrustedpython-7.0.tar.gz | 19.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zope_untrustedpython-7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.7 kB
Release files / zope_untrustedpython-7.0.tar.gz
| Download URL | zope_untrustedpython-7.0.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f7339f890250930da674b2b4c5e4a4849081616a6c6cf4390042bef5f92ae1e
|
|
BLAKE2b-256 checksum How to use checksums |
a21904ecc076ba2e84f4cb9489970eec7986b2d318e828f2e2a91d0175debb68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / zope_untrustedpython-7.0-py3-none-any.whl
| Download URL | zope_untrustedpython-7.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7aeebf40eecd20e9b8b73222a8ba5155d86b7d0a4fd4a8b3f9ca244ef706170
|
|
BLAKE2b-256 checksum How to use checksums |
e8af3ad09c1d460b5ffed0963896fe9302fba37ae304c398ba0ebea433826aa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for zope.untrustedpython 7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.