Name | pydisney JSON |
Version |
2.0.0
JSON |
| download |
home_page | None |
Summary | A Feature rich API wrapper for Disney+ made with python. |
upload_time | 2024-12-22 17:10:47 |
maintainer | None |
docs_url | None |
author | Pamparampampam |
requires_python | >=3.7 |
license | MIT License Copyright (c) 2024 Pamparampam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
disney
disneyplus
api
wrapper
client
python
pydisney
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Disney+ API wrapper
A feature rich API wrapper for Disney+ made with python.
## How to install
pip install pydisney
https://pypi.org/project/pydisney
## Usage/Examples
### Simple search
```python
from pydisney import DisneyAPI
api = DisneyAPI(email="email", password="password")
searches = api.search("Star wars")
print(searches[0].title) # prints title of the first search hit
```
### More examples
```python
from pydisney import DisneyAPI, Rating, Language
# forces to use disney's login api instead of cached access and refresh tokens
api = DisneyAPI(email="email", password="password", force_login=True)
profile = api.get_profiles() # grabs the first profile
print(api.set_active_profile(profile.id)) # if profile is locked, pass pin as an argument
active_profile = api.get_active_profile()
active_profile.set_profile_language(Language.English_UK) # sets language to english, from now all data will be returned in that language
searches = api.search("Star wars")
print(searches[0].title)
# checks if the search hit is a series or a movie
if searches[0].is_movie:
print(searches[0].durationMs) # returns in milliseconds
print(searches[0].cast)
else:
# prints s01e01's full description
print(searches[0].seasons[0].episodes[0].full_description)
```
Docs? What docs, read the source code. 😎
## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
## Disclaimer
This project can only be used for educational purposes. Using this software for malicious intent is illegal, and any damages from misuse of this software will not be the responsibility of the author.
## License
[MIT](https://choosealicense.com/licenses/mit/)
Raw data
{
"_id": null,
"home_page": null,
"name": "pydisney",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "disney, disneyplus, api, wrapper, client, python, pydisney",
"author": "Pamparampampam",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/fa/db/c7ce6786d180bbd93a1099cd8b97282085004cac0fa2f3c7159411401b90/pydisney-2.0.0.tar.gz",
"platform": null,
"description": "\n# Disney+ API wrapper\n\nA feature rich API wrapper for Disney+ made with python.\n\n\n## How to install\n pip install pydisney\n\nhttps://pypi.org/project/pydisney\n\n## Usage/Examples\n\n### Simple search\n```python\nfrom pydisney import DisneyAPI\n\napi = DisneyAPI(email=\"email\", password=\"password\")\nsearches = api.search(\"Star wars\")\nprint(searches[0].title) # prints title of the first search hit\n```\n### More examples\n\n```python\nfrom pydisney import DisneyAPI, Rating, Language\n\n# forces to use disney's login api instead of cached access and refresh tokens\napi = DisneyAPI(email=\"email\", password=\"password\", force_login=True)\n\nprofile = api.get_profiles() # grabs the first profile\nprint(api.set_active_profile(profile.id)) # if profile is locked, pass pin as an argument\nactive_profile = api.get_active_profile()\nactive_profile.set_profile_language(Language.English_UK) # sets language to english, from now all data will be returned in that language\n\n\nsearches = api.search(\"Star wars\")\nprint(searches[0].title)\n\n# checks if the search hit is a series or a movie\nif searches[0].is_movie:\n print(searches[0].durationMs) # returns in milliseconds\n print(searches[0].cast)\n\nelse:\n # prints s01e01's full description\n print(searches[0].seasons[0].episodes[0].full_description)\n```\n\nDocs? What docs, read the source code. \ud83d\ude0e\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\n## Disclaimer\n\nThis project can only be used for educational purposes. Using this software for malicious intent is illegal, and any damages from misuse of this software will not be the responsibility of the author.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Pamparampam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "A Feature rich API wrapper for Disney+ made with python.",
"version": "2.0.0",
"project_urls": {
"Github": "https://github.com/pam-param-pam/Disney-Plus-api-wrapper"
},
"split_keywords": [
"disney",
" disneyplus",
" api",
" wrapper",
" client",
" python",
" pydisney"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b1805a55c6bb09e2086016987448f4673ee7cb6727228451816f513dc3aa1e41",
"md5": "f0eb05ab5200a88bf38d4323eb3ed5e6",
"sha256": "4c060659391cc7bd5af9baf12700789e52e8091a6d6c18fa678b5a132bacda8c"
},
"downloads": -1,
"filename": "pydisney-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f0eb05ab5200a88bf38d4323eb3ed5e6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 18670,
"upload_time": "2024-12-22T17:10:45",
"upload_time_iso_8601": "2024-12-22T17:10:45.366126Z",
"url": "https://files.pythonhosted.org/packages/b1/80/5a55c6bb09e2086016987448f4673ee7cb6727228451816f513dc3aa1e41/pydisney-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fadbc7ce6786d180bbd93a1099cd8b97282085004cac0fa2f3c7159411401b90",
"md5": "e22fbfa5352b09f0660ad769c090eea8",
"sha256": "3999921ee354f2662f6412c05a57e9a1d668b7f9b4f89ec979a84ae1c1e7740a"
},
"downloads": -1,
"filename": "pydisney-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "e22fbfa5352b09f0660ad769c090eea8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 15879,
"upload_time": "2024-12-22T17:10:47",
"upload_time_iso_8601": "2024-12-22T17:10:47.374659Z",
"url": "https://files.pythonhosted.org/packages/fa/db/c7ce6786d180bbd93a1099cd8b97282085004cac0fa2f3c7159411401b90/pydisney-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-22 17:10:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pam-param-pam",
"github_project": "Disney-Plus-api-wrapper",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pydisney"
}