Skip to main content

emby-cli

PyPI License: CC BY-NC 4.0

CLI to list, search, play, and download/backup original media files from an Emby server via its REST API. Only HTTP access is required (default port 8096) — no SSH or rsync.

Install

pip install emby-cli

Development (from a clone of this repo):

python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

In the gmbros.net ops tree (emby-downloader/), use the root Makefile instead:

cd ~/.local/gmbros.net/emby-downloader
make install

Configuration

Set environment variables (or pass CLI flags):

Variable Description
EMBY_SERVER Server URL (required)
EMBY_API_KEY API key (or use username/password)
EMBY_USERNAME / EMBY_PASSWORD Name/password auth
EMBY_OUTPUT Download directory (default ./downloads)
EMBY_METHOD download, stream, or hls
EMBY_PLAYER External player for play

See .env.example. The app does not load .env itself — source it or export vars.

Usage

emby-cli list
emby-cli search "Title"
emby-cli download -i <itemId> -o ./downloads
emby-cli sync -l "Movies"
emby-cli batch -F titles.txt -n
emby-cli play "Movie (2010)"

Download methods (-m / EMBY_METHOD):

  • downloadGET /Items/{id}/Download
  • stream — DirectStreamUrl / original.* (Emby Web style)
  • hls — HLS segments remuxed to .mkv (needs static-ffmpeg)

Development

pip install -e ".[dev]"
pytest -q
python -m build && twine check dist/*

Ops Makefile (gmbros.net host only, not in this repo):

cd ~/.local/gmbros.net/emby-downloader
make install / make test / make build / make check
make push
make release VERSION=0.1.0   # tag + gh release → CI publishes to PyPI

License

CC BY-NC 4.0

Release files for emby-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for emby-cli 0.1.0
File Size Uploaded
emby_cli-0.1.0.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for emby-cli 0.1.0
File Interpreter ABI Platform
emby_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 65.6 kB

Release files / emby_cli-0.1.0.tar.gz

Download URL emby_cli-0.1.0.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
00e24beaecf5c9cb579edebd5e8b42be4cd143351667b9112aaca2f1189dfc4b
BLAKE2b-256 checksum
How to use checksums
635a7bb2c30f000f8cac0051c0573203982e50152efd0588e0de33ba3c16cfdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release files / emby_cli-0.1.0-py3-none-any.whl

Download URL emby_cli-0.1.0-py3-none-any.whl
Size 46.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c970b9f4d966eeba3606a18fa0dbfd954680c25d9bf1950bda3e7ec1b422f64b
BLAKE2b-256 checksum
How to use checksums
78c78a72f85de9ce05cff547aff349572866cd53bb2408388acc0214031a4b3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page