Skip to main content

Zope Untrusted Python Library

Project description

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

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

zope_untrustedpython-7.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zope_untrustedpython-7.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file zope_untrustedpython-7.0.tar.gz.

File metadata

  • Download URL: zope_untrustedpython-7.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for zope_untrustedpython-7.0.tar.gz
Algorithm Hash digest
SHA256 3f7339f890250930da674b2b4c5e4a4849081616a6c6cf4390042bef5f92ae1e
MD5 4cbd1fe71dc235b45fa5d309975d4bc5
BLAKE2b-256 a21904ecc076ba2e84f4cb9489970eec7986b2d318e828f2e2a91d0175debb68

See more details on using hashes here.

File details

Details for the file zope_untrustedpython-7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zope_untrustedpython-7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7aeebf40eecd20e9b8b73222a8ba5155d86b7d0a4fd4a8b3f9ca244ef706170
MD5 129064944555292c8e1efa8a67b774c0
BLAKE2b-256 e8af3ad09c1d460b5ffed0963896fe9302fba37ae304c398ba0ebea433826aa0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page