Skip to main content

A set of async utils for Miku's DisQuest Cog

Project description

DisQuest-Utils

PyPI PyPI - Python Version PyPI - License

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

disquest-utils-1.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

disquest_utils-1.1.0-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page