Skip to main content

Future

ASGI-based framework for web APIs — routing, middleware, Active Record, migrations, seeds, OpenAPI, and interval tasks.

Build Status Package Version Coverage

Documentation

Published at nicolaipre.github.io/future-framework. To preview locally: poetry install --with docs && poetry run mkdocs serve.

Install

poetry add future-framework
poetry run future init myproject

Import name is future (from future.application import Future).

Hello

from future.application import Future
from future.interfaces.IController import IController
from future.lifespan import Lifespan
from future.response import Response
from future.routing import Get, RouteGroup

class HomeController(IController):
    async def index(self) -> Response:
        return self.response.json({"ok": True})

app = Future(lifespan=Lifespan([], [], []), config={"APP_DOMAIN": "", "APP_NAME": "Demo"})
app.add_routes([RouteGroup(name="Main", routes=[Get("/", HomeController.index, "home")])])
app.run(host="127.0.0.1", port=8000)

License

See LICENSE. Versioning: CHANGELOG.md.

Release files for future-framework 3.0.2

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

Source distribution (sdist)

Source distribution for future-framework 3.0.2
File Size Uploaded
future_framework-3.0.2.tar.gz 62.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for future-framework 3.0.2
File Interpreter ABI Platform
future_framework-3.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 153.9 kB

Release files / future_framework-3.0.2.tar.gz

Download URL future_framework-3.0.2.tar.gz
Size 62.8 kB
Tags Source
SHA-256 checksum
How to use checksums
03f6d5f82df478887480895a88d17f03af5bce48a7af8136a9e136765b41b2d5
BLAKE2b-256 checksum
How to use checksums
6f6c7ae3add93906d8f370a627e157b4522c1fce5daba60b140d9e30dc2dcd8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.14

Release files / future_framework-3.0.2-py3-none-any.whl

Download URL future_framework-3.0.2-py3-none-any.whl
Size 91.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5ffeae0bc876eb67cfd4b84f259833ccffd9b61980192eee77e3099e3803a28
BLAKE2b-256 checksum
How to use checksums
cb0ef0bfa191dad2ad0b2b6ed1e0ee0ff065fac6e53cea9cc4da416bbec63640
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.14

Release history Release notifications | RSS feed

3.1.0

2 release files

This release

3.0.2 This release

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release 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