Name | lotronexyz12-sdk JSON |
Version |
0.1.3
JSON |
| download |
home_page | |
Summary | LOTR coding test |
upload_time | 2023-03-31 21:12:52 |
maintainer | |
docs_url | None |
author | Alex |
requires_python | >=3.10.9 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
### Cast it into the fire!
Run `pip3 install lotronexyz12_sdk`
Import the SDK
`from lotronexyz12_sdk import LOTR_SDK`
Examples
```
client = LOTR_SDK()
# query the movie endpoint
movie_endpoint = client.endpoint('movie')
```
```
# Fetch all movies
movies = movie_endpoint.fetch_all()
```
```
# Fetch all movies with OPTIONS
# limit -> int
# page -> int
# offset -> int
# sort -> str.
Sort by movie name -> "name:asc" or "name:desc"
# filter -> str
- Less than, greater than or equal to.
- Keys: academyAwardWins, runtimeInMinutes, and budgetInMillions.
- Example value: academyAwardWins>10&runtimeInMinutes>=160
movies = endpoint.fetch_all(
options={
'limit' : 5,
#'page' : 2,
#'offset' : 3,
'sort' : 'name:asc',
},
filter = 'academyAwardWins>10&runtimeInMinutes>=160'
)
```
```
# Fetch a single movie
movies = endpoint.fetch_one(
'5cd95395de30eff6ebccde5d', # movie _id
with_quotes=True, # return quotes from movie, default is False
options = { # Options similar to fetch_all
'sort' : 'character:desc', # Sort by movie name or character if with_quotes=True
'limit' : 5
}
)
```
Raw data
{
"_id": null,
"home_page": "",
"name": "lotronexyz12-sdk",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10.9",
"maintainer_email": "",
"keywords": "",
"author": "Alex",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/44/79/cc323650c2046302e78a559c8d2ed0c08d1acf0f653594a4f5e0d358f08d/lotronexyz12_sdk-0.1.3.tar.gz",
"platform": null,
"description": "### Cast it into the fire!\n\nRun `pip3 install lotronexyz12_sdk`\n\nImport the SDK\n`from lotronexyz12_sdk import LOTR_SDK`\n\nExamples\n```\nclient = LOTR_SDK()\n\n# query the movie endpoint\nmovie_endpoint = client.endpoint('movie')\n```\n\n```\n# Fetch all movies\nmovies = movie_endpoint.fetch_all()\n```\n\n```\n# Fetch all movies with OPTIONS\n# limit -> int\n# page -> int\n# offset -> int\n# sort -> str. \n Sort by movie name -> \"name:asc\" or \"name:desc\"\n\n# filter -> str\n - Less than, greater than or equal to.\n - Keys: academyAwardWins, runtimeInMinutes, and budgetInMillions.\n - Example value: academyAwardWins>10&runtimeInMinutes>=160\n\nmovies = endpoint.fetch_all(\n options={\n 'limit' : 5,\n #'page' : 2,\n #'offset' : 3,\n 'sort' : 'name:asc',\n }, \n filter = 'academyAwardWins>10&runtimeInMinutes>=160'\n)\n```\n\n```\n# Fetch a single movie\nmovies = endpoint.fetch_one(\n '5cd95395de30eff6ebccde5d', # movie _id\n with_quotes=True, # return quotes from movie, default is False\n \n options = { # Options similar to fetch_all\n 'sort' : 'character:desc', # Sort by movie name or character if with_quotes=True\n 'limit' : 5\n }\n)\n```\n\n",
"bugtrack_url": null,
"license": "",
"summary": "LOTR coding test",
"version": "0.1.3",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9c70387c8487f4e4e575ecfd93b09781409b6bb04f6229ed68272cdbc9738706",
"md5": "33dcb1118daa5dd0594f52af8415099a",
"sha256": "820f6448d43ec895e4e0f1a5756888d344f45dc3e24b0b753bcabe69c8703c09"
},
"downloads": -1,
"filename": "lotronexyz12_sdk-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "33dcb1118daa5dd0594f52af8415099a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10.9",
"size": 6875,
"upload_time": "2023-03-31T21:12:50",
"upload_time_iso_8601": "2023-03-31T21:12:50.515363Z",
"url": "https://files.pythonhosted.org/packages/9c/70/387c8487f4e4e575ecfd93b09781409b6bb04f6229ed68272cdbc9738706/lotronexyz12_sdk-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4479cc323650c2046302e78a559c8d2ed0c08d1acf0f653594a4f5e0d358f08d",
"md5": "73b1a29b04fd02168eba2854e715ed0c",
"sha256": "0222099bf5d504fe6a18a6d7ad439c0fe337c14a4f0211b22123e5b8ca37af07"
},
"downloads": -1,
"filename": "lotronexyz12_sdk-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "73b1a29b04fd02168eba2854e715ed0c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10.9",
"size": 3475,
"upload_time": "2023-03-31T21:12:52",
"upload_time_iso_8601": "2023-03-31T21:12:52.204645Z",
"url": "https://files.pythonhosted.org/packages/44/79/cc323650c2046302e78a559c8d2ed0c08d1acf0f653594a4f5e0d358f08d/lotronexyz12_sdk-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-31 21:12:52",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "lotronexyz12-sdk"
}