Skip to main content

Build an API for your bot with FastAPI

Project description

FastAPI wrapper for interactions.py

An Extension library to add Fast API for your interactions.py bot .

Installation

pip install git+https://github.com/Damego/interactions-fastapi.git

Examples

import interactions

from interactions.ext.api import setup



client = interactions.Client(...)

api = setup(client)



@api.route("GET", "/")

async def index():

    return {"status": "success"}



client.start()

Server will run on 127.0.0.1:32512 (host and port modifiable)

More examples in examples folder.

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

interactions-fastapi-0.0.1.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

interactions_fastapi-0.0.1-py3-none-any.whl (16.2 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