2023-01-12 01:04:47 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
"""
|
|
|
|
tmdbsimple
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
|
|
|
*tmdbsimple* is a wrapper, written in Python, for The Movie Database (TMDb)
|
|
|
|
API v3. By calling the functions available in *tmdbsimple* you can simplify
|
|
|
|
your code and easily access a vast amount of movie, tv, and cast data. To find
|
|
|
|
out more about The Movie Database API, check out the overview page
|
|
|
|
http://www.themoviedb.org/documentation/api and documentation page
|
|
|
|
https://developers.themoviedb.org/3/getting-started
|
|
|
|
https://www.themoviedb.org/documentation/api/status-codes
|
|
|
|
|
2023-01-12 20:46:02 +00:00
|
|
|
:copyright: (c) 2013-2022 by Celia Oakley.
|
2023-01-12 01:04:47 +00:00
|
|
|
:license: GPLv3, see LICENSE for more details
|
|
|
|
"""
|
|
|
|
|
|
|
|
__title__ = 'tmdbsimple'
|
2023-01-12 20:46:02 +00:00
|
|
|
__version__ = '2.9.1'
|
2023-01-12 01:04:47 +00:00
|
|
|
__author__ = 'Celia Oakley'
|
2023-01-12 20:46:02 +00:00
|
|
|
__copyright__ = 'Copyright (c) 2013-2022 Celia Oakley'
|
2023-01-12 01:04:47 +00:00
|
|
|
__license__ = 'GPLv3'
|
|
|
|
|
|
|
|
import os
|
2023-01-12 20:46:02 +00:00
|
|
|
import requests
|
2023-01-12 01:04:47 +00:00
|
|
|
|
|
|
|
from .account import Account, Authentication, GuestSessions, Lists
|
|
|
|
from .base import APIKeyError
|
|
|
|
from .changes import Changes
|
|
|
|
from .configuration import Configuration, Certifications
|
|
|
|
from .discover import Discover
|
|
|
|
from .find import Find, Trending
|
|
|
|
from .genres import Genres
|
|
|
|
from .movies import Movies, Collections, Companies, Keywords, Reviews
|
|
|
|
from .people import People, Credits
|
|
|
|
from .search import Search
|
|
|
|
from .tv import TV, TV_Seasons, TV_Episodes, TV_Episode_Groups, TV_Changes, Networks
|
|
|
|
|
|
|
|
__all__ = ['Account', 'Authentication', 'GuestSessions', 'Lists',
|
|
|
|
'APIKeyError',
|
|
|
|
'Changes',
|
|
|
|
'Configuration', 'Certifications',
|
|
|
|
'Discover',
|
|
|
|
'Find', 'Trending',
|
|
|
|
'Genres',
|
|
|
|
'Movies', 'Collections', 'Companies', 'Keywords', 'Reviews',
|
|
|
|
'People', 'Credits'
|
|
|
|
'Search',
|
|
|
|
'TV', 'TV_Seasons', 'TV_Episodes', 'TV_Episode_Groups', 'TV_Changes', 'Networks'
|
|
|
|
]
|
|
|
|
|
|
|
|
API_KEY = os.environ.get('TMDB_API_KEY', None)
|
|
|
|
API_VERSION = '3'
|
2023-01-12 20:46:02 +00:00
|
|
|
REQUESTS_SESSION = None
|
|
|
|
REQUESTS_TIMEOUT = os.environ.get('TMDB_REQUESTS_TIMEOUT', None)
|