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.
Metadata
Release files for interactions-fastapi 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| interactions-fastapi-0.0.1.tar.gz | 16.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| interactions_fastapi-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.2 kB
Release files / interactions-fastapi-0.0.1.tar.gz
| Download URL | interactions-fastapi-0.0.1.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b9436e4c3b7c793b7a8a2dabcc342ff2680c54b02775da244d9be2de240b0cb
|
|
BLAKE2b-256 checksum How to use checksums |
dc1f98affe7fe2ed0df9c85aa3a433ec9adc964944dc2c18a73aa8a685fac37d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / interactions_fastapi-0.0.1-py3-none-any.whl
| Download URL | interactions_fastapi-0.0.1-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae7759ec65a6c6ada64f89c4b3e94d44d6cc1489f95090a5eeffdb7a087e5950
|
|
BLAKE2b-256 checksum How to use checksums |
b663770bbb7d4d102621f04758489ea89dd8a8260ad4f5fd29ab27119b6f1cbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|