Python API client for Jellyfin
Project description
Jellyfin ApiClient Python
This is the API client from Jellyfin Kodi extracted as a python package so that other users may use the API without maintaining a fork of the API client. Please note that this API client is not complete. You may have to add API calls to perform certain tasks. Please see Contributing below.
Usage
This client can be installed with pip3 install jellyfin-apiclient-python
and imported with import jellyfin_apiclient_python
.
There is no documentation for this API at this time. For information on how to create a client and establish a session, please see clients.py from Jellyfin MPV Shim. For details on what the individual API calls do or how to do a certain task, you will probably find the Jellyfin MPV Shim and Jellyfin Kodi repositories useful.
Changes from Jellyfin Kodi
- Removal of
websocket.py
(now a dependency towebsocket_client
). - Removal of dependencies on
helper
(from Jellyfin Kodi) andkodi_six
. - Add
has_attribute
directly to__init__.py
. - Add API calls:
get_season
for fetching season metadata.get_audio_stream
to read an audio stream into a filesearch_media_items
to search for media itemsaudio_url
to return the URL to an audio file
- Add parameters
aid=None, sid=None, start_time_ticks=None, is_playback=True
to API callget_play_info
. - Add timesync manager and SyncPlay API methods.
- Remove usage of
six
module. - Add group of
remote_
API calls to remote control another session
Contributing
When contributing, please maintain backward compatibility with existing calls in the API. Adding parameters is fine, but please make sure that they have default options to prevent existing software from breaking. Please also add your changes to the Changes from Jellyfin Kodi section.
If you would like to produce documentation for this API, I would also be interested in accepting pull requests for documentation.
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
Built Distribution
Hashes for jellyfin-apiclient-python-1.9.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcccd97a8896962dc78ccf03aabe5184d7d1ee07233eaa171b76ff68d365c764 |
|
MD5 | 5e488795993c7554e89c4076c4ac1ca1 |
|
BLAKE2b-256 | 11e4922108db0cc2814b34eca502bcd04a2776ae0a1f67c2ec1c69293ffc11c2 |
Hashes for jellyfin_apiclient_python-1.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a668ccee7b237d3029c66dc91c08e00e3ff1a2c363c0fc0ef177c1fa6f0cbe8 |
|
MD5 | 4e0da4ce5b3486b973c360f422280529 |
|
BLAKE2b-256 | d3494fff598d0e2d36c099613d5f7bd83e66530c3b24730afcea283f1d675db3 |