Skip to main content
CI Status Documentation Status

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

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)

Source distribution for zope.untrustedpython 7.0
File Size Uploaded
zope_untrustedpython-7.0.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zope.untrustedpython 7.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

7.0 This release

2 release files

6.2

2 release files

6.1

2 release files

6.0

2 release files

5.0

2 release files

4.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page