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
Hashes for disquest_utils-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcdebb6b644d95401ec738c0b0a9456e7504ccc18a2cdb6552dbeaff6b6dc543 |
|
MD5 | 3cda4070a8f2d388f43de88b259295b4 |
|
BLAKE2b-256 | 47c1d22aaca3b231b1880b5a89f9961db9246e98f34fe110cb8cc7fd8f24d9e9 |