# AIOWPI
## aiohttp based world of warship api
### [中文说明](https://github.com/Int-0X7FFFFFFF/aiowpi/blob/master/README_zh.md)
[![Python 3.8](https://img.shields.io/badge/Python-3.8_|_3.9_|_3.10_|_3.11_|_3.12-blue?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![GitHub file size in bytes](https://img.shields.io/github/languages/code-size/Int-0X7FFFFFFF/aiowpi?label=Size&logo=hack-the-box&logoColor=white&style=flat-square)](https://github.com/Int-0X7FFFFFFF/aiowpi)
[![PyPI](https://img.shields.io/pypi/v/aiowpi?color=%233775A9&label=PyPI&logo=pypi&logoColor=white&style=flat-square)](https://pypi.org/project/aiowpi/)
[![License](https://img.shields.io/github/license/ArkoClub/async-pixiv?label=License&style=flat-square&logo=data:image/svg+xml;base64,PHN2ZyB0PSIxNjUxMjEyODQ2ODY0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE1MDAiIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48cGF0aCBkPSJNOTQ3LjIgOTIxLjZsLTg3MC40IDBjLTQyLjM0MjQgMC03Ni44LTM0LjQ1NzYtNzYuOC03Ni44bDAtNjY1LjZjMC00Mi4zNDI0IDM0LjQ1NzYtNzYuOCA3Ni44LTc2LjhsODcwLjQgMGM0Mi4zNDI0IDAgNzYuOCAzNC40NTc2IDc2LjggNzYuOGwwIDY2NS42YzAgNDIuMzQyNC0zNC40NTc2IDc2LjgtNzYuOCA3Ni44ek03Ni44IDE1My42Yy0xNC4xMzEyIDAtMjUuNiAxMS40Njg4LTI1LjYgMjUuNmwwIDY2NS42YzAgMTQuMTMxMiAxMS40Njg4IDI1LjYgMjUuNiAyNS42bDg3MC40IDBjMTQuMTMxMiAwIDI1LjYtMTEuNDY4OCAyNS42LTI1LjZsMC02NjUuNmMwLTE0LjEzMTIt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YyLjg2NTI4MSA5NjEuMTMxMTM3IDYyLjg2NTI4MSA2NTUuNTA5NDg1IDE4OC4yOTgwNjIgNjU1LjUwOTQ4NSAxODguMjk4MDYyIDg1OS4yNDI1ODYgODMyLjE2MDI3NSA4NTkuMjQyNTg2IDgzMi4xNjAyNzUgNjU1LjUwOTQ4NSA5NTcuNTQzOTM3IDY1NS41MDk0ODVaIiBwLWlkPSI1MTYzIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg%2BPHBhdGggZD0iTTc1My4yNzg3MTcgMzYzLjI3ODgxNyA1MTAuMTgwMDUgNzkwLjc0MTQ0NSAyNjcuMDMzMjg3IDM2My4yNzg4MTdaIiBwLWlkPSI1MTY0IiBmaWxsPSIjZmZmZmZmIj48L3BhdGg%2BPHBhdGggZD0iTTQzNC44OTEzMiA2NC4zNTY3NWwxNTAuNTI4MzQyIDAgMCAzMDAuMjU5NTI4LTE1MC41MjgzNDIgMCAwLTMwMC4yNTk1MjhaIiBwLWlkPSI1MTY1IiBmaWxsPSIjZmZmZmZmIj48L3BhdGg%2BPC9zdmc%2B&style=flat-square)](https://pypi.org/project/aiowpi/)
[![View](https://hits.sh/github.com/Int-0X7FFFFFFF/aiowpi.svg?color=7AA3CC&style=flat-square&label=View&logo=data:image/svg+xml;base64,PHN2ZyB0PSIxNjUyMjU5MTQ0MjAzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjM0NjkiIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48cGF0aCBkPSJNNTEyIDQxNmE5NiA5NiAwIDEgMCAwIDE5MiA5NiA5NiAwIDAgMCAwLTE5MnogbTUxMS45NTIgMTAyLjA2NGMtMC4wMTYtMC40NDgtMC4wNjQtMC44NjQtMC4wOTYtMS4yOTZhOC4xNiA4LjE2IDAgMCAwLTAuMDgtMC42N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gtMC45MjhsMC4wOC0wLjY1NiAwLjA5Ni0xLjI4YzAuMDMyLTAuNjU2IDAuMDQ4LTEuMjk2IDAuMDQ4LTEuOTUybC0wLjA5Ni0xLjk2OHpNNTEyIDcwNGMtMTA2LjAzMiAwLTE5Mi04NS45NTItMTkyLTE5MnM4NS45NTItMTkyIDE5Mi0xOTIgMTkyIDg1Ljk2OCAxOTIgMTkyYzAgMTA2LjA0OC04NS45NjggMTkyLTE5MiAxOTJ6IiBwLWlkPSIzNDcwIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PC9zdmc+)](https://hits.sh/github.com/Int-0X7FFFFFFF/aiowpi)
`aiowpi` is an asynchronous Python library for interacting with the World of Warships API. It simplifies making API calls to fetch player and warship data across different regions.
## Features
- Async support for making efficient API requests
- Easy-to-use interface for fetching player and ship information
- Supports multiple World of Warships servers (NA, EU, ASIA, RU(maybe))
- Support reatelimter
## Installation
You can install `aiowpi` via pip:
```bash
pip install aiowpi
```
## Quick start
Below is an example of how to use aiowpi to search player id use nick name:
```python
import asyncio
from aiowpi import WPIClient, WOWS_ASIA
async def main():
# Get from wg api full guid
# Server applications. Request limit per second is set to 20 requests per second.
# Standalone applications. The limit is set on the number of requests sent from one IP address at the same time and in general equal to 10 requests per second.
wows_api = WPIClient(
application_id = "your_application_id",
max_rate=10,
rate_time_period=1,
)
# Search for a player on the Asia server
player_info = await wows_api.player.search(WOWS_ASIA, "your nick name")
print(player_info)
asyncio.run(main())
```
## Dynamic types
Below is an example of how to use aiowpi to fetch player information:
```python
import asyncio
from aiowpi import WPIClient, WOWS_ASIA
async def main():
wows_api = WPIClient(application_id = "your_application_id")
# get a player info on the Asia server
player_info = await wows_api.player.person_data(WOWS_ASIA, 123456)
print(player_info)
asyncio.run(main())
```
But some time you may want get more than one user
```python
import asyncio
from aiowpi import WPIClient, WOWS_ASIA
async def main():
wows_api = WPIClient(application_id = "your_application_id")
# get players info on the Asia server
player_info = await wows_api.player.person_data(WOWS_ASIA, (123, 456, 789))
print(player_info)
asyncio.run(main())
```
### [reference](https://github.com/ArkoClub/async-pixiv/blob/main/README.md)
Raw data
{
"_id": null,
"home_page": null,
"name": "aiowpi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "async, wows, api, client, aiolimiter",
"author": null,
"author_email": "INTMAX <INT_MAX@hotmail.com>",
"download_url": "https://files.pythonhosted.org/packages/bb/36/452fd458adbf2ab637668182ee9a05b21329313c7964a9df43522355bfe6/aiowpi-0.1.6.tar.gz",
"platform": null,
"description": "# AIOWPI\n\n## aiohttp based world of warship api\n### [\u4e2d\u6587\u8bf4\u660e](https://github.com/Int-0X7FFFFFFF/aiowpi/blob/master/README_zh.md)\n\n[![Python 3.8](https://img.shields.io/badge/Python-3.8_|_3.9_|_3.10_|_3.11_|_3.12-blue?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)\n[![GitHub file size in bytes](https://img.shields.io/github/languages/code-size/Int-0X7FFFFFFF/aiowpi?label=Size&logo=hack-the-box&logoColor=white&style=flat-square)](https://github.com/Int-0X7FFFFFFF/aiowpi)\n[![PyPI](https://img.shields.io/pypi/v/aiowpi?color=%233775A9&label=PyPI&logo=pypi&logoColor=white&style=flat-square)](https://pypi.org/project/aiowpi/)\n[![License](https://img.shields.io/github/license/ArkoClub/async-pixiv?label=License&style=flat-square&logo=data:image/svg+xml;base64,PHN2ZyB0PSIxNjUxMjEyODQ2ODY0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE1MDAiIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48cGF0aCBkPSJNOTQ3LjIgOTIxLjZsLTg3MC40IDBjLTQyLjM0MjQgMC03Ni44LTM0LjQ1NzYtNzYuOC03Ni44bDAtNjY1LjZjMC00Mi4zNDI0IDM0LjQ1NzYt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[![PyPI - Downloads](https://img.shields.io/pypi/dm/aiowpi?color=91A4ED&label=Downloads&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB0PSIxNjUyMjYwMDAwMjU3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjUxNjIiIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48cGF0aCBkPSJNOTU3LjU0MzkzNyA5NjEuMTMxMTM3IDYyLjg2NTI4MSA5NjEuMTMxMTM3IDYyLjg2NTI4MSA2NTUuNTA5NDg1IDE4OC4yOTgwNjIgNjU1LjUwOTQ4NSAxODguMjk4MDYyIDg1OS4yNDI1ODYgODMyLjE2MDI3NSA4NTkuMjQyNTg2IDgzMi4xNjAyNzUgNjU1LjUwOTQ4NSA5NTcuNTQzOTM3IDY1NS41MDk0ODVaIiBwLWlkPSI1MTYzIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg%2BPHBhdGggZD0iTTc1My4yNzg3MTcgMzYzLjI3ODgxNyA1MTAuMTgwMDUgNzkwLjc0MTQ0NSAyNjcuMDMzMjg3IDM2My4yNzg4MTdaIiBwLWlkPSI1MTY0IiBmaWxsPSIjZmZmZmZmIj48L3BhdGg%2BPHBhdGggZD0iTTQzNC44OTEzMiA2NC4zNTY3NWwxNTAuNTI4MzQyIDAgMCAzMDAuMjU5NTI4LTE1MC41MjgzNDIgMCAwLTMwMC4yNTk1MjhaIiBwLWlkPSI1MTY1IiBmaWxsPSIjZmZmZmZmIj48L3BhdGg%2BPC9zdmc%2B&style=flat-square)](https://pypi.org/project/aiowpi/)\n[![View](https://hits.sh/github.com/Int-0X7FFFFFFF/aiowpi.svg?color=7AA3CC&style=flat-square&label=View&logo=data:image/svg+xml;base64,PHN2ZyB0PSIxNjUyMjU5MTQ0MjAzIiBjbGFzcz0iaWNvbi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jAwOCAyLjY1NiA1Ni43NjgtMTAuNCAxMTEuNDg4LTMyIDE2Mi43MzYtNTguNzY4IDgwLjE3Ni00MS45MzYgMTUzLjM3Ni05OS42OTYgMjE3LjE4NC0xNjQuNDggMTEuNzkyLTEyIDIzLjUzNi0yNC4yMjQgMzQuMjg4LTM3LjI0OCA1LjcxMi01Ljg3MiA5LjQ1Ni0xMy40NCAxMC43MDQtMjEuNTY4bDAuMDMyLTAuMTI4YTEyLjU5MiAxMi41OTIgMCAwIDAgMC4xMjgtMS4wODhjMC4wNjQtMC4zMDQgMC4wOTYtMC42MjQgMC4xMjgtMC45MjhsMC4wOC0wLjY1NiAwLjA5Ni0xLjI4YzAuMDMyLTAuNjU2IDAuMDQ4LTEuMjk2IDAuMDQ4LTEuOTUybC0wLjA5Ni0xLjk2OHpNNTEyIDcwNGMtMTA2LjAzMiAwLTE5Mi04NS45NTItMTkyLTE5MnM4NS45NTItMTkyIDE5Mi0xOTIgMTkyIDg1Ljk2OCAxOTIgMTkyYzAgMTA2LjA0OC04NS45NjggMTkyLTE5MiAxOTJ6IiBwLWlkPSIzNDcwIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PC9zdmc+)](https://hits.sh/github.com/Int-0X7FFFFFFF/aiowpi)\n\n\n`aiowpi` is an asynchronous Python library for interacting with the World of Warships API. It simplifies making API calls to fetch player and warship data across different regions.\n\n## Features\n\n- Async support for making efficient API requests\n- Easy-to-use interface for fetching player and ship information\n- Supports multiple World of Warships servers (NA, EU, ASIA, RU(maybe))\n- Support reatelimter\n\n## Installation\n\nYou can install `aiowpi` via pip:\n\n```bash\npip install aiowpi\n```\n\n## Quick start\nBelow is an example of how to use aiowpi to search player id use nick name:\n\n```python\nimport asyncio\nfrom aiowpi import WPIClient, WOWS_ASIA\n\nasync def main():\n # Get from wg api full guid\n # Server applications. Request limit per second is set to 20 requests per second.\n # Standalone applications. The limit is set on the number of requests sent from one IP address at the same time and in general equal to 10 requests per second.\n wows_api = WPIClient(\n application_id = \"your_application_id\",\n max_rate=10,\n rate_time_period=1,\n )\n \n # Search for a player on the Asia server\n player_info = await wows_api.player.search(WOWS_ASIA, \"your nick name\")\n print(player_info)\nasyncio.run(main())\n```\n\n## Dynamic types\nBelow is an example of how to use aiowpi to fetch player information:\n\n```python\nimport asyncio\nfrom aiowpi import WPIClient, WOWS_ASIA\n\nasync def main():\n wows_api = WPIClient(application_id = \"your_application_id\")\n \n # get a player info on the Asia server\n player_info = await wows_api.player.person_data(WOWS_ASIA, 123456)\n print(player_info)\nasyncio.run(main())\n```\n\nBut some time you may want get more than one user\n\n```python\nimport asyncio\nfrom aiowpi import WPIClient, WOWS_ASIA\n\nasync def main():\n wows_api = WPIClient(application_id = \"your_application_id\")\n \n # get players info on the Asia server\n player_info = await wows_api.player.person_data(WOWS_ASIA, (123, 456, 789))\n print(player_info)\nasyncio.run(main())\n```\n\n### [reference](https://github.com/ArkoClub/async-pixiv/blob/main/README.md)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Async Python client for the World of Warships API.",
"version": "0.1.6",
"project_urls": {
"homepage": "https://github.com/Int-0X7FFFFFFF/aiowpi",
"repository": "https://github.com/Int-0X7FFFFFFF/aiowpi"
},
"split_keywords": [
"async",
" wows",
" api",
" client",
" aiolimiter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a39577575c30f5f9c3e849d30b6d2b5e8151dfd81010ea05f2e99c4216e30b81",
"md5": "536c997ffb504302bee5302c3c3c69c7",
"sha256": "546dd9e07ce7ce97259b1e2842e25e081cd9ea373850a623f93c698dbca1636e"
},
"downloads": -1,
"filename": "aiowpi-0.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "536c997ffb504302bee5302c3c3c69c7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8855,
"upload_time": "2024-09-30T10:19:33",
"upload_time_iso_8601": "2024-09-30T10:19:33.478450Z",
"url": "https://files.pythonhosted.org/packages/a3/95/77575c30f5f9c3e849d30b6d2b5e8151dfd81010ea05f2e99c4216e30b81/aiowpi-0.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bb36452fd458adbf2ab637668182ee9a05b21329313c7964a9df43522355bfe6",
"md5": "e20074a0bddd730e380722691a8ec4c3",
"sha256": "8f2da3501783705b5aebd98262481221093931b4715bd386d1ed437b2531599d"
},
"downloads": -1,
"filename": "aiowpi-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "e20074a0bddd730e380722691a8ec4c3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 12635,
"upload_time": "2024-09-30T10:19:34",
"upload_time_iso_8601": "2024-09-30T10:19:34.543974Z",
"url": "https://files.pythonhosted.org/packages/bb/36/452fd458adbf2ab637668182ee9a05b21329313c7964a9df43522355bfe6/aiowpi-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-30 10:19:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Int-0X7FFFFFFF",
"github_project": "aiowpi",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "aiohappyeyeballs",
"specs": [
[
"==",
"2.4.0"
]
]
},
{
"name": "aiohttp",
"specs": [
[
"==",
"3.10.5"
]
]
},
{
"name": "aiolimiter",
"specs": [
[
"==",
"1.1.0"
]
]
},
{
"name": "aiosignal",
"specs": [
[
"==",
"1.3.1"
]
]
},
{
"name": "attrs",
"specs": [
[
"==",
"24.2.0"
]
]
},
{
"name": "click",
"specs": [
[
"==",
"8.1.7"
]
]
},
{
"name": "frozenlist",
"specs": [
[
"==",
"1.4.1"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.10"
]
]
},
{
"name": "multidict",
"specs": [
[
"==",
"6.1.0"
]
]
},
{
"name": "mypy-extensions",
"specs": [
[
"==",
"1.0.0"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"24.1"
]
]
},
{
"name": "pathspec",
"specs": [
[
"==",
"0.12.1"
]
]
},
{
"name": "platformdirs",
"specs": [
[
"==",
"4.3.6"
]
]
},
{
"name": "yarl",
"specs": [
[
"==",
"1.11.1"
]
]
}
],
"lcname": "aiowpi"
}