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.14.0.tar.gz (12.0 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.14.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libtvdb-0.14.0.tar.gz
  • Upload date:
  • Size: 12.0 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.14.0.tar.gz
Algorithm Hash digest
SHA256 d0a864b9108e1a68990b1c23caae56b95f91a961ac65985c7e51848e8f540618
MD5 2f26479700aae6dd6a2e71c62d05ec0d
BLAKE2b-256 58a366cbaa78105f29f9861cbffdcff7c87f70683fe15c3136b39a00225ae3f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libtvdb-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 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.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd53aad47fa5d5c846aa1294694f31196e562befd41b3915133212992cdaea2c
MD5 f61847e776bbb3408ecf6bab89d3b041
BLAKE2b-256 c2a4747b1197633d19773becc5144dccfc4e5fca0318715db61c5b54ebf4ef8c

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