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 details)

Uploaded Source

Built Distribution

interactions_fastapi-0.0.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

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

Hashes for interactions-fastapi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8b9436e4c3b7c793b7a8a2dabcc342ff2680c54b02775da244d9be2de240b0cb
MD5 be25ee2caadcdca1c15bf01a18ead5b7
BLAKE2b-256 dc1f98affe7fe2ed0df9c85aa3a433ec9adc964944dc2c18a73aa8a685fac37d

See more details on using hashes here.

File details

Details for the file interactions_fastapi-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for interactions_fastapi-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae7759ec65a6c6ada64f89c4b3e94d44d6cc1489f95090a5eeffdb7a087e5950
MD5 854abc6705bc25f8c4a97f70d46766fe
BLAKE2b-256 b663770bbb7d4d102621f04758489ea89dd8a8260ad4f5fd29ab27119b6f1cbc

See more details on using hashes here.

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