Skip to main content

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

legacy_cgi-2.6.3.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

legacy_cgi-2.6.3-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

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

Hashes for legacy_cgi-2.6.3.tar.gz
Algorithm Hash digest
SHA256 4c119d6cb8e9d8b6ad7cc0ddad880552c62df4029622835d06dfd18f438a8154
MD5 1c3a19d6391b0f87e5f52e4846a91a8a
BLAKE2b-256 a6ed300cabc9693209d5a03e2ebc5eb5c4171b51607c08ed84a2b71c9015e0f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for legacy_cgi-2.6.3.tar.gz:

Publisher: ci.yml on jackrosenthal/legacy-cgi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for legacy_cgi-2.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6df2ea5ae14c71ef6f097f8b6372b44f6685283dc018535a75c924564183cdab
MD5 7759743055eec4bce095b4d25007a4e7
BLAKE2b-256 5a3368c6c38193684537757e0d50a7ccb4f4656e5c2f7cd2be737a9d4a1bff71

See more details on using hashes here.

Provenance

The following attestation bundles were made for legacy_cgi-2.6.3-py3-none-any.whl:

Publisher: ci.yml on jackrosenthal/legacy-cgi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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