Skip to main content

A Python client for the TvMaze API.

Project description

python-tvmaze

A library that provides a Python interface to the TvMaze API.

Installation

The easiest way to install the latest version is by using pip/easy_install to pull it from PyPI:

pip install git+https://github.com/sickchill/python-tvmaze.git

You may also use Git to clone the repository from Github and install it manually:

git clone https://github.com/sickchill/python-tvmaze.git
cd python-tvmaze
python setup.py install

Python 2.7 and 3.6+, is supported for now.

Usage

from tvmaze.api import Api
api = Api()

Shows

Show list

A list of all shows, with all primary information included.

api.show.list()  # default page is 0
api.show.list(page=1)
Show get

Retrieve all primary information for a given show.

api.show.get(1)
Show episode list

A complete list of episodes for the given show.

api.show.episodes(1)
Show episode by number

Retrieve one specific episode from this show given its season number and episode number.

api.show.episode_by_number(1)
Show episode by number

Retrieve one specific episode from this show given its season number and episode number.

api.show.episode_by_number(1, season=1, number=1)
Show episode by date

Retrieve all episodes from this show that have aired on a specific date.

api.show.episodes_by_date(1, "2013-07-01")
Show seasons

A complete list of seasons for the given show.

api.show.seasons(1)
Show cast

A list of main cast for a show.

api.show.cast(1)
Show crew

A list of main crew for a show.

api.show.crew(1)
Show AKA's

A list of AKA's (aliases) for a show. An AKA with its country set to null indicates an AKA in the show's original country.

api.show.akas(1)

People

Person get

Retrieve all primary information for a given person.

api.people.get(1)
Person cast credits

Retrieve all (show-level) cast credits for a person.

api.people.cast_credits(1)
Person crew credits

Retrieve all (show-level) crew credits for a person.

api.people.crew_credits(100)

Schedule

Today schedule

The schedule is a complete list of episodes that air today.

api.schedule.today()
Schedule by country and date

The schedule is a complete list of episodes that air in a given country on a given date.

api.schedule.filter(country_code="US", date="2014-12-01")
Full schedule

The full schedule is a list of all future episodes known to TVmaze, regardless of their country.

api.schedule.full()

Search

Search show

Search through all the shows by the show's name.

api.search.shows("girls")
Search single show

Search through all the shows by the show's name and the single search endpoint which either returns exactly one result, or no result at all.

api.search.single_show("girls")
Lookup show

If you already know a show's tvrage, thetvdb or IMDB ID, you can use this endpoint to find this exact show on TVmaze

api.search.lookup_show("tvrage", "24493")
api.search.lookup_show("thetvdb", "81189")
api.search.lookup_show("imdb", "tt0944947")
Search people

Search through all the people by the name.

api.search.people("lauren")

Character

Character get

Retrieve all primary information for a given character.

api.character.get(1)

Episode

Episode get

Retrieve all primary information for a given episode.

api.episode.get(1)

Network

Network get

Retrieve all primary information for a given network.

api.network.get(1)

WebChannel

Web Channel get

Retrieve all primary information for a given web channel.

api.web_channel.get(1)

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

py-tvmaze-api-2021.5.6.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

py_tvmaze_api-2021.5.6-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file py-tvmaze-api-2021.5.6.tar.gz.

File metadata

  • Download URL: py-tvmaze-api-2021.5.6.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a0 CPython/3.8.5 Linux/5.8.0-51-generic

File hashes

Hashes for py-tvmaze-api-2021.5.6.tar.gz
Algorithm Hash digest
SHA256 9980eaf414d1224282e4e3206579fc739153fecf0b7e89c3c1f0a5c91c44728f
MD5 1ef1c779b7e0ebe307db52a903662aee
BLAKE2b-256 8576e0f6d1bb200fb43ed0d01898f61d3b88dafa4f99982871c0a55833ec0f18

See more details on using hashes here.

File details

Details for the file py_tvmaze_api-2021.5.6-py3-none-any.whl.

File metadata

  • Download URL: py_tvmaze_api-2021.5.6-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a0 CPython/3.8.5 Linux/5.8.0-51-generic

File hashes

Hashes for py_tvmaze_api-2021.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4bb2d50cff617f802fe5d0e7a6847d4a6cbd0be8bfea4fa7fae1ede539fc742e
MD5 aabae8b665a5988146e3c204d2e2264e
BLAKE2b-256 f7eaffc4a71cb34df3f34a4eca1d446cb8ea6f7276dd09bf22d8a27dd9202074

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