Configuration
Bases: TMDB
Configuration functionality.
See: https://developers.themoviedb.org/3/configuration
Source code in src/tmdb_client_py/configuration.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
countries(**kwargs)
Get the list of countries (ISO 3166-1 tags) used throughout TMDb.
Returns:
| Type | Description |
|---|---|
|
A dict representation of the JSON returned from the API. |
Source code in src/tmdb_client_py/configuration.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
info(**kwargs)
Get the system wide configuration information. Some elements of the API require some knowledge of this configuration data. The purpose of this is to try and keep the actual API responses as light as possible. It is recommended you cache this data within your application and check for updates every few days.
This method currently holds the data relevant to building image URLs as well as the change key map.
To build an image URL, you will need 3 pieces of data. The base_url, size and file_path. Simply combine them all and you will have a fully qualified URL. Here’s an example URL:
https://image.tmdb.org/t/p/w500/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg
The configuration method also contains the list of change keys which can be useful if you are building an app that consumes data from the change feed.
Returns:
| Type | Description |
|---|---|
|
A dict representation of the JSON returned from the API. |
Source code in src/tmdb_client_py/configuration.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
jobs(**kwargs)
Get a list of the jobs and departments we use on TMDb.
Returns:
| Type | Description |
|---|---|
|
A dict representation of the JSON returned from the API. |
Source code in src/tmdb_client_py/configuration.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |
languages(**kwargs)
Get the list of languages (ISO 639-1 tags) used throughout TMDb.
Returns:
| Type | Description |
|---|---|
|
A dict representation of the JSON returned from the API. |
Source code in src/tmdb_client_py/configuration.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
primary_translations(**kwargs)
Get a list of the officially supported translations on TMDb.
Returns:
| Type | Description |
|---|---|
|
A dict representation of the JSON returned from the API. |
Source code in src/tmdb_client_py/configuration.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
timezones(**kwargs)
Get the list of timezones used throughout TMDb.
Returns:
| Type | Description |
|---|---|
|
A dict representation of the JSON returned from the API. |
Source code in src/tmdb_client_py/configuration.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |