A python module to retrieve information from Ombi.
Project description
pyombi
This is a project for retrieving information from an Ombi instance using their API.
Installation
Run the following to install:
pip install pyombi
Usage
Creating an object of your Ombi instance
import pyombi
ombi = pyombi.Ombi(
ssl=True,
host="192.168.1.120",
port="5000",
api_key="pixf64thuh2m7kbwwgkqp52yznbj4oyo",
urlbase="ombi/",
username="MyUsername"
)
Authenticate
ombi.authenticate()
Note: You have to either supply an api_key
or password
for authentication.
Testing connection to Ombi
try:
ombi.test_connection()
except pyombi.OmbiError as e:
print(e)
return
Retrieving data
movies = ombi.movie_requests
tv = ombi.tv_requests
music = ombi.music_requests
total = ombi.total_requests
Searching
movie_search = ombi.search_movie("Movie Name")
tv_search = ombi.search_tv("TV show name")
music_search = ombi.search_music_album("Album name")
Requesting
ombi.request_movie("theMovieDbId")
ombi.request_tv("theTvDbId", request_latest=True)
ombi.request_music("foreignAlbumId")
License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
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
pyombi-0.1.8.tar.gz
(3.3 kB
view hashes)
Built Distribution
pyombi-0.1.8-py3-none-any.whl
(4.1 kB
view hashes)