Skip to main content

A wrapper around the TVDB API.

Project description

libtvdb

CI PyPI version Python 3.11+

A wrapper around the TVDB API.

Installation

pip install libtvdb

Examples

Searching for shows:

import libtvdb

client = libtvdb.TVDBClient(api_key="...", pin="...")
shows = client.search_show("Doctor Who")

for show in shows:
    print(show.name)

Development

This project uses Poetry for dependency management.

# Install dependencies
poetry install

# Run tests
poetry run pytest

# Run linters and type checkers
poetry run ruff check libtvdb
poetry run black --check libtvdb tests
poetry run pylint libtvdb
poetry run mypy libtvdb
poetry run pyright libtvdb

Advanced

You can set libtvdb_api_key and libtvdb_pin in your OS X keychain if you don't want to supply these every time. If any of the values supplied to the TVDBClient constructor are None, it will look into your keychain and load the appropriate value. If it can't find them, it will throw an exception.

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

libtvdb-0.13.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

libtvdb-0.13.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file libtvdb-0.13.0.tar.gz.

File metadata

  • Download URL: libtvdb-0.13.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Windows/10

File hashes

Hashes for libtvdb-0.13.0.tar.gz
Algorithm Hash digest
SHA256 6bf995a49196f2b886a848f8d74945891d76dd8027874340f09d01bce6eef473
MD5 8c56abbee52dcf8d563d13fbb5a0b43e
BLAKE2b-256 ba024af3b232f66f050f9033c23372f08a9404b9413148c53b364c395276fbef

See more details on using hashes here.

File details

Details for the file libtvdb-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: libtvdb-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.9 Windows/10

File hashes

Hashes for libtvdb-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c37d68c149bb429ccd817983e206c886a461985457dfaff76bacc805a96bf30
MD5 5c2063c8d781830446de1e8d0bfd464e
BLAKE2b-256 340be130e1c4fd78c56ec4a9b2d9a9cb0965fb8b49a8ba7b569eb9748593062b

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