Metadata-Version: 2.4
Name: zope.untrustedpython
Version: 7.0
Summary: Zope Untrusted Python Library
Home-page: http://github.com/zopefoundation/zope.untrustedpython
Author: Zope Foundation and Contributors
Author-email: zope-dev@zope.dev
License: ZPL-2.1
Keywords: zope untrusted python
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Framework :: Zope :: 3
Requires-Python: >=3.9
Requires-Dist: RestrictedPython>=4
Requires-Dist: setuptools
Requires-Dist: zope.security
Provides-Extra: docs
Requires-Dist: Sphinx; extra == "docs"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

.. image:: https://github.com/zopefoundation/zope.untrustedpython/actions/workflows/tests.yml/badge.svg
    :target: https://github.com/zopefoundation/zope.untrustedpython/actions/workflows/tests.yml
    :alt: CI Status
.. image:: https://readthedocs.org/projects/untrustedpython/badge/?version=latest
    :target: https://untrustedpython.readthedocs.io/en/latest/?badge=latest
    :alt: 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
