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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for interactions-fastapi-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b9436e4c3b7c793b7a8a2dabcc342ff2680c54b02775da244d9be2de240b0cb |
|
MD5 | be25ee2caadcdca1c15bf01a18ead5b7 |
|
BLAKE2b-256 | dc1f98affe7fe2ed0df9c85aa3a433ec9adc964944dc2c18a73aa8a685fac37d |
Close
Hashes for interactions_fastapi-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae7759ec65a6c6ada64f89c4b3e94d44d6cc1489f95090a5eeffdb7a087e5950 |
|
MD5 | 854abc6705bc25f8c4a97f70d46766fe |
|
BLAKE2b-256 | b663770bbb7d4d102621f04758489ea89dd8a8260ad4f5fd29ab27119b6f1cbc |