Skip to main content

Future

Minimal, decorator-free ASGI framework for Python 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.1.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.1-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: future_framework-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f5132dc77006361602a3dbd12a42ed750e6d4c5b986dd60bb251d8789da48bb2
MD5 ae9d95a32da0023326d6ea20b9663aa0
BLAKE2b-256 f06b2ba9e7c5164ff24df2d4233be28a5e56e55a7d73d36f9d4595329673b440

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for future_framework-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe5b5020e87cabd91ccd586411fee0300928e0c35736dbe32663f2f56d6da047
MD5 54b3b48998782ec1482f3e8b21faec35
BLAKE2b-256 73dc7c88ecfb3a9ef1bc013c1f4f5db0f5058bb652a7e37ebc163d7419d9e6a6

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