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.4.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

legacy_cgi-2.6.4-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file legacy_cgi-2.6.4.tar.gz.

File metadata

  • Download URL: legacy_cgi-2.6.4.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for legacy_cgi-2.6.4.tar.gz
Algorithm Hash digest
SHA256 abb9dfc7835772f7c9317977c63253fd22a7484b5c9bbcdca60a29dcce97c577
MD5 bbb85dff278de9bf03a3f4e941398ea1
BLAKE2b-256 f49c91c7d2c5ebbdf0a1a510bfa0ddeaa2fbb5b78677df5ac0a0aa51cf7125b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for legacy_cgi-2.6.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: legacy_cgi-2.6.4-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for legacy_cgi-2.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e235ce58bf1e25d1fc9b2d299015e4e2cd37305eccafec1e6bac3fc04b878cd
MD5 bd19440a0ece1766ce55973b05a2f8c8
BLAKE2b-256 8c7ee7394eeb49a41cc514b3eb49020223666cbf40d86f5721c2f07871e6d84a

See more details on using hashes here.

Provenance

The following attestation bundles were made for legacy_cgi-2.6.4-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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page