Skip to main content

A python module to retrieve information from Ombi.

Project description

PyPI version Downloads

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

Note: You have to supply either a password or an api_key to successfully authenticate. The api_key will take precedence if both are supplied.

import pyombi

ombi = pyombi.Ombi(
    ssl=True,
    host="192.168.1.120",
    port="5000",
    urlbase="ombi/",
    username="MyUsername",
    password="MyPassword",
    api_key="pixf64thuh2m7kbwwgkqp52yznbj4oyo"
)

Authenticate

ombi.authenticate()

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


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.10.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

pyombi-0.1.10-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pyombi-0.1.10.tar.gz.

File metadata

  • Download URL: pyombi-0.1.10.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for pyombi-0.1.10.tar.gz
Algorithm Hash digest
SHA256 fdb29882387681e6c3041131ca68c3da2555c77947a23270f2b4802d58ab6bfa
MD5 dd7c23a2d8539eb837266d448b8befa3
BLAKE2b-256 e240fbcd474661ac110c3b50f94151f54c8a41afe89b0e53edff037d6a6174eb

See more details on using hashes here.

File details

Details for the file pyombi-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: pyombi-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for pyombi-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 a27b663ab2a08d520512ba15c70194a8d4ac83e791ea4854a97972878a8a2e2e
MD5 b59875b2821f4cf6bc53da2c6e7f1b83
BLAKE2b-256 5afec9540900c041291c21daf326c129db6f26c86e2fa8fe611eb4dc06dbb876

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page