DiSwarm
Discord-based Swarm Protocol Library
Usage
Main class: Swarm
Initialize like so:
swarm = Swarm(discord channel id: str, discord bot token: str, swarm id: str)
Sending message to swarm:
swarm.send(string message)
Getting messages from swarm:
swarm.get_queue()
returns a list of (timestamp, decoded message) tuples from your swarm members
Important:
Before you end your program, call swarm.end() to cleanly end the discord bot process
Notes
- Swarm ID: the same for all bots in your swarm, but it should be unique from any other swarm, at least on your swarm channel. To be safe, use a randomly generated string or number. Make sure every bot in your swarm has the same id, because bots with different ids cannot see eachother's messages.
get_queue()will only return messages from your swarm, so you can have multiple swarms in the same channel.- DiSwarm uses Fernet encryption, provided by the
cryptographylibrary. Install this library throughpip install cryptography. - Also requires
pip install discord
Metadata
Release files for DiSwarm 2.2.0
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 | |
|---|---|---|---|---|
| DiSwarm-2.2.0.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DiSwarm-2.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / DiSwarm-2.2.0.tar.gz
| Download URL | DiSwarm-2.2.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
923017530d8f1d0abfeb055a9e95461f47890ca6c9628945c15ee9eb2d45b200
|
|
BLAKE2b-256 checksum How to use checksums |
68f056646080925f89cbe9c89df2df167226c3f266b907b5248a058ec6d757e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.4
|
Release files / DiSwarm-2.2.0-py3-none-any.whl
| Download URL | DiSwarm-2.2.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f4d7f230eae9eda7ef521f8fde44fc4b95eb21f56d816268e16c3c928613816
|
|
BLAKE2b-256 checksum How to use checksums |
9f4aeb6c4aa16ba3fd884933fc262265f1c9f5c4b5e10f5a654f8a8c5e4ce7c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.4
|
Security for DiSwarm 2.2.0
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.