pylav.extension.bundled_node package

Submodules

pylav.extension.bundled_node.manager module

class pylav.extension.bundled_node.manager.LocalNodeManager(client, timeout=None)[source]

Bases: object

A manager for a local Lavalink node.

abort_for_unmanaged
property build_time

The Lavalink build time used by Lavalink.

async connect_node(reconnect, wait_for=0.0, external_fallback=False)[source]

Connect to the managed node.

async connect_to_node(external_fallback)[source]

Connect to the managed node.

property disabled

Whether the node is disabled or not.

async get_ci_latest_info()[source]

Get the latest CI info from GitHub.

Get a list of Lavalink processes.

property jvm

The JVM version used by Lavalink.

property lavaplayer

The Lavaplayer version used by Lavalink.

property ll_branch

The Lavalink branch used by Lavalink.

property ll_build

The Lavalink build number used by Lavalink.

async maybe_download_jar()[source]

Download the Lavalink.jar if it doesn’t exist or is out of date.

async maybe_kill_alive_process()[source]

Kills the process if it is still alive

async maybe_kill_existing_process()[source]

Kills the process if it is still alive

async static maybe_remove_apple_music_config(data)[source]

Remove Apple Music config if it’s not set.

async static maybe_remove_proxy_config(data)[source]

Remove proxy config if it’s not set.

async static maybe_remove_ratelimit_config(data)[source]

Remove ratelimit config if it’s not set.

async static maybe_remove_yandex_config(data)[source]

Remove Yandex Music config if it’s not set.

async static maybe_update_apple_music_country_code(data)[source]

Update Apple Music country code if it’s invalid.

async static maybe_update_spotify_country_code(data)[source]

Update Spotify country code if it’s invalid.

async static maybe_update_tts_country_code(data)[source]

Update TTS country code if it’s invalid.

property node

The node object.

property path

The path to the Lavalink jar file.

Process existing Lavalink processes.

async process_settings()[source]

Process settings.

ready
async restart(java_path=None)[source]

Restart the managed node.

async should_auto_update()[source]

Returns whether or not the managed node should auto update

async shutdown()[source]

Shuts down the managed Lavalink node server and removes it from the node manager.

async start(java_path)[source]

Start the managed node.

async start_monitor(java_path)[source]

Start the monitor task for this node.

start_monitor_task
timeout
async update_dns_config(data)[source]

Update DNS config if it’s not set.

async wait_until_connected(timeout=None)[source]

Wait until Lavalink is connected.

async wait_until_ready(timeout=None)[source]

Wait until Lavalink is ready to accept connections.

pylav.extension.bundled_node.utils module

pylav.extension.bundled_node.utils.change_dict_naming_convention(data)[source]

Changes the naming convention of a dict.

pylav.extension.bundled_node.utils.convert_function(key)[source]

Converts a key to a valid key.

pylav.extension.bundled_node.utils.get_jar_ram_actual(executable)[source]

Returns the actual ram for the jar

pylav.extension.bundled_node.utils.get_jar_ram_defaults()[source]

Returns the default ram for the jar

pylav.extension.bundled_node.utils.get_max_allocation_size(executable)[source]

Returns the maximum heap size allowed for the given executable.

Module contents