Hyaline Discord API Wrapper.
WARNING: Hyaline is not easy to use library.
Hyaline is a discord api wrapper for python. hyaline is created for discord developers and hyaline makes everything harder. Its in alpha-release and still not finished.
Check ./docs folder for documentation and more informations about hyaline. Documentation is not finished. You can use python dir() function for get all functions, attrs in the object. Also use help() for get help about a function / class.
Installation
Just type pip install hyaline and you are ready to go!
- Current Version - 0.1.1
Change Log:
- Added Webhook Support.
Example Ping-Pong Discord Bot
# Import the library and intent helper.
import hyaline
from hyaline.helpers.Intents import ALL
# Setup session configurations.
# NOTE: If you want to limit message cache add MAX_MESSAGES
session = hyaline.Session({
"TOKEN": "token",
"INTENTS": ALL
})
async def on_ready(_packet):
print(f"Bot Started with name: {session.client.username}.")
async def on_message(msg):
if not msg.author.id == session.client.id and msg.content.lower() == "ping":
await msg.reply({
"content": ":ping_pong: Pong!"
})
# Configure the events.
# Also you can configure multiple event.
session.event("MESSAGE_CREATE", on_message)
session.event("READY", on_ready)
# Start the session.
session.start()
Metadata
Release files for hyaline 0.1.2
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 | |
|---|---|---|---|---|
| hyaline-0.1.2.tar.gz | 21.2 kB | Without provenance | Details |
Release files / hyaline-0.1.2.tar.gz
| Download URL | hyaline-0.1.2.tar.gz |
|---|---|
| Size | 21.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f082fff996709c7f118b3924e1013e2eb1607d07ff530cc500585876b861ca99
|
|
BLAKE2b-256 checksum How to use checksums |
c9ba4be24f4288c4bb51d1748f87c006b78db4bb2f445488f4284d2c159b8246
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Security for hyaline 0.1.2
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.