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 0.1.11

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 0.1.11
File Size Uploaded Provenance Actions
defchord-0.1.11.tar.gz 1.2 MB Without provenance Details for defchord-0.1.11.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for DefChord 0.1.11
File Interpreter ABI Platform Actions
defchord-0.1.11-57-py3-none-any.whl Python 3 none any Details for defchord-0.1.11-57-py3-none-any.whl
defchord-0.1.11-49-py3-none-any.whl Python 3 none any Details for defchord-0.1.11-49-py3-none-any.whl

Total release size: 1.4 MB

Release files / defchord-0.1.11.tar.gz

Download URL defchord-0.1.11.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
303685dfb6d42d6758d6dd22cb9e4eff62b8aa6c88e669732fb818cf60bf6af4
BLAKE2b-256 checksum
How to use checksums
01f2e87a6c5a00c810bec5f7d977a6a22fed320b0d07af25ec97960f97aa8cfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Release files / defchord-0.1.11-57-py3-none-any.whl

Download URL defchord-0.1.11-57-py3-none-any.whl
Size 105.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25c49e033e1653aaad9990f8a2c6c5d2c46d64c3c7842ce5e304d31ad72625d4
BLAKE2b-256 checksum
How to use checksums
275f73cb1ee08eeb235780de67342e81e7d83bcde608332e2c8a3fa841538964
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Release files / defchord-0.1.11-49-py3-none-any.whl

Download URL defchord-0.1.11-49-py3-none-any.whl
Size 105.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3981733f606696f3d3119ee40024472fe88cf91b6b3fca3fdea480fd10e28b9d
BLAKE2b-256 checksum
How to use checksums
a5de1f78a18097d094e0aead5d8ab1c9f7d1c72a3cb39e993bf8fa3675301e88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Security for DefChord 0.1.11

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