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
Release history Release notifications | RSS feed
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.1a21.tar.gz
(12.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
plyrfm-0.0.1a21-py3-none-any.whl
(15.2 kB
view details)
File details
Details for the file plyrfm-0.0.1a21.tar.gz.
File metadata
- Download URL: plyrfm-0.0.1a21.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9f4afe54eea6c1a80e44665cda7c7644da3ec80521fadcfcd060dca91f6f9df
|
|
| MD5 |
2646e2d978a5aefad0537079c2d5b6c2
|
|
| BLAKE2b-256 |
4d0bf4077dc93f41436f8523d9ed00e9efe9e1d3f7ebb85f71c183b7441fd1f7
|
File details
Details for the file plyrfm-0.0.1a21-py3-none-any.whl.
File metadata
- Download URL: plyrfm-0.0.1a21-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61c88a4c8824ec60aca61ac40d356b3163fe3d37109e48ab2c5c574993e22c11
|
|
| MD5 |
eb7ba94a2fdb5321f99e472a2cb44990
|
|
| BLAKE2b-256 |
6586a218c573a911d44f8b521dc909b828f9c358b3fbbad6978be64f77539d75
|