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.1a16.tar.gz (11.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.1a16-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plyrfm-0.0.1a16.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.1a16.tar.gz
Algorithm Hash digest
SHA256 eb0abbabb1722be05d702cbde788c310eca94b42cfd29a2ee5d7aa7b4f811634
MD5 8af2bd5861f729eda87de9b97334275c
BLAKE2b-256 c631bbfd4cbc52ffe9aa062d25e812bd3d85521525d0544fced657c4ecbb3746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plyrfm-0.0.1a16-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.1a16-py3-none-any.whl
Algorithm Hash digest
SHA256 d8c36d70bbb144a6d97e4a4546b4d1f36f616f33b9fa207b64a73a4d75aaeb0b
MD5 66fed5b8def133d9920586ece0becb75
BLAKE2b-256 6249a9cebad73311b0a9c3f1efaaa6b9410236fe02d9bd56010c108274fb84cc

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