Skip to main content

An asynchronous wrapper for ow-api.com using aiohttp

Project description

pyowapi

pyowapi is an asynchronous wrapper around an official Overwatch api (https://ow-api.com) using aiohttp.

Example usage

# Import asyncio and pyowapi
import asyncio
import pyowapi

# Get asyncio loop
loop = asyncio.get_event_loop()

# For a single player
player = loop.run_until_complete(pyowapi.get_player("Jayne#1447"))
print(player.actual_level)
print(player.private)
print(player.competitive_tank)

# For multiple players
player_list = ["Jayne#1447", "Krusher#9999"]
players = loop.run_until_complete(pyowapi.get_bulk_players(player_list))
for single_player in players:
    print(player.actual_level)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyowapi, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pyowapi-0.0.3-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyowapi-0.0.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page