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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for disquest-utils-1.1.0.tar.gz
Algorithm Hash digest
SHA256 26a2767baee9ba7faa507bc805d1af6e4aeb4c9f8d29ef1cbb54eaa5b0ef03b1
MD5 a9b4d5567c759aed305f38a3bf30af5e
BLAKE2b-256 efd8c9b35412a9b4aeb94cb58156dd9904db8d7aa6776ae1ac8af97fc640ce57

See more details on using hashes here.

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

Hashes for disquest_utils-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcdebb6b644d95401ec738c0b0a9456e7504ccc18a2cdb6552dbeaff6b6dc543
MD5 3cda4070a8f2d388f43de88b259295b4
BLAKE2b-256 47c1d22aaca3b231b1880b5a89f9961db9246e98f34fe110cb8cc7fd8f24d9e9

See more details on using hashes here.

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