
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
A Python3 World of Warships API wrapper
Installation instruction:
pip install wowspy
Please consult the official documentation here
Example usage:
from wowspy import Wows
def example():
api_key = 'YOUR_WOWS_API_KEY'
my_api = Wows(api_key)
# We will search for a player and then get its stats in this example
player_name = 'PotatoSquad'
# Api response from Wargaming
# We only want one result, thus it's specified limit
player_id_response = my_api.players(
my_api.region.NA, player_name, fields='account_id', limit=1)
# Get the player id from the api response
player_id = player_id_response['data'][0]['account_id']
# Now we will use this id to search for the player's stats
# We only want the pvp stats here, it's specified in fields param
player_stats_response = my_api.player_personal_data(
my_api.region.NA, player_id, fields='statistics.pvp')
print(player_stats_response)
if __name__ == '__main__':
example()
Example usage(with Aiohttp):
from asyncio import get_event_loop
from aiohttp import ClientSession
from wowspy import WowsAsync
async def example():
api_key = 'YOUR_WOWS_API_KEY'
session = ClientSession()
my_api = WowsAsync(api_key, session)
# We will search for a player and then get its stats in this example
player_name = 'PotatoSquad'
# Api response from Wargaming
# We only want one result, thus it's specified limit
player_id_response = await my_api.players(
my_api.region.NA, player_name, fields='account_id', limit=1)
# Get the player id from the api response
player_id = player_id_response['data'][0]['account_id']
# Now we will use this id to search for the player's stats
# We only want the pvp stats here, it's specified in fields param
player_stats_response = await my_api.player_personal_data(
my_api.region.NA, player_id, fields='statistics.pvp')
print(player_stats_response)
if __name__ == '__main__':
loop = get_event_loop()
loop.run_until_complete(example())
loop.close()
FAQs
A Python World of Warships API wrapper
We found that wowspy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.