A web framework for Discord interactions specialized for usage in https://deta.sh
Project description
Deta-Discord-Interactions
This is a small web framework that lets you write Discord Application Commands using a decorator syntax similar to Flask's @app.route() or Discord.py's @bot.command(), specialized for usage in https://deta.space
It is a fork of flask-discord-interactions, but without requiring Flask and with some added features to make the usage of the library better on deta.
@app.command()
def ping(ctx):
"Respond with a friendly 'pong'!"
return "Pong!"
The documentation of the original library is available on readthedocs. The documentation of the Fork is still Work in Progress.
Known issues
- No good way to defer nor follow up (any spawned threads are killed as soon as the main function returns)
- The Deta Space changes made it a quite few times more complicated to setup than Cloud used to be
- Not particularly beginner friendly
- Poorly documented
As far as security goes
The http.server module of the standard library that deta_discord_interactions.http relies on is not recommended for production usage. Use it at your own risk.
Any server that supports PEP 3333 and works in serverless environments should work, so you may want to use something like https://gunicorn.org/ instead of the deta_discord_interactions.http used in Examples.
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
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 deta-discord-interactions-0.1.1.tar.gz.
File metadata
- Download URL: deta-discord-interactions-0.1.1.tar.gz
- Upload date:
- Size: 60.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78779c18a1713718692cb195c1c4d1d9cf8461c0c560abccff3d41878f509f55
|
|
| MD5 |
6dfb7ebbda2aecc0cedcf8425cf651a6
|
|
| BLAKE2b-256 |
bcc12020756ed25fe7cb3985184feec1b6a262ed227adf2af862f5525eeb2dfe
|
File details
Details for the file deta_discord_interactions-0.1.1-py3-none-any.whl.
File metadata
- Download URL: deta_discord_interactions-0.1.1-py3-none-any.whl
- Upload date:
- Size: 79.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e5fdf050cdcd34c6abe8bb04efd6f6192d1bc6f8187342e9b6dcc129545d7ab
|
|
| MD5 |
6d50016b74eca8cf07fb7c6154346055
|
|
| BLAKE2b-256 |
189f50967cdfcac6dd7b9726eca91b6d8143a73fbcdf362d0f586ec2de02e9c5
|