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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file interactions-fastapi-0.0.1.tar.gz.
File metadata
- Download URL: interactions-fastapi-0.0.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b9436e4c3b7c793b7a8a2dabcc342ff2680c54b02775da244d9be2de240b0cb
|
|
| MD5 |
be25ee2caadcdca1c15bf01a18ead5b7
|
|
| BLAKE2b-256 |
dc1f98affe7fe2ed0df9c85aa3a433ec9adc964944dc2c18a73aa8a685fac37d
|
File details
Details for the file interactions_fastapi-0.0.1-py3-none-any.whl.
File metadata
- Download URL: interactions_fastapi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae7759ec65a6c6ada64f89c4b3e94d44d6cc1489f95090a5eeffdb7a087e5950
|
|
| MD5 |
854abc6705bc25f8c4a97f70d46766fe
|
|
| BLAKE2b-256 |
b663770bbb7d4d102621f04758489ea89dd8a8260ad4f5fd29ab27119b6f1cbc
|