Skip to main content

No project description provided

Project description

LPTrack

LavaPlayer encoded track encoder and decoder.

Introduction

LPTrack is a small library which allows you to interpret the encoded track data used by LavaPlayer.

This is useful when you're dealing with standalone LavaLink instances like Lavalink and Andesite, because it allows you to interpret the track data directly.

Installation

From PyPI

pip install lptrack

Usage

import lptrack

info = lptrack.Track(
    title="A song",
    author="Some random artist",
    duration=120,                   # duration is in seconds!
    identifier="dQw4w9WgXcQ",
    is_stream=False,
)

encoded = lptrack.encode(info)
print(encoded)
# b'QAAANAIABkEgc29uZwASU29tZSByYW5kb20gYXJ0aXN0AAAAAAAB1MAAC2RRdzR3OVdnWGNRAAA='

decoded = lptrack.decode(encoded)

assert decoded == encoded

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lptrack-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file lptrack-0.0.1.tar.gz.

File metadata

  • Download URL: lptrack-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.4

File hashes

Hashes for lptrack-0.0.1.tar.gz
Algorithm Hash digest
SHA256 16621207834645255b7ca3ebe606a6fb943367d0fda54a1468063ed3ce585bb3
MD5 00972b539281efc60e5e5b0ac9ff4a8a
BLAKE2b-256 93165bf9b97066cafb8a13a8e10ec9d04b47e7a1c46069b0cdb9d1e2b9f734b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page