Red-Lavalink
A Lavalink client library written for Python 3.5 using the AsyncIO framework. This library may be used for other projects as it contains no Red specific code or logic.
However, it is important to note that this library only supports projects using discord.py.
To install:
pip install red-lavalink
Usage
import lavalink
from discord.ext.commands import Bot
bot = Bot()
@bot.event
async def on_ready():
lavalink.initialize(
bot, host='localhost', password='password',
rest_port=2332, ws_port=2333
)
async def search_and_play(voice_channel, search_terms):
player = await lavalink.connect(voice_channel)
tracks = await player.search_yt(search_terms)
player.add(tracks[0])
await player.play()
When shutting down, be sure to do the following:
await lavalink.close()
Metadata
Release files for Red-Lavalink 0.0.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 |
|---|---|---|---|---|
| Red-Lavalink-0.0.4.tar.gz | 9.7 kB | Without provenance | Details for Red-Lavalink-0.0.4.tar.gz |
Release files / Red-Lavalink-0.0.4.tar.gz
| Download URL | Red-Lavalink-0.0.4.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8586a835e98d255eddbe18cefea3728508057c047de31427537715295778a427
|
|
BLAKE2b-256 checksum How to use checksums |
4e31336af6cbd91b2f7a4294510e3c87fd55aad269823240acdcf3b845184d21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Red-Lavalink 0.0.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.