Skip to main content

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. Optional extras provide Gunicorn and Uvicorn adapters: The core excludes their implementation files; each extra installs a separate, same-version adapter distribution and its dependencies.

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

Install the desired adapter extra when needed. Omitting an extra later does not remove an already installed adapter.

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-Uvicorn 0.1.13

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

Source distribution (sdist)

Source distribution for DefChord-Uvicorn 0.1.13
File Size Uploaded Provenance Actions
defchord_uvicorn-0.1.13.tar.gz 1.3 MB Without provenance Details for defchord_uvicorn-0.1.13.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for DefChord-Uvicorn 0.1.13
File Interpreter ABI Platform Actions
defchord_uvicorn-0.1.13-67-py3-none-any.whl Python 3 none any Details for defchord_uvicorn-0.1.13-67-py3-none-any.whl
defchord_uvicorn-0.1.13-63-py3-none-any.whl Python 3 none any Details for defchord_uvicorn-0.1.13-63-py3-none-any.whl

Total release size: 1.3 MB

Release files / defchord_uvicorn-0.1.13.tar.gz

Download URL defchord_uvicorn-0.1.13.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
b4c85ecc514bee7c6775bba758bb433daa05dcc3e2ceff4ca662970f22ecf209
BLAKE2b-256 checksum
How to use checksums
e8de1193966ed8902a7aa9dc8205cf15e6172592ae64597e3fc5b7b039473e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / defchord_uvicorn-0.1.13-67-py3-none-any.whl

Download URL defchord_uvicorn-0.1.13-67-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8671c515b6d6037f15d8be13c984f81f61ef192af64cb28f44eb6ab06a631efd
BLAKE2b-256 checksum
How to use checksums
7661716526299ba2d385604dab9e1fc010c04e50ed46d4ffc6946562a963f556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / defchord_uvicorn-0.1.13-63-py3-none-any.whl

Download URL defchord_uvicorn-0.1.13-63-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60994a6bd39264e5db0ee897d29f2a0a8d83df093d369be840cd7dcfac982b25
BLAKE2b-256 checksum
How to use checksums
a93e6f13fb2766a102aa2608f02ad9c99a22c9cd5727e1a26df16d7655d4b8cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for DefChord-Uvicorn 0.1.13

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