This project has been archived by its maintainers, and is no longer receiving any updates.
andesite.py
A Python client library for Andesite. andesite.py tries to be as flexible as possible while still providing the same, consistent API. The library comes with built-in support for discord.py, but it can be used with any library of your choice.
The goodies
- Pythonic, fully typed API including all Andesite "entities"
- Client pools with balancing and even state migration. If one node goes down its players are seamlessly migrated to another one.
- Custom state handlers. andesite.py doesn't force you to use its state manager, not even for the client pools. It provides you with a solid in-memory one, but you can swap it out however you want.
- Future-proof design so that if the library becomes outdated it still remains usable.
Installation
You can install the library from PyPI using pip:
pip install andesite.py
Look & Feel
The following is a small example of how to use andesite.py. For more in-depth examples and information, please refer to the documentation.
Please keep in mind that the following example is incomplete. It only serves to demonstrate some andesite.py code.
import asyncio
import andesite
client = andesite.create_client(
"http://localhost:5000", # REST endpoint
"ws://localhost:5000/websocket", # WebSocket endpoint
None, # Andesite password
549905730099216384, # Bot's user id
)
async def main() -> None:
result = await client.search_tracks("your favourite song")
track_info = result.get_selected_track()
# notice that we haven't called any sort of connect method. You can
# of course manually connect the client, but if you don't, that's no
# biggie because andesite.py will do it for you.
await client.play(track_info.track)
asyncio.run(main())
Documentation
You can find the documentation on the project's website. Click here to open the documentation.
You can also take a look at the examples directory for a reference.
Alternatives
If andesite.py isn't what you're looking for, first of all, please leave some feedback, but secondly here are some alternative Python client libraries which you can use:
Metadata
Release files for andesite.py 0.2.4
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 | Actions |
|---|---|---|---|---|
| andesite.py-0.2.4.tar.gz | 44.8 kB | Without provenance | Details for andesite.py-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| andesite.py-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for andesite.py-0.2.4-py3-none-any.whl |
Total release size: 97.7 kB
Release files / andesite.py-0.2.4.tar.gz
| Download URL | andesite.py-0.2.4.tar.gz |
|---|---|
| Size | 44.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
248cd2f02172042700c21633fd9835bddfa56f7c14ffe57c33e569e537d3c639
|
|
BLAKE2b-256 checksum How to use checksums |
d8975ef266dd7c514f1d1a0535a1702fbbef3776ea89dbb9c7ff23c54c7b3ae8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.4
|
Release files / andesite.py-0.2.4-py3-none-any.whl
| Download URL | andesite.py-0.2.4-py3-none-any.whl |
|---|---|
| Size | 52.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05872b1eb5a51831bc76180641d2870bccc7f9ac483825eea2ac662d9ab85b31
|
|
BLAKE2b-256 checksum How to use checksums |
6e1e4b9c07a117c50f491d9ccdc77bd90e694791a2468e8e7026a1994940085d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.4
|
Security for andesite.py 0.2.4
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.