Skip to main content

Loosely coupled, typed web framework for modern Python

Project description

mountAPI

Example

from mountapi.core.app import Application
from mountapi.core.settings import DefaultSettings
from mountapi.routing import Route


async def hello_person(name: str):
    return {'message': f'Hello {name}!'}


routes = [
    Route('/hello/<name:str>/', hello_person)
]

if __name__ == '__main__':
    app = Application(settings=DefaultSettings, routes=routes)
    app.run()

Project details


Download files

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

Source Distribution

mountapi-0.1.0a0.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

mountapi-0.1.0a0-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

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