Skip to main content

DefEssential

The Modern Synchronous Python Web Application Framework

DefEssential is a synchronous Python web framework for handling HTTP requests with ordinary methods. Python 3.9 or later is required.

Installation

python -m pip install DefEssential

The built-in Python HTTP server requires no additional server dependency. Optional extras provide Gunicorn and Uvicorn adapters:

python -m pip install "DefEssential[Gunicorn]"
python -m pip install "DefEssential[Uvicorn]"

Quick start

Save this example as app.py and run python app.py.

from DefEssential import Application, Request, RequestRunner
from DefEssential.Adapter.Implements.Python import Server
from DefEssential.Responses import ResponseText


class Hello(RequestRunner, method='GET', url='/hello'):
  def run(self, request: Request):
    return ResponseText('Hello, world!')


application = Application()
application.add(Hello)
Server('127.0.0.1', 8000, application).run()

The server listens on 127.0.0.1:8000. A GET /hello request returns Hello, world!.

License

See the LICENSE file included with the source distribution for license terms.

Metadata

Release files for DefEssential 0.1.9

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

Source distribution (sdist)

Source distribution for DefEssential 0.1.9
File Size Uploaded Provenance
defessential-0.1.9.tar.gz 1.2 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for DefEssential 0.1.9
File Interpreter ABI Platform
defessential-0.1.9-31-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / defessential-0.1.9.tar.gz

Download URL defessential-0.1.9.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
8bc1c621c69588706221a5cca7e89fac5dafdec9524978b1be7a1ac1a323938d
BLAKE2b-256 checksum
How to use checksums
ad3e4c6ca3022109088c505b912442f0139a3fe092eb71e31a8c4ad39760d8c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / defessential-0.1.9-31-py3-none-any.whl

Download URL defessential-0.1.9-31-py3-none-any.whl
Size 115.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b9f78b32955c827f921906710b1b8bcf993e8d9548dde00b93feee7a1c0879b
BLAKE2b-256 checksum
How to use checksums
6efa96480343fb67ee3afaeb7ffd2aea32600c4cd46ea7fb92cb6b69a3a02acb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for DefEssential 0.1.9

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