Skip to main content

Python Module for accessing the TVDB API

Project description

tvdbAPI

This is an API library for use when connecting to The TVDB.

How to Use

Import Package

from tvdbAPI import TVDB

Use the Module

t = TVDB()

Get Basic Info About a Given Show

"""Gets basic info about the show with given 'name'.

Arguments:
    name {String} -- The name of the show you are searching for.

Raises:
    InvalidInput: Raises if a non string is entered for name.
    ShowNotFound: Raises if no show was found for the given name/alias.

Returns:
    dict -- Returns a dictionary containg basic data about the show.
"""
t.getShow("Mythbusters")

Get a List of all Episodes of a Given Show

"""Gets a list of all the episodes for a given show.

Arguments:
    name {String} -- The name of the show being searched for.

Keyword Arguments:
    accuracy {float} -- If no show with title found, how accurate should a match to the alias be. (default: {0.8})

Raises:
    InvalidInput: Raises if a non string is inputed for name.
    InvalidShowID: Raises if a show was not found.

Returns:
    list -- Returns a list of all the episodes for a given show.
"""
t.getEpisodes("Mythbusters", 0.8)

Get a Specific Episode's Name

"""Gets an episode by its name, based on the show name, season number, and episode number, and cleaned of any special characters so it can be used to name files without error.

Arguments:
    name {String} -- The name of the show being searched for.
    seasonNum {integer} -- The season number which the episode is in.
    epNum {integer} -- The episode number in the season.

Keyword Arguments:
    order {String} -- Specifies the episode number ordering to parse ("DVD", "Aired")
    accuracy {float} -- If no show with title found, how accurate should a match to the alias be. (default: {0.8})
    id -- Optional input of show id when searching for episode names.

Raises:
    InvalidInput: Raises if a non string is inputed for name.
    InvalidShowID: Raises if a show was not found.

Returns:
    String -- Returns the name of the episode searched for, cleaned of all special characters.
"""
t.getEpisodeName("Scrubs", 1, 1, "Aired", 0.8)

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tvdbapi-0.2.11-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

tvdbAPI-0.2.11-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file tvdbAPI-0.2.11.tar.gz.

File metadata

  • Download URL: tvdbAPI-0.2.11.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tvdbAPI-0.2.11.tar.gz
Algorithm Hash digest
SHA256 efd31af9b95283c845668c62ae1e94921f81361a59372c5a0d843f6cc264d384
MD5 ace8c86eb7036b8761a956466c0d8764
BLAKE2b-256 b7561ea12737f899bd33e0731cca632c42123d5be48853859ad309b6ed1f71a1

See more details on using hashes here.

File details

Details for the file tvdbapi-0.2.11-py3-none-any.whl.

File metadata

  • Download URL: tvdbapi-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for tvdbapi-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e626cb5cc1d166a20e3f9711499575a8dddc4b7afa07ea3364a95655acecb1d3
MD5 c08a70fbc5070ee5f9e02afa7c4c4939
BLAKE2b-256 e27a9eab6d16ee429dd2e75b4ab46ee2c4599a31786287c569c464fde5142fc8

See more details on using hashes here.

File details

Details for the file tvdbAPI-0.2.11-py3-none-any.whl.

File metadata

  • Download URL: tvdbAPI-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tvdbAPI-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 7e8649275bb6eac059382eeb236e3a253f63404f054de0323239456598e56901
MD5 7ec81633c84e79f17d7f8e5acdcb6cb9
BLAKE2b-256 11f502adc4635d45563b9c9736fa6c0cd3814994fe508c6e0782d576a0e2b3e9

See more details on using hashes here.

Supported by

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