Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

lavaplay.py

Support Guild | Examples | Documentation | Source


Its a lavalink nodes manger to make a music bots for discord with python.

About

lavaplay.py is a nodes manager to connection with discord voice gateway, easy to create a music bot, you can use to anything async discord wrapper library

Usage

example for create connecting with lavalink server using hikari.

import hikari
import lavaplay

bot = hikari.GatewayBot("token")

lavalink = lavaplay.Lavalink()
node = lavalink.create_node(
    host="localhost",
    port=2333,
    password="youshallnotpass",
    user_id=123
)

@bot.listen()
async def on_ready(event: hikari.ShardReadyEvent) -> None:
    node.connect()

bot.run()

examples for some methods.

# Player object
player = node.get_player(guild_id)

# Auto search mix with track or query
await player.auto_search_tracks("Rick Astley")

# Play track
await player.play(track)

# Skip
await player.skip()

# Pause
await player.pause(stats)

# Volume
await player.volume(volume)

Features

  • Lavalink v4 support ( 1.0.13a+ )
  • new Rest api for lavalink support
  • connection handler
  • Multi-Node Support ( Coming soon )
  • Support youtube playlist
  • Add example for other discord wrapper library

Installation

# Linux/OS X
$ pip3 install -U lavaplay.py

# Windows
$ pip install -U lavaplay.py

Release files for lavaplay.py 1.0.20a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lavaplay.py 1.0.20a0
File Size Uploaded
lavaplay_py-1.0.20a0.tar.gz 17.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lavaplay.py 1.0.20a0
File Interpreter ABI Platform
lavaplay_py-1.0.20a0-py3-none-any.whl Python 3 none any Details

Total release size: 38.3 kB

Release files / lavaplay_py-1.0.20a0.tar.gz

Download URL lavaplay_py-1.0.20a0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4e2370264ca3fa9271e449728bbdfd5d93cbac6ab8fcb70b88a874ca7fb6c62c
BLAKE2b-256 checksum
How to use checksums
4dee81d229815d751fbb01b35660925f4caf623dff0601cb2af99c2d7752aec3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / lavaplay_py-1.0.20a0-py3-none-any.whl

Download URL lavaplay_py-1.0.20a0-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb61da7868cc1a2e64439e1eb97b7392870a211a759860b5ece04356605df6a6
BLAKE2b-256 checksum
How to use checksums
7b29ec3c5fefadb01308c34f4c3bfb5f721e6a2dece390e77b582cf9b21a9d4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page