A Python client for Emby Media Server's API
Project description
Python Client
Name | embyclient |
---|---|
Language | Python |
SDK Folder | SampleCode/RestApi/Clients/Python |
Requirements.
Python 2.7 and 3.4+
Installation & Usage
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import embyclient
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import embyclient
from embyclient.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyclient.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyclient.ActivityLogServiceApi(embyclient.ApiClient(configuration))
start_index = 56 # int | Optional. The record index to start at. All items with a lower index will be dropped from the results. (optional)
limit = 56 # int | Optional. The maximum number of records to return (optional)
min_date = 'min_date_example' # str | Optional. The minimum date. Format = ISO (optional)
try:
# Gets activity log entries
api_response = api_instance.get_system_activitylog_entries(start_index=start_index, limit=limit, min_date=min_date)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityLogServiceApi->get_system_activitylog_entries: %s\n" % e)
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
embyclient-4.8.3.0.tar.gz
(232.2 kB
view hashes)
Built Distribution
embyclient-4.8.3.0-py3-none-any.whl
(540.9 kB
view hashes)
Close
Hashes for embyclient-4.8.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77e0294b5e99602eb4ef83e212c348b55a345b036eddf1732ecf36be5bb7290e |
|
MD5 | 12cbae2fe5fe0af1dfba7bd11f0c7226 |
|
BLAKE2b-256 | b9924b65184c7a809a8a5ce0deda2d313f5af74b9ff7dc22fbea91551f8b7c23 |