Skip to content

Certifications

Bases: TMDB

Certifications functionality.

See: https://developers.themoviedb.org/3/certifications

Source code in src/tmdb_client_py/configuration.py
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
class Certifications(TMDB):
    """
    Certifications functionality.

    See: https://developers.themoviedb.org/3/certifications
    """

    BASE_PATH = "certification"
    URLS = {
        "movie_list": "/movie/list",
        "tv_list": "/tv/list",
    }

    def movie_list(self, **kwargs):
        """
        Get an up to date list of the officially supported movie certifications on TMDb.

        Args:
            None

        Returns:
            A dict representation of the JSON returned from the API.
        """
        path = self._get_path("movie_list")

        response = self._GET(path, kwargs)
        self._set_attrs_to_values(response)
        return response

    def tv_list(self, **kwargs):
        """
        Get an up to date list of the officially supported TV show certifications on TMDb.

        Args:
            None

        Returns:
            A dict representation of the JSON returned from the API.
        """
        path = self._get_path("tv_list")

        response = self._GET(path, kwargs)
        self._set_attrs_to_values(response)
        return response

    # backward compatibility, when only /movie/list existed
    def list(self, **kwargs):
        """
        Get the list of supported certifications for movies.

        Args:
            None

        Returns:
            A dict representation of the JSON returned from the API.
        """
        path = self._get_path("movie_list")

        response = self._GET(path, kwargs)
        self._set_attrs_to_values(response)
        return response

list(**kwargs)

Get the list of supported certifications for movies.

Returns:

Type Description

A dict representation of the JSON returned from the API.

Source code in src/tmdb_client_py/configuration.py
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
def list(self, **kwargs):
    """
    Get the list of supported certifications for movies.

    Args:
        None

    Returns:
        A dict representation of the JSON returned from the API.
    """
    path = self._get_path("movie_list")

    response = self._GET(path, kwargs)
    self._set_attrs_to_values(response)
    return response

movie_list(**kwargs)

Get an up to date list of the officially supported movie certifications on TMDb.

Returns:

Type Description

A dict representation of the JSON returned from the API.

Source code in src/tmdb_client_py/configuration.py
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
def movie_list(self, **kwargs):
    """
    Get an up to date list of the officially supported movie certifications on TMDb.

    Args:
        None

    Returns:
        A dict representation of the JSON returned from the API.
    """
    path = self._get_path("movie_list")

    response = self._GET(path, kwargs)
    self._set_attrs_to_values(response)
    return response

tv_list(**kwargs)

Get an up to date list of the officially supported TV show certifications on TMDb.

Returns:

Type Description

A dict representation of the JSON returned from the API.

Source code in src/tmdb_client_py/configuration.py
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
def tv_list(self, **kwargs):
    """
    Get an up to date list of the officially supported TV show certifications on TMDb.

    Args:
        None

    Returns:
        A dict representation of the JSON returned from the API.
    """
    path = self._get_path("tv_list")

    response = self._GET(path, kwargs)
    self._set_attrs_to_values(response)
    return response