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. To preview locally: poetry install --with docs && poetry run mkdocs serve.

Install

poetry add future-framework
# or from git: poetry add git+https://github.com/nicolaipre/future.git@master
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.0.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.0-py3-none-any.whl (78.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: future_framework-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 374ca5ed55faba81cd8f04c93549c92615de67364e98670a91e20eb73f04734d
MD5 9d76a9b810d2515066523bee8c4c6d37
BLAKE2b-256 54e8f823bb87d8bc2a7cc70eb4dd00476477812cc79355b6ffd463bd50b9f12b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for future_framework-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a65180085d1004064556191972fa72a63977383fd473d48d24079db75c932550
MD5 d9739040242a6b070583dad95b4041f0
BLAKE2b-256 60487ae97a112e020bcb764add79a2425bdd455122e015c971537178b45c00d3

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