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.12.1.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.12.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libtvdb-0.12.1.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.12.1.tar.gz
Algorithm Hash digest
SHA256 7dd8bb7811f6a49cc64aa9b11c26e21c985d2d5373093c7e15b480ab2c9a5514
MD5 cf47aea90dc92c7cac40eae1bde281a9
BLAKE2b-256 3f1844ce6d0dfb8fcc984075c583d302a6bb9217f7e3b5902565f1129e21c7a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libtvdb-0.12.1-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.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67759a711c6591bbff97f23743b4f7a061bd5e4c6dcb4bc764afab27519e7599
MD5 c08e5a257df1b4940dae631108739d2b
BLAKE2b-256 a9fcf48a569b7db192784aadb9e1567624b04f9763eab4d600280a92e787984c

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