Skip to main content
CI Status Documentation Status

Sandboxed environment for untrusted code / templates, using zope.security and RestrictedPython

CHANGES

7.1 (2026-11-10)

  • Add support for Python 3.15.

  • Drop support for Python 3.10.

  • Move package metadata from setup.py to pyproject.toml.

  • Add support for Python 3.14.

  • Drop support for Python 3.9.

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.1

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.1
File Size Uploaded Provenance Actions
zope_untrustedpython-7.1.tar.gz 19.8 kB With provenance Details for zope_untrustedpython-7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zope.untrustedpython 7.1
File Interpreter ABI Platform Actions
zope_untrustedpython-7.1-py3-none-any.whl Python 3 none any Details for zope_untrustedpython-7.1-py3-none-any.whl

Total release size: 28.7 kB

Release files / zope_untrustedpython-7.1.tar.gz

Download URL zope_untrustedpython-7.1.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eac7a6d745e8caaf70779b2a9654910601d20b7604eafd9ed345a553a9f5c5f5
BLAKE2b-256 checksum
How to use checksums
0d15e5a749a71dcb7f6987dc3685ddfca0d22a4ae860c6df30467a13f2128937
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / zope_untrustedpython-7.1-py3-none-any.whl

Download URL zope_untrustedpython-7.1-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
316b46b5ed54eefbb4ca3a2beaac3b0eee0b13ad59ebdf095e4fea22465be658
BLAKE2b-256 checksum
How to use checksums
5d4d714c58cef367faeead0984a5aa54f6fe3e944caafb48e190245cd4b55a7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for zope.untrustedpython 7.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zope_untrustedpython-7.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

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.

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