Skip to main content

PyTin is a CGI framework that provides shortcuts for application writers to focus less on common tasks and more on their application’s functionality.

Requests

Requests take all the data that exists in different areas like environment variables and standard input, and puts it all into one, cleanly organized object.

Responses

Responses are file-like objects, but with convenience methods named w (with a newline) and wn (without one). They also have custom attributes for setting common HTTP headers like Content-Type and Location.

RQMods/RSMods

These are applied to requests and responses. You pass a list of them as the rqmods and rsmods keyword arguments. They’re not required, and PyTin doesn’t even ship with any (yet), but they could be very helpful if you’re in a situation where you’d need one.

Bake

Bake is the major function you need to know. It will publish your object, collect the environment variables, enable tracebacks if needed, and pass extra settings to your application. After your request has been returned, it will be compiled and returned.

Prebake

The prebake function is designed to allow extra security and lighter script files. It’s a command-line-based wizard that produces a simple file that imports a function stored in a module and automatically bakes it.

Metadata

Release files for PyTin 1.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 PyTin 1.1
File Size Uploaded Provenance Actions
PyTin-1.1.tar.gz 5.5 kB Without provenance Details for PyTin-1.1.tar.gz

Release files / PyTin-1.1.tar.gz

Download URL PyTin-1.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
df22f11493d44530d2a9499e4d4f034b05e73befeba11a52d0bc3400301055d4
BLAKE2b-256 checksum
How to use checksums
6ba65ef25bc8ab3e64c403770abb7a9730a47f9e11078a65ec5a68fa65815992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for PyTin 1.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

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