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.15.0.tar.gz (12.4 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.15.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libtvdb-0.15.0.tar.gz
  • Upload date:
  • Size: 12.4 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.15.0.tar.gz
Algorithm Hash digest
SHA256 33fac073f056e1388d7d9f09500aad3f2c6d33374d1bf73707c9f3976d1a60e0
MD5 60f0198d4b65dcf527bbf37413430edd
BLAKE2b-256 2eb6f93a10d1075b7bed3a34cc63d91b9e892f82ed8306aaaedc6db5104f4b28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libtvdb-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 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.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d47588bb62617b1a3a9d775779dac4dcb1f7d802f2fb203d7c90e9fa86e14de0
MD5 b8160215b1ecd813a90fd312dfe4b66a
BLAKE2b-256 ea4e2b28e38a6fdefc4c507d6a2af99d5da170a15f25fb1b5a055e3a8d262409

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