https://github.com/mezz64/pyemby
Python wrapper for Emby api
https://github.com/mezz64/pyemby
emby emby-api emby-server hacktoberfest jellyfin media python
Last synced: 2 months ago
JSON representation
Python wrapper for Emby api
- Host: GitHub
- URL: https://github.com/mezz64/pyemby
- Owner: mezz64
- License: mit
- Created: 2016-10-19T17:17:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-24T02:08:44.000Z (about 1 year ago)
- Last Synced: 2025-03-30T06:11:08.278Z (6 months ago)
- Topics: emby, emby-api, emby-server, hacktoberfest, jellyfin, media, python
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 25
- Watchers: 1
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://pypi.python.org/pypi/pyEmby)
# Introduction
This is a python module aiming to interact with the Emby Media Server (http://emby.media) api.
Code is licensed under the MIT license.
# Version Change
Version 1.0+ utilizes python's asyncio module to perform communication with the emby server over websockets and http. Polling is no longer required to recieve device updates and many callback options are available. Code is compatible with aiohttp 3.0 and above.
Version 0.2 and below utilized the requests library and provided a simplistic interface to the emby api.
If you do not wish to incorporate the new ayncio platform please utilize Version 0.2 via it's git tag or as found in the "original" branch on this repository.
# Requirements
Python 3.6 or greaterMostly standard libraries are used:
* json
* uuid
* asyncio
* aiohttp >= 3.0
* async_timeout# Installation
```pip install pyemby```
Getting Started
===============# In Use
This library was created primarily for use with Home-Assistant. The source code for the "Emby" media_player component is a full example of library usage.
# Basic Example
```python
from pyemby import EmbyServeremby = EmbyServer(host, api_key, port=8096, ssl=False, loop=None)
emby.add_new_devices_callback(device_update_callback)
emby.add_stale_devices_callback(device_removal_callback)
emby.start()
```