DefChord
The Modern Synchronous Python Web Application Framework
DefChord 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 DefChord
The built-in Python HTTP server requires no additional server dependency. The Gunicorn and Uvicorn adapter sources are always included; the following extras install only the external dependencies each adapter needs:
python -m pip install "DefChord[Gunicorn]"
python -m pip install "DefChord[Uvicorn]"
Install the desired adapter extra when needed.
Quick start
Save this example as app.py and run python app.py.
from DefChord import Application, Request, RequestRunner
from DefChord.Adapter.Implements.Python import Server
from DefChord.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 DefChord 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| defchord-0.1.15.tar.gz | 1.1 MB | Without provenance | Details for defchord-0.1.15.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| defchord-0.1.15-76-py3-none-any.whl | Python 3 | none | any | Details for defchord-0.1.15-76-py3-none-any.whl |
| defchord-0.1.15-74-py3-none-any.whl | Python 3 | none | any | Details for defchord-0.1.15-74-py3-none-any.whl |
Total release size: 1.3 MB
Release files / defchord-0.1.15.tar.gz
| Download URL | defchord-0.1.15.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f9f542ad10b37b671ef80d5f5421563a2c874b179e9d929c24429db9b2b65e7
|
|
BLAKE2b-256 checksum How to use checksums |
f5199f8d765b6d7619051494fedfeef6b3727eeb34e7f251a06fa4a9eb2078fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / defchord-0.1.15-76-py3-none-any.whl
| Download URL | defchord-0.1.15-76-py3-none-any.whl |
|---|---|
| Size | 115.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83404903cc2aecd5032db5176a23d6a5e911f89e35ce1dcb81b62e5c441d36b4
|
|
BLAKE2b-256 checksum How to use checksums |
b5fc70cc91646671f66ccb78a83766e7a3aa306133f5179014d2f4358695d6b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / defchord-0.1.15-74-py3-none-any.whl
| Download URL | defchord-0.1.15-74-py3-none-any.whl |
|---|---|
| Size | 115.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
339ccbb77384b9c58eccc35f0d17d9d65037b34c4fbff5ec63b97ea01416d94a
|
|
BLAKE2b-256 checksum How to use checksums |
daffc6e83c596d57ab9bf6a201f9c4383dd248e653d807c88fde30817d02dea5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for DefChord 0.1.15
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.