Skip to main content

Lord Of TheRings Movie SDK - Test for LibLab

Project description

lotr_movie_sdk package

Submodules

lotr_movie_sdk.movie module

Lord Of The Rings Movie SDK, based on the api exposed by: https://the-one-api.dev/.

class lotr_movie_sdk.movie.Movie(key, url='https://the-one-api.dev/v2')

Bases: object

_init_(key, url='https://the-one-api.dev/v2')

Initialization of the movie SDK that sets the api key & URL of the endpoint.

Args:

key (str): String representing the api key.
url (str): Optional parameter - a string representing the base URL for the API endpoint

> (defaults to [https://the-one-api.dev/v2](https://the-one-api.dev/v2)).

Examples:

```python
>>> hello("Roman")
'Hello Roman!'
```

get(id)

Get the metadata of a movie with the specified id.

Args:

id (str): String representing the movie id.

Returns:

Dict: movie details

Examples:

```python
>>> m.get("345t453t3")
'{"_id":"345t453t3","name":"movie1",....}'
```
  • Return type

    dict

list()

Get list of all the movies with their metadata.

Returns:

List: list of movies with their metadata

Examples:

```python
>>> m.list()
'[{"_id":"45t5t45t454",'name':'movie1',....},...]'
```
  • Return type

    list

quotes(id)

List all the quotes of a movie with the specified id.

Args:

id (str): String representing the movie id.

Returns:

List: list of movie quotes

Examples:

```python
>>> m.quotes("345t453t3")
'[{"_id":"34r43r43r","quote":"Hello world"},....]'
```
  • Return type

    list

Module contents

Lord Of TheRings Movie SDK - Test for LibLab

lotr_movie_sdk.get_version()

  • Return type

    str

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

lotr_movie_sdk-0.1.1.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

lotr_movie_sdk-0.1.1-py3-none-any.whl (4.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