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

Uploaded Python 3

File details

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

File metadata

  • Download URL: libtvdb-0.11.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.11.1.tar.gz
Algorithm Hash digest
SHA256 4b80cb65b8ac1dab8123cac672530d7a8254e37258c53254b11c62c6e51461f8
MD5 b9b5db8ee7410a8356f082aa7ed9b42c
BLAKE2b-256 fd08754333851e6a9c61620899d64bdda2a34d892f9ff2dc7d87602031febf1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libtvdb-0.11.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.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b3c11bdd21402c8fe01b39d6603bc50afa4a92c6ab2cac29c90a898696d2b28
MD5 7210d64109d35a27c5920ebf9067e833
BLAKE2b-256 d540c439765d96f8748bbb41827599547fea0224486e10705daadda2a9884519

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