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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lotr_movie_sdk-0.1.1.tar.gz
.
File metadata
- Download URL: lotr_movie_sdk-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.10 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2a8419a21a73eeddd39ba2f51d3e04972109179b21aa2340c27c9c7c0c3b6615
|
|
MD5 |
ed63d72e298fb0ee1f356745badceb80
|
|
BLAKE2b-256 |
b8ecd8b10d3cfc80a94b03e51a7cb1981f3ec8e80ab9c8a67e9c3f25de445d7b
|
File details
Details for the file lotr_movie_sdk-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: lotr_movie_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.9.10 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a46aac1b22c73b29d43bf56ac79ea8439c1507a73904e2fbca6cd4360914080f
|
|
MD5 |
f1795a157440a05d4869dfff3a45f9d0
|
|
BLAKE2b-256 |
8d9627c683e9092788f4493784c48b8182476c247e6fa8fb814c3957496ef716
|