Skip to main content

Asynchronous API wrapper for TMDb (https://www.themoviedb.org/).

Project description

PyPI Version Travis Build Status Code Coverage Code Issues ISC License

Asynchronous API wrapper for TMDb.

Usage

atmdb can be installed from PyPI using pip:

pip install atmdb

The core TMDbClient must be instantiated with a valid API token (see the API FAQ for more information):

from atmdb import TMDbClient

client = TMDbClient(api_token='<insert your token here>')

You can then access the API by calling asynchronous helper methods on the client instance:

movie = await client.get_movie(550)
assert movie.title == 'Fight Club'

Documentation

Documentation is available on PythonHosted.

Testing

You can run the tests with python setup.py test. To include the integration suite, ensure that the environment variable TMDB_API_TOKEN is set to a valid API token.

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

atmdb-0.0.2.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

atmdb-0.0.2-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page