Fork of the standard library cgi and cgitb modules removed in Python 3.13
Project description
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.
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.
Documentation
See the official documentation for Python 3.12 and earlier for usage:
The modules are not renamed, so code written for Python 3.12 or earlier should work without modification with this package installed.
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
Built Distribution
File details
Details for the file legacy_cgi-2.6.3.tar.gz
.
File metadata
- Download URL: legacy_cgi-2.6.3.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c119d6cb8e9d8b6ad7cc0ddad880552c62df4029622835d06dfd18f438a8154 |
|
MD5 | 1c3a19d6391b0f87e5f52e4846a91a8a |
|
BLAKE2b-256 | a6ed300cabc9693209d5a03e2ebc5eb5c4171b51607c08ed84a2b71c9015e0f3 |
Provenance
The following attestation bundles were made for legacy_cgi-2.6.3.tar.gz
:
Publisher:
ci.yml
on jackrosenthal/legacy-cgi
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
legacy_cgi-2.6.3.tar.gz
- Subject digest:
4c119d6cb8e9d8b6ad7cc0ddad880552c62df4029622835d06dfd18f438a8154
- Sigstore transparency entry: 188646621
- Sigstore integration time:
- Permalink:
jackrosenthal/legacy-cgi@968c02eaa3c13188a448bacc17d3e1a994eb4c4d
- Branch / Tag:
refs/tags/v2.6.3
- Owner: https://github.com/jackrosenthal
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
ci.yml@968c02eaa3c13188a448bacc17d3e1a994eb4c4d
- Trigger Event:
push
- Statement type:
File details
Details for the file legacy_cgi-2.6.3-py3-none-any.whl
.
File metadata
- Download URL: legacy_cgi-2.6.3-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6df2ea5ae14c71ef6f097f8b6372b44f6685283dc018535a75c924564183cdab |
|
MD5 | 7759743055eec4bce095b4d25007a4e7 |
|
BLAKE2b-256 | 5a3368c6c38193684537757e0d50a7ccb4f4656e5c2f7cd2be737a9d4a1bff71 |
Provenance
The following attestation bundles were made for legacy_cgi-2.6.3-py3-none-any.whl
:
Publisher:
ci.yml
on jackrosenthal/legacy-cgi
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
legacy_cgi-2.6.3-py3-none-any.whl
- Subject digest:
6df2ea5ae14c71ef6f097f8b6372b44f6685283dc018535a75c924564183cdab
- Sigstore transparency entry: 188646624
- Sigstore integration time:
- Permalink:
jackrosenthal/legacy-cgi@968c02eaa3c13188a448bacc17d3e1a994eb4c4d
- Branch / Tag:
refs/tags/v2.6.3
- Owner: https://github.com/jackrosenthal
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
ci.yml@968c02eaa3c13188a448bacc17d3e1a994eb4c4d
- Trigger Event:
push
- Statement type: