theTVDB API Client (json)
Project description
Python client for theTVDB API (v1.2+) REST endpoints in json format.
Features
provide client for interacting with thetvdb api
Usage
>>> import tvdbapi_client >>> client = tvdbapi_client.get_client(apikey='abc123', username='johndoe', userpass='mypass') >>> client.search_series('the big bang theory') [{'status': 'Continuing', 'network': 'CBS', 'overview': "What happens when hyperintelligent roommates Sheldon and Leonard meet Penny, a free-spirited beauty moving in next door, and realize they know next to nothing about life outside of the lab. Rounding out the crew are the smarmy Wolowitz, who thinks he's as sexy as he is brainy, and Koothrappali, who suffers from an inability to speak in the presence of a woman.", 'seriesName': 'The Big Bang Theory', 'firstAired': '2007-09-24', 'poster': 'graphical/80379-g23.jpg', 'id': 80379, 'aliases': ['Big Bang']}]>>> from tvdbapi_client import api >>> client = api.TVDBClient(apikey='abc123', username='johndoe', userpass='mypass') >>> client.search_series('the big bang theory') [{'status': 'Continuing', 'network': 'CBS', 'overview': "What happens when hyperintelligent roommates Sheldon and Leonard meet Penny, a free-spirited beauty moving in next door, and realize they know next to nothing about life outside of the lab. Rounding out the crew are the smarmy Wolowitz, who thinks he's as sexy as he is brainy, and Koothrappali, who suffers from an inability to speak in the presence of a woman.", 'seriesName': 'The Big Bang Theory', 'firstAired': '2007-09-24', 'poster': 'graphical/80379-g23.jpg', 'id': 80379, 'aliases': ['Big Bang']}]
Available Configuration Options
apikey:
API key from your TVDB account. Default: ENV['TVDB_API_KEY']
username:
Username from your TVDB account. Default: ENV['TVDB_USERNAME']
userpass:
Password from your TVDB account. Default: ENV['TVDB_PASSWORD']
service_url:
Base URL for TVDB API service. Default: https://api-dev.thetvdb.com
verify_ssl_certs:
Flag for validating ssl certs for service url (https). Default: True
select_first:
Flag for selecting first series from search results. Default: False
Configuring service can be done by either of the following:
passing individual inputs directly to tvdbapi_client.get_client
passing path to configuration file to tvdbapi_client.get_client
setting environment variables as noted above
Documentation
Documentation is available at http://tvdbapi-client.readthedocs.org/.
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
tvdbapi_client-0.1.1.tar.gz
(20.0 kB
view hashes)
Built Distributions
tvdbapi_client-0.1.1-py2.7.egg
(29.6 kB
view hashes)
Close
Hashes for tvdbapi_client-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78ac36e777e658bb81f4b3034af5025d4162c591d549399c22af66d4667498c1 |
|
MD5 | eeb690b118015fcf43a1f9c9d8faac1b |
|
BLAKE2b-256 | c1357f6d2a3c502142ffcd56383d86fdbef734fc02b10f2790f227b91acb5ee4 |