Skip to main content

Autumn

Autumn logo

A modern ASGI web framework focused on typed controllers, dependency injection, and clean configuration.

Autumn is a Python web framework for building HTTP APIs and WebSocket applications with a small, explicit core. It leans on Python's type system instead of large decorator stacks: route parameters are typed, request bodies are inferred from Pydantic models, dependencies are injected from signatures, and responses can be serialized automatically.

If you want class-based controllers, typed configuration, built-in dependency injection, OpenAPI/Dependencies docs generation, and CORS support, Autumn is built for that style.

Highlights

  • ASGI-first application object that works with standard ASGI servers such as uvicorn
  • Class-based REST controllers with typed path parameters like {id:int} and {file:path}
  • Signature-driven dependency injection with @service and @leaf
  • Explicit module discovery without recursive filesystem execution
  • Automatic request body validation from Pydantic annotations
  • Automatic JSON serialization for Pydantic return values
  • Built-in configuration system with environment, JSON, and YAML sources
  • Built-in configs for application settings, CORS, and WebSocket tuning
  • OpenAPI and dependencies documentation generation with built-in viewer
  • Middleware hooks, lifespan hooks, file responses, redirects, and streaming
  • WebSocket routes with dependency injection support

Why Autumn

Autumn tries to keep the ergonomic parts of modern Python frameworks while staying direct:

  • Controllers are just Python classes.
  • Dependencies come from constructor or method signatures.
  • Request bodies are inferred from type annotations instead of extra decorators.
  • Configs are plain Python classes with typed fields.
  • The framework stays close to raw ASGI concepts when you need to drop lower.

That makes the happy path concise, while still keeping the codebase readable when the application grows.

Benchmarks

Latest repeated local benchmark run: 2026-08-12

Environment:

  • Windows
  • Python 3.12
  • uvicorn --workers 1 --loop asyncio --http httptools --lifespan off
  • Concurrency: 64
  • Warmup: 2s per scenario
  • Measurement duration: 8s per scenario
  • Repetitions: 5, randomized framework and scenario order
  • Reported values: median of repetitions

Median RPS by scenario:

Framework Plaintext JSON Path parameter Validated body
Falcon 8381.56 8347.52 8391.16 6967.47
Starlette 8403.90 8333.73 8264.93 6748.19
Autumn 8107.42 8223.67 7993.92 6866.13
FastAPI 7470.63 6787.41 5810.57 5277.82

In this run, Autumn is 23.06% faster than FastAPI on average, 1.76% behind Starlette, and 2.79% behind Falcon. The comparison contains 80 measurements in total; every measured request completed successfully.

Explicit module discovery

Autumn never scans and executes every Python file below the project root. Modules that contain independently decorated controllers, services, lifecycle hooks, or configuration are listed explicitly:

app = Autumn(
    discover = (
        'project.controllers',
        'project.services',
    )
)

When root_path is provided, module names are resolved relative to that directory. When a discovered name points to a package, Autumn loads every Python module and nested package inside it. This makes discover = 'project.controllers' sufficient for a controllers package with multiple files. Discovery stays within each explicitly listed package; imports made by its modules continue to work normally.

Philosophy

Autumn favors:

  • strong typing over implicit magic
  • signatures over decorator-heavy ceremony
  • built-in primitives over mandatory third-party integration
  • readable application structure over framework cleverness

The goal is to make small apps pleasant and larger apps maintainable.

Author

     _      _  _               _ _   
  __| | ___| || |   ___  _   _| | |_ 
 / _` |/ _ \ || |_ / _ \| | | | | __|
| (_| |  __/__   _| (_) | |_| | | |_ 
 \__,_|\___|  |_|  \___/ \__,_|_|\__|

Thank you a lot!


How to reach me

Telegram Badge Gmail Badge

Download files

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

Source Distribution

autumn_framework-0.1.5.tar.gz (173.1 kB view details)

Uploaded Source

Built Distribution

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

autumn_framework-0.1.5-py3-none-any.whl (177.0 kB view details)

Uploaded Python 3

File details

Details for the file autumn_framework-0.1.5.tar.gz.

File metadata

  • Download URL: autumn_framework-0.1.5.tar.gz
  • Upload date:
  • Size: 173.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for autumn_framework-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5ac930105bf559b8b7f2b1f058296eeabab04d2b8c4b91c14d240d16bacf00dd
MD5 af051fe2315de41b33a7c257bcab6cf2
BLAKE2b-256 ef2a6387d5469021752eb45ac750d587cbefa8e1d7cd5c48bb193f36526d8f25

See more details on using hashes here.

Provenance

The following attestation bundles were made for autumn_framework-0.1.5.tar.gz:

Publisher: ci.yml on De4oult/Autumn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autumn_framework-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for autumn_framework-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f05a253effa8fb7e8c2c4713b772a3c60be6efdc7bf3990665cd65d1af07323d
MD5 b91cc65b73d6e38403627f5da233260a
BLAKE2b-256 e92c633c5dc57203bafbaaa19ca4399f8345d44e6d5ccc7cb9c0d4b56398f991

See more details on using hashes here.

Provenance

The following attestation bundles were made for autumn_framework-0.1.5-py3-none-any.whl:

Publisher: ci.yml on De4oult/Autumn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

This release

0.1.5 This release

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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