Skip to main content

wsgi2cgi

Run CGI apps under Python WSGI protocol (PEP 333).

This is a simple WSGI application that executes an external process and translates the WSGI protocol to the Common Gateway Interface (CGI).

Example:

from wsgiref.simple_server import make_server import wsgi2cgi

def app(environ, start_response):

wapp = wsgi2cgi.CGI(‘/path/to/executable.cgi’) return wapp.application(environ, start_response)

httpd = make_server(‘127.0.0.1’, 8000, app) print “Serving on 127.0.0.1:8000…” httpd.serve_forever()

The CGI class supports two arguments:

  • command: absolute path to the CGI application executable.

  • extra_env: additional environment variables.

The WSGI application can be used with any server supporting WSGI.

More information:

Install

The module can be installed using setup.py:

python setup.py install

Alternativelly it can be installed with pip:

pip install wsgi2cgi

License

This package is open source under the MIT license terms. Check COPYING file for further details.

Author

Metadata

Release files for wsgi2cgi 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wsgi2cgi 0.2.1
File Size Uploaded Provenance Actions
wsgi2cgi-0.2.1.tar.gz 4.3 kB Without provenance Details for wsgi2cgi-0.2.1.tar.gz

Release files / wsgi2cgi-0.2.1.tar.gz

Download URL wsgi2cgi-0.2.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
50e8a780a841200ae4e715003bfc69440e4f902a9ca076c651cee30e0cc812a6
BLAKE2b-256 checksum
How to use checksums
a7d74ebd69bc58f5311fc3b4d64854c01d08ae654155247bdf17489e475a8371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for wsgi2cgi 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page