Skip to main content

Python Web framework built .

Project description

pydavronov

pydavronov is a minimalist Python framework designed for creating WSGI applications. It leverages:

  • WebOb for convenient request and response objects,
  • WhiteNoise for serving static files,
  • Jinja2 for template rendering,
  • parse for parsing route parameters,
  • Middleware for extendable request/response processing.

Main Features

  1. Routing

    • Easily add routes using the @app.route(...) decorator or by calling add_route(...) directly.
    • Supports parameterized routes (e.g., @app.route("/user/{id}")).
  2. Static Files

    • Uses WhiteNoise to serve static files from the static/ folder by default.
    • Any request starting with /static will be automatically handled by WhiteNoise.
  3. Templating

    • Utilizes Jinja2 for rendering HTML templates from the templates/ directory.
    • The app.template(template_name, context) method returns rendered HTML content.
  4. Exception Handling

    • You can assign a custom exception handler with app.add_exception_handler(...).
    • If an exception occurs and the handler is set, the framework will invoke that handler.
  5. Middleware

    • Built-in support for middleware to perform custom logic before and after request handling.
    • app.add_middleware(...) allows you to attach any class derived from Middleware.
  6. Testing

    • A built-in test_session() method integrates your app with requests.Session() and wsgiadapter.WSGIAdapter.
    • This makes it easy to write tests that send real HTTP requests to your application in memory.

Installation

  1. Clone this repository or copy the source files into your project.
  2. Install the required dependencies (Python 3.7+ recommended):
    pip install webob parse requests jinja2 whitenoise
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydavronov-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydavronov-0.1.1-py2.py3-none-any.whl (2.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pydavronov-0.1.1.tar.gz.

File metadata

  • Download URL: pydavronov-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.7

File hashes

Hashes for pydavronov-0.1.1.tar.gz
Algorithm Hash digest
SHA256 399b36ff6f363052b396d3a7d0f816c039565a7f183a2c37b74d3841d1e935c5
MD5 e6617bb98a87224cc694001a68ae20ca
BLAKE2b-256 ee0a38259e379224a69a9799def488a805cdae0d6d9781abad41434e4d3aedba

See more details on using hashes here.

File details

Details for the file pydavronov-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pydavronov-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.7

File hashes

Hashes for pydavronov-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b980e8f03febb7caeb74a3b14ee80d9984449f8af3a8055de295d2653eeef3e4
MD5 ff845c9fe4e471f0cf0b2cc6dc8d970f
BLAKE2b-256 40f33c89af3af5c11ddc20c8b3ff738e566455f68a895a595a83d6483f07b813

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page