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
Release files for lotr-movie-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lotr_movie_sdk-0.1.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lotr_movie_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / lotr_movie_sdk-0.1.1.tar.gz
| Download URL | lotr_movie_sdk-0.1.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a8419a21a73eeddd39ba2f51d3e04972109179b21aa2340c27c9c7c0c3b6615
|
|
BLAKE2b-256 checksum How to use checksums |
b8ecd8b10d3cfc80a94b03e51a7cb1981f3ec8e80ab9c8a67e9c3f25de445d7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.9.10 Darwin/22.2.0
|
Release files / lotr_movie_sdk-0.1.1-py3-none-any.whl
| Download URL | lotr_movie_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a46aac1b22c73b29d43bf56ac79ea8439c1507a73904e2fbca6cd4360914080f
|
|
BLAKE2b-256 checksum How to use checksums |
8d9627c683e9092788f4493784c48b8182476c247e6fa8fb814c3957496ef716
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.9.10 Darwin/22.2.0
|