Skip to main content

sitepy

A simple web framework for Python.

Installation

You can install sitepy with pip:

pip install sitepy

Usage

Here's a basic example of a sitepy application:

from sitepy import sitepy

app = sitepy()

@app.route("/", methods=['GET', 'POST'])
def index():
    return "Hello, world!"

if __name__ == "__main__":
    app.run()

This will start a server on localhost:8080 and respond with "Hello, world!" to GET and POST requests at the root URL.

Features

  • Simple routing: Use the @app.route decorator to define routes.

  • Middleware support: Use app.use to add middleware functions.

  • Static file serving: Files in the static directory are served at /static.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Apache

Metadata

Release files for sitepy 0.4.6

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

Source distribution (sdist)

Source distribution for sitepy 0.4.6
File Size Uploaded Provenance
sitepy-0.4.6.tar.gz 14.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sitepy 0.4.6
File Interpreter ABI Platform
sitepy-0.4.6-py3-none-any.whl Python 3 none any Details

Total release size: 29.5 kB

Release files / sitepy-0.4.6.tar.gz

Download URL sitepy-0.4.6.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a2cbccc226f9348c5327c61941b2407c2c93fefb3903f057389379113f09c47e
BLAKE2b-256 checksum
How to use checksums
1ea1f9de8da2ab98d76a806d43de180d6fa7f3c13f7d4f9c9c5e1e4359fc1e3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / sitepy-0.4.6-py3-none-any.whl

Download URL sitepy-0.4.6-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d68c773485d534c566f0a3f5637efa3498262db6c6035ac2bc0f4681e2deec7
BLAKE2b-256 checksum
How to use checksums
a89a575c4f88ff40d975c1ec95f891f4f05a73a5ac9a56af7360def9034d9b59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for sitepy 0.4.6

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.

Release history Release notifications | RSS feed

This release

0.4.6 This release

2 release files 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