Skip to main content

# static

Serve static or templated content via WSGI or stand-alone.

Install Static

$ pip install static

Serve up some content:

$ static localhost 9999 static-content/

Or in the context of a WSGI application:

`python import static wsgi_app = static.Cling('/var/www') `

You can also use Python template strings, Moustache templates or easily roll your own templating plugin. See the tests and source code for examples.

Pull requests welcome. Happy hacking.

Metadata

Release files for static 1.1.0

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

Source distribution (sdist)

Source distribution for static 1.1.0
File Size Uploaded Provenance Actions
static-1.1.0.tar.gz 5.8 kB Without provenance Details for static-1.1.0.tar.gz

Release files / static-1.1.0.tar.gz

Download URL static-1.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
64606dfbc47db1ce1456358d42447a7f06ba6cfa72a1659c25e1d9bf493e1b63
BLAKE2b-256 checksum
How to use checksums
c4a855093c5c62b56f7fd7ad4bc86b63153b75b4b85f14acc0ea9b3a93c973ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for static 1.1.0

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.

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