Name | PSNAWP-ASYNC JSON |
Version |
0.0.2
JSON |
| download |
home_page | |
Summary | Async Python API Wrapper for PlayStation Network API |
upload_time | 2024-01-14 14:46:36 |
maintainer | |
docs_url | None |
author | jackjpowell |
requires_python | >=3.8,<4.0 |
license | MIT |
keywords |
psn
playstation
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# <img src="docs/_static/psn_logo.png" height="35px"> PlayStation Network API Wrapper Python (PSNAWP)
Retrieve User Information, Trophies, Game and Store data from the PlayStation Network
[![PyPI version](https://badge.fury.io/py/psnawp.svg)](https://badge.fury.io/py/psnawp)
[![Downloads](https://static.pepy.tech/badge/psnawp)](https://pepy.tech/project/psnawp)
[![python-logo](https://img.shields.io/badge/python-3.8_|_3.9_|_3.10_|_3.11-blue.svg)](https://www.python.org/)
[![pytest](https://github.com/isFakeAccount/psnawp/actions/workflows/pytest.yaml/badge.svg)](https://github.com/isFakeAccount/psnawp/actions/workflows/pytest.yaml)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![pre-commit](https://github.com/isFakeAccount/psnawp/actions/workflows/pre-commit.yaml/badge.svg)](https://github.com/isFakeAccount/psnawp/actions/workflows/pre-commit.yaml)
[![Documentation Status](https://readthedocs.org/projects/psnawp/badge/?version=latest)](https://psnawp.readthedocs.io/en/latest/?badge=latest)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
<!-- Pytest Coverage Comment:Begin -->
<a href="https://github.com/isFakeAccount/psnawp/blob/main/README.md"><img alt="Coverage" src="https://img.shields.io/badge/Coverage-95%25-brightgreen.svg" /></a><details><summary>Coverage Report </summary><table><tr><th>File</th><th>Stmts</th><th>Miss</th><th>Cover</th><th>Missing</th></tr><tbody><tr><td colspan="5"><b>src/psnawp_api</b></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/__init__.py">__init__.py</a></td><td>3</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/psnawp.py">psnawp.py</a></td><td>35</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan="5"><b>src/psnawp_api/core</b></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/core/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/core/authenticator.py">authenticator.py</a></td><td>46</td><td>3</td><td>3</td><td><a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/core/authenticator.py#L 93%"> 93%</a></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/core/psnawp_exceptions.py">psnawp_exceptions.py</a></td><td>9</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan="5"><b>src/psnawp_api/models</b></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/client.py">client.py</a></td><td>70</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/game_title.py">game_title.py</a></td><td>22</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/group.py">group.py</a></td><td>52</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/search.py">search.py</a></td><td>22</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/title_stats.py">title_stats.py</a></td><td>84</td><td>23</td><td>23</td><td><a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/title_stats.py#L 73%"> 73%</a></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/user.py">user.py</a></td><td>71</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan="5"><b>src/psnawp_api/models/listing</b></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/listing/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/listing/listing_generator.py">listing_generator.py</a></td><td>36</td><td>5</td><td>5</td><td><a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/listing/listing_generator.py#L 86%"> 86%</a></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/listing/pagination_arguments.py">pagination_arguments.py</a></td><td>15</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan="5"><b>src/psnawp_api/models/trophies</b></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy.py">trophy.py</a></td><td>112</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy_constants.py">trophy_constants.py</a></td><td>25</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy_group.py">trophy_group.py</a></td><td>89</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy_summary.py">trophy_summary.py</a></td><td>25</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy_titles.py">trophy_titles.py</a></td><td>86</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/utility_functions.py">utility_functions.py</a></td><td>7</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan="5"><b>src/psnawp_api/utils</b></td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/__init__.py">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/endpoints.py">endpoints.py</a></td><td>2</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/misc.py">misc.py</a></td><td>35</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/request_builder.py">request_builder.py</a></td><td>72</td><td>15</td><td>15</td><td><a href="https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/request_builder.py#L 79%"> 79%</a></td></tr><tr><td><b>TOTAL</b></td><td><b>918</b></td><td><b>46</b></td><td><b>95%</b></td><td> </td></tr></tbody></table></details>
<!-- Pytest Coverage Comment:End -->
## How to install
### From PyPI
```
pip install PSNAWP
```
### Using `setup.py`
To install the library into python. First you need to clone the repo at your local machine and run the following command from the root directory of the repo
```
python setup.py install
```
## Important Links
> PyPI: https://pypi.org/project/PSNAWP/
>
> Read the Docs: https://psnawp.readthedocs.io/en/latest/
## Getting Started
To get started you need to obtain npsso <64 character code>. You need to follow the following steps
1. Login into your [My PlayStation](https://my.playstation.com/) account.
2. In another tab, go to https://ca.account.sony.com/api/v1/ssocookie
3. If you are logged in you should see a text similar to this
```json
{"npsso":"<64 character npsso code>"}
```
This npsso code will be used in the api for authentication purposes. The refresh token that is generated from npsso lasts about 2 months. After that you have to get a new npsso token. The bot will print a warning if there are less than 3 days left in refresh token expiration.
Following is the quick example on how to use this library
```py
from psnawp_api import PSNAWP
psnawp = PSNAWP('<64 character npsso code>')
# This is you
client = psnawp.me()
print(client.online_id)
print(client.account_id)
print(client.get_account_devices())
print(client.get_profile_legacy())
print(client.friends_list())
print(client.blocked_list())
print(client.available_to_play())
groups = client.get_groups()
print(groups)
# Getting user from online
example_user_1 = psnawp.user(online_id="VaultTec-Co")
example_user_2 = psnawp.user(online_id="test")
print(example_user_1.online_id)
print(example_user_1.account_id)
print(example_user_1.profile())
print(example_user_1.prev_online_id)
print(example_user_1.get_presence())
print(example_user_1.friendship())
print(example_user_1.is_blocked())
# Getting user from Account ID
user_account_id = psnawp.user(account_id='9122947611907501295')
print(user_account_id.online_id)
# Sending Message
group = psnawp.group(group_id='38335156987791a6750a33ae452ec8666177b65e-103')
print(group.get_group_information())
print(group.get_conversation(10))
print(group.send_message("Hello World"))
print(group.change_name("API Testing 3"))
print(group.leave_group())
# Creating new group
new_group = psnawp.group(users_list=[example_user_1, example_user_2])
search = psnawp.search()
print(search.get_title_id(title_name="GTA 5"))
print(search.universal_search("GTA 5"))
# Get Play Times (PS4, PS5 above only)
titles_with_stats = client.title_stats()
```
**Note: If you want to create multiple instances of psnawp you need to get npsso code from separate PSN accounts. If you generate a new npsso with same account your previous npsso will expire immediately.**
## Contribution
All bug reposts and features requests are welcomed, although I am new at making python libraries, so it may take me a while to implement some features. Suggestions are welcomes if I am doing something that is an unconventional way of doing it.
## Disclaimer
This project was not intended to be used for spam, abuse, or anything of the sort. Any use of this project for those purposes is not endorsed. Please keep this in mind when creating applications using this API wrapper.
## Credit
This project contains code from PlayStationNetwork::API and PSN-PHP Wrapper that was translated to Python. See more in [LICENSE](LICENSE.md)
Raw data
{
"_id": null,
"home_page": "",
"name": "PSNAWP-ASYNC",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "PSN,PlayStation",
"author": "jackjpowell",
"author_email": "jackjpowell@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/64/f7/3517dacfb04f9a08985278d8107d357b82d6520a218eed001189197454e4/psnawp_async-0.0.2.tar.gz",
"platform": null,
"description": "# <img src=\"docs/_static/psn_logo.png\" height=\"35px\"> PlayStation Network API Wrapper Python (PSNAWP)\n\nRetrieve User Information, Trophies, Game and Store data from the PlayStation Network\n\n[![PyPI version](https://badge.fury.io/py/psnawp.svg)](https://badge.fury.io/py/psnawp)\n[![Downloads](https://static.pepy.tech/badge/psnawp)](https://pepy.tech/project/psnawp)\n[![python-logo](https://img.shields.io/badge/python-3.8_|_3.9_|_3.10_|_3.11-blue.svg)](https://www.python.org/)\n[![pytest](https://github.com/isFakeAccount/psnawp/actions/workflows/pytest.yaml/badge.svg)](https://github.com/isFakeAccount/psnawp/actions/workflows/pytest.yaml)\n[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![pre-commit](https://github.com/isFakeAccount/psnawp/actions/workflows/pre-commit.yaml/badge.svg)](https://github.com/isFakeAccount/psnawp/actions/workflows/pre-commit.yaml)\n[![Documentation Status](https://readthedocs.org/projects/psnawp/badge/?version=latest)](https://psnawp.readthedocs.io/en/latest/?badge=latest)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n<!-- Pytest Coverage Comment:Begin -->\n<a href=\"https://github.com/isFakeAccount/psnawp/blob/main/README.md\"><img alt=\"Coverage\" src=\"https://img.shields.io/badge/Coverage-95%25-brightgreen.svg\" /></a><details><summary>Coverage Report </summary><table><tr><th>File</th><th>Stmts</th><th>Miss</th><th>Cover</th><th>Missing</th></tr><tbody><tr><td colspan=\"5\"><b>src/psnawp_api</b></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/__init__.py\">__init__.py</a></td><td>3</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/psnawp.py\">psnawp.py</a></td><td>35</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan=\"5\"><b>src/psnawp_api/core</b></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/core/__init__.py\">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/core/authenticator.py\">authenticator.py</a></td><td>46</td><td>3</td><td>3</td><td><a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/core/authenticator.py#L 93%\"> 93%</a></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/core/psnawp_exceptions.py\">psnawp_exceptions.py</a></td><td>9</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan=\"5\"><b>src/psnawp_api/models</b></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/__init__.py\">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/client.py\">client.py</a></td><td>70</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/game_title.py\">game_title.py</a></td><td>22</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/group.py\">group.py</a></td><td>52</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/search.py\">search.py</a></td><td>22</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/title_stats.py\">title_stats.py</a></td><td>84</td><td>23</td><td>23</td><td><a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/title_stats.py#L 73%\"> 73%</a></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/user.py\">user.py</a></td><td>71</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan=\"5\"><b>src/psnawp_api/models/listing</b></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/listing/__init__.py\">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/listing/listing_generator.py\">listing_generator.py</a></td><td>36</td><td>5</td><td>5</td><td><a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/listing/listing_generator.py#L 86%\"> 86%</a></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/listing/pagination_arguments.py\">pagination_arguments.py</a></td><td>15</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan=\"5\"><b>src/psnawp_api/models/trophies</b></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/__init__.py\">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy.py\">trophy.py</a></td><td>112</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy_constants.py\">trophy_constants.py</a></td><td>25</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy_group.py\">trophy_group.py</a></td><td>89</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy_summary.py\">trophy_summary.py</a></td><td>25</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/trophy_titles.py\">trophy_titles.py</a></td><td>86</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/models/trophies/utility_functions.py\">utility_functions.py</a></td><td>7</td><td>0</td><td>100%</td><td> </td></tr><tr><td colspan=\"5\"><b>src/psnawp_api/utils</b></td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/__init__.py\">__init__.py</a></td><td>0</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/endpoints.py\">endpoints.py</a></td><td>2</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/misc.py\">misc.py</a></td><td>35</td><td>0</td><td>100%</td><td> </td></tr><tr><td> <a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/request_builder.py\">request_builder.py</a></td><td>72</td><td>15</td><td>15</td><td><a href=\"https://github.com/isFakeAccount/psnawp/blob/main/src/psnawp_api/utils/request_builder.py#L 79%\"> 79%</a></td></tr><tr><td><b>TOTAL</b></td><td><b>918</b></td><td><b>46</b></td><td><b>95%</b></td><td> </td></tr></tbody></table></details>\n<!-- Pytest Coverage Comment:End -->\n\n## How to install\n\n### From PyPI\n\n```\npip install PSNAWP\n```\n### Using `setup.py`\nTo install the library into python. First you need to clone the repo at your local machine and run the following command from the root directory of the repo\n\n```\npython setup.py install\n```\n\n## Important Links\n> PyPI: https://pypi.org/project/PSNAWP/\n>\n> Read the Docs: https://psnawp.readthedocs.io/en/latest/\n\n## Getting Started\n\nTo get started you need to obtain npsso <64 character code>. You need to follow the following steps\n\n1. Login into your [My PlayStation](https://my.playstation.com/) account.\n2. In another tab, go to https://ca.account.sony.com/api/v1/ssocookie\n3. If you are logged in you should see a text similar to this\n\n```json\n{\"npsso\":\"<64 character npsso code>\"}\n```\nThis npsso code will be used in the api for authentication purposes. The refresh token that is generated from npsso lasts about 2 months. After that you have to get a new npsso token. The bot will print a warning if there are less than 3 days left in refresh token expiration.\n\nFollowing is the quick example on how to use this library\n\n```py\nfrom psnawp_api import PSNAWP\n\npsnawp = PSNAWP('<64 character npsso code>')\n\n# This is you\nclient = psnawp.me()\nprint(client.online_id)\nprint(client.account_id)\nprint(client.get_account_devices())\nprint(client.get_profile_legacy())\nprint(client.friends_list())\nprint(client.blocked_list())\nprint(client.available_to_play())\ngroups = client.get_groups()\nprint(groups)\n\n# Getting user from online\nexample_user_1 = psnawp.user(online_id=\"VaultTec-Co\")\nexample_user_2 = psnawp.user(online_id=\"test\")\nprint(example_user_1.online_id)\nprint(example_user_1.account_id)\nprint(example_user_1.profile())\nprint(example_user_1.prev_online_id)\nprint(example_user_1.get_presence())\nprint(example_user_1.friendship())\nprint(example_user_1.is_blocked())\n\n# Getting user from Account ID\nuser_account_id = psnawp.user(account_id='9122947611907501295')\nprint(user_account_id.online_id)\n\n# Sending Message\ngroup = psnawp.group(group_id='38335156987791a6750a33ae452ec8666177b65e-103')\nprint(group.get_group_information())\nprint(group.get_conversation(10))\nprint(group.send_message(\"Hello World\"))\nprint(group.change_name(\"API Testing 3\"))\nprint(group.leave_group())\n\n# Creating new group\nnew_group = psnawp.group(users_list=[example_user_1, example_user_2])\n\nsearch = psnawp.search()\nprint(search.get_title_id(title_name=\"GTA 5\"))\nprint(search.universal_search(\"GTA 5\"))\n\n# Get Play Times (PS4, PS5 above only)\ntitles_with_stats = client.title_stats()\n ```\n\n**Note: If you want to create multiple instances of psnawp you need to get npsso code from separate PSN accounts. If you generate a new npsso with same account your previous npsso will expire immediately.**\n\n## Contribution\n\nAll bug reposts and features requests are welcomed, although I am new at making python libraries, so it may take me a while to implement some features. Suggestions are welcomes if I am doing something that is an unconventional way of doing it.\n\n## Disclaimer\n\nThis project was not intended to be used for spam, abuse, or anything of the sort. Any use of this project for those purposes is not endorsed. Please keep this in mind when creating applications using this API wrapper.\n\n## Credit\n\nThis project contains code from PlayStationNetwork::API and PSN-PHP Wrapper that was translated to Python. See more in [LICENSE](LICENSE.md)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Async Python API Wrapper for PlayStation Network API",
"version": "0.0.2",
"project_urls": null,
"split_keywords": [
"psn",
"playstation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "71106b54cefcb2d2d4b1400ef905752558d9895cfcaa8596780aad90f244dc75",
"md5": "51bf64adab2d39854608e495742f05ce",
"sha256": "b1e777c19e523700cd59c5ea90bb07c03fbf4a3d7cf14d4c79a9cfecd481e89d"
},
"downloads": -1,
"filename": "psnawp_async-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "51bf64adab2d39854608e495742f05ce",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 41487,
"upload_time": "2024-01-14T14:46:34",
"upload_time_iso_8601": "2024-01-14T14:46:34.675979Z",
"url": "https://files.pythonhosted.org/packages/71/10/6b54cefcb2d2d4b1400ef905752558d9895cfcaa8596780aad90f244dc75/psnawp_async-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "64f73517dacfb04f9a08985278d8107d357b82d6520a218eed001189197454e4",
"md5": "d1d772d17f17d4b1560b5247b6d3bcd3",
"sha256": "a2adee149393a9e47924b9288942576131581afb4830d871b834bdf938b0f469"
},
"downloads": -1,
"filename": "psnawp_async-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "d1d772d17f17d4b1560b5247b6d3bcd3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 31705,
"upload_time": "2024-01-14T14:46:36",
"upload_time_iso_8601": "2024-01-14T14:46:36.260767Z",
"url": "https://files.pythonhosted.org/packages/64/f7/3517dacfb04f9a08985278d8107d357b82d6520a218eed001189197454e4/psnawp_async-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-14 14:46:36",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "psnawp-async"
}