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.
Metadata
Release files for deta-discord-interactions 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| deta-discord-interactions-0.1.1.tar.gz | 60.1 kB | Without provenance | Details for deta-discord-interactions-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deta_discord_interactions-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for deta_discord_interactions-0.1.1-py3-none-any.whl |
Total release size: 139.9 kB
Release files / deta-discord-interactions-0.1.1.tar.gz
| Download URL | deta-discord-interactions-0.1.1.tar.gz |
|---|---|
| Size | 60.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78779c18a1713718692cb195c1c4d1d9cf8461c0c560abccff3d41878f509f55
|
|
BLAKE2b-256 checksum How to use checksums |
bcc12020756ed25fe7cb3985184feec1b6a262ed227adf2af862f5525eeb2dfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.5
|
Release files / deta_discord_interactions-0.1.1-py3-none-any.whl
| Download URL | deta_discord_interactions-0.1.1-py3-none-any.whl |
|---|---|
| Size | 79.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e5fdf050cdcd34c6abe8bb04efd6f6192d1bc6f8187342e9b6dcc129545d7ab
|
|
BLAKE2b-256 checksum How to use checksums |
189f50967cdfcac6dd7b9726eca91b6d8143a73fbcdf362d0f586ec2de02e9c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.5
|
Security for deta-discord-interactions 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.