Skip to main content

python sdk for plyr.fm - music streaming on AT Protocol

Project description

plyrfm

python sdk for plyr.fm - music on atproto.

quickstart

requires uv. lists recent tracks:

uv run --with plyrfm python -c "
from plyrfm import PlyrClient

client = PlyrClient()
for t in client.list_tracks(limit=5):
    print(f'{t.id}: {t.title} by {t.artist}')
"

install

uv add plyrfm

usage

from plyrfm import PlyrClient

# public operations (no auth needed)
client = PlyrClient()
tracks = client.list_tracks()
track = client.get_track(42)

# authenticated operations
client = PlyrClient(token="your_token")
my_tracks = client.my_tracks()
client.upload("song.mp3", "My Song")
client.download(42)

CLI

# set token once
export PLYR_TOKEN="your_token"

# list public tracks
plyrfm list

# list your tracks
plyrfm my-tracks

# upload
plyrfm upload track.mp3 "Song Title"

# download
plyrfm download 42

auth

get a developer token at plyr.fm/portal -> "developer tokens"

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

plyrfm-0.0.1a14.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plyrfm-0.0.1a14-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file plyrfm-0.0.1a14.tar.gz.

File metadata

  • Download URL: plyrfm-0.0.1a14.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plyrfm-0.0.1a14.tar.gz
Algorithm Hash digest
SHA256 736a02bdf0c793e0493e9b74abcd76ecdff6348b21b65027b36288b5d818463b
MD5 41b2bd888e223d91c6282dcf4e356817
BLAKE2b-256 8fb73ec06d95459b2cecb7300511020ae61655a532424c6c42adbc22e7c836f6

See more details on using hashes here.

File details

Details for the file plyrfm-0.0.1a14-py3-none-any.whl.

File metadata

  • Download URL: plyrfm-0.0.1a14-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plyrfm-0.0.1a14-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d80cb96426a081022d719b80d5c57b9e6895fea969056eeeda473802cd5246
MD5 bfca1ea26d8ed95d7e3c4e41c77659cb
BLAKE2b-256 b676afb30ff7540164de1a847eca1a6276c4d448674898e6d17c3ec04b4187da

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