python-legacy-cgi
Port variant v13
Summary Copy of dropped cgi and cgitb modules (3.13)
Package version 2.6.4
Homepage https://pypi.org/project/legacy-cgi/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v12
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 05 NOV 2025, 21:49:58 UTC
Port created 11 NOV 2024, 23:28:05 UTC
Subpackage Descriptions
single Python CGI ========== This is a fork of the standard library modules cgi and cgitb. They have been removed from the Python standard libary in Python 3.13 by PEP-594_. .. _PEP-594: https://peps.python.org/pep-0594/ Installation ------------ Depend upon ``legacy-cgi`` in your project. It is recommended to use the marker ``python_version >= 3.13``, as while the package can install for older Python versions, it won't have effect with a standard Python installation as the built-in modules will take precedence. For example, in a ``requirements.txt`` file:: legacy-cgi; python_version >= '3.13' Or in a PEP-621 ``pyproject.toml`` file:: [project] ... dependencies = [ ..., "legacy-cgi; python_version >= '3.13'", ] Purpose ------- The purpose of this fork is to support existing CGI scripts using these modules. Thus, compatibility is the primary goal. Contributions are accepted, but should be focused on bug fixes instead of new features or major refactoring. New applications should look at the ASGI_ or WSGI_ ecosystems. There's a number of highly-polished web frameworks available, and it's significantly faster in a typical deployment given a new Python process does not need created for each request. .. _ASGI: https://asgi.readthedocs.io .. _WSGI: https://wsgi.readthedocs.io Documentation ------------- See the official documentation for Python 3.12 and earlier for usage: * `cgi module`_ * `cgitb module`_ .. _cgi module: https://docs.python.org/3.12/library/cgi.html .. _cgitb module: https://docs.python.org/3.12/library/cgitb.html The modules are not renamed, so code written for Python 3.12 or earlier should work without modification with this package installed.
Configuration Switches (platform-specific settings discarded)
PY312 OFF Build using Python 3.12 PY313 ON Build using Python 3.13
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Download groups
main mirror://PYPIWHL/8c/7e/e7394eeb49a41cc514b3eb49020223666cbf40d86f5721c2f07871e6d84a
Distribution File Information
7e235ce58bf1e25d1fc9b2d299015e4e2cd37305eccafec1e6bac3fc04b878cd 20035 python-src/legacy_cgi-2.6.4-py3-none-any.whl
Ports that require python-legacy-cgi:v13
python-htmlmin:v13 HTML Minifier with seatbelts (3.13)