A set of async utils for Miku's DisQuest Cog
Project description
DisQuest-Utils
A set of async utils for DisQuest
Info
DisQuest is an base system for storing and giving users on Discord xp. This is just the base set of coroutines needed in order to use DisQuest. DisQuest uses PostgreSQL. Alternatively, if you plan on passing in your own URI (which probably u would have to), DisQuest technically also supports MySQL/MariaDB. For MySQL/MariaDB, use asyncmy
instead of asyncpg
Installing
With Asyncpg (default):
pip install disquest-utils
With Asyncmy:
pip install disquest-utils[asyncmy]
URI Connections
DisQuest-Utils accepts URI connections in order to connection to the database. It is recommended to have python-dotenv installed, and then add the credentials as needed. The example below are only for examples, and adjust them as needed
Asyncpg:
CONNECTION_URI = "postgresql+asyncpg://user:password@host:port/dbname[?key=value&key=value...]"
Asyncmy:
CONNECTION_URI = "mysql+asyncmy://user:password@host:port/dbname[?key=value&key=value...]"
Now pass the variable CONNECTION_URI
as the uri arg of any method, and you should be ready to go
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
File details
Details for the file disquest-utils-1.1.0.tar.gz
.
File metadata
- Download URL: disquest-utils-1.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.10.102.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a2767baee9ba7faa507bc805d1af6e4aeb4c9f8d29ef1cbb54eaa5b0ef03b1 |
|
MD5 | a9b4d5567c759aed305f38a3bf30af5e |
|
BLAKE2b-256 | efd8c9b35412a9b4aeb94cb58156dd9904db8d7aa6776ae1ac8af97fc640ce57 |
File details
Details for the file disquest_utils-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: disquest_utils-1.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.5 Linux/5.10.102.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcdebb6b644d95401ec738c0b0a9456e7504ccc18a2cdb6552dbeaff6b6dc543 |
|
MD5 | 3cda4070a8f2d388f43de88b259295b4 |
|
BLAKE2b-256 | 47c1d22aaca3b231b1880b5a89f9961db9246e98f34fe110cb8cc7fd8f24d9e9 |