Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

legacy-cgi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

legacy-cgi

Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594

  • 2.6.1
  • PyPI
  • Socket score

Maintainers
1

Python CGI

This is a fork of the standard library modules cgi and cgitb. They are slated to be removed from the Python standard libary in Python 3.13 by PEP-594_.

.. _PEP-594: https://peps.python.org/pep-0594/

Installation

Install the legacy-cgi package from PyPI::

$ pip install legacy-cgi

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 WSGI_ ecosystem. 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.

.. _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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc