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.controllers import Controller
from future.lifespan import Lifespan
from future.response import Response
from future.routing import Get, RouteGroup

class HomeController(Controller):
    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.

Download files

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

Source Distribution

future_framework-1.1.3.tar.gz (57.2 kB view details)

Uploaded Source

Built Distribution

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

future_framework-1.1.3-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

Details for the file future_framework-1.1.3.tar.gz.

File metadata

  • Download URL: future_framework-1.1.3.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for future_framework-1.1.3.tar.gz
Algorithm Hash digest
SHA256 5cd78fa40e9ad39d548a3b471b29c48b354736981b3e9497160785b479a22467
MD5 d1b261463c95478f1cb95aa3760342bf
BLAKE2b-256 2523d288e9c283fc28091db60f8cf08391ba6e326841c21dcbc5d4354fc8e822

See more details on using hashes here.

File details

Details for the file future_framework-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for future_framework-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 488466c80730075ace43c3d61e0d5689098fc251aed42063c3ecd1a18a6cf5cc
MD5 f2f3de85d52f9ef9a4a0d340e0c6f1f6
BLAKE2b-256 343c33fb6f55995112e1d52a33b4223ac0ebd480ddf1416e13e0fec0f5ebabb0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page