Skip to main content

Future

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

Build Status Package version codecov

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.2.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.2-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: future_framework-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8abc1a01ba4e5f4b64c1df575711cf4b17162e7e804bc7b12512e7ce683b4337
MD5 455c3a959a1fd64d448e5f4fcee99d46
BLAKE2b-256 3faa0a8e6535f78b77970d16f50158fe537a2731d2272f67cb266228ccf0a14f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for future_framework-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 199803c66efce3c275b63ebf2c09dfd5a4572fecd711ffa45827ebf6d2ef48ab
MD5 f5afec395e5d8ccee1aa25655b47e847
BLAKE2b-256 a682fb72ebe55f3677b1a52923662a453971673bc7c77357907ff68f64e369cb

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