All Projects → anthok → overwatch-api

anthok / overwatch-api

Licence: MIT license
Python Overwatch API Wrapper

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to overwatch-api

Overwatch-League-API-Documentation
A community driven analysis of the Overwatch League API.
Stars: ✭ 43 (+16.22%)
Mutual labels:  overwatch, overwatch-api
ovrstat
🎮 An Unofficial Overwatch Stats API
Stars: ✭ 96 (+159.46%)
Mutual labels:  overwatch, overwatch-api
competiwatch
Web app to track and visualize your competitive match history in Overwatch.
Stars: ✭ 17 (-54.05%)
Mutual labels:  overwatch
oversmash
Overwatch API library for player details and career stats
Stars: ✭ 42 (+13.51%)
Mutual labels:  overwatch
competiwatch-desktop
Desktop app built in Electron for tracking your competitive match history in Overwatch.
Stars: ✭ 94 (+154.05%)
Mutual labels:  overwatch
Aurora
Unified lighting effects across multiple brands and various games.
Stars: ✭ 1,673 (+4421.62%)
Mutual labels:  overwatch
Overwatcheat
Free, open-source undetected color cheat!
Stars: ✭ 180 (+386.49%)
Mutual labels:  overwatch
awesome-overwatch
A curated collection of official Overwatch links, community repos, Codepens, and extensions.
Stars: ✭ 26 (-29.73%)
Mutual labels:  overwatch
Orisa
A Discord bot to help keep track of members' BattleTags and Overwatch SR
Stars: ✭ 12 (-67.57%)
Mutual labels:  overwatch
io scene owm
Importer for asset files exported and recompiled with TankLib/DataTool
Stars: ✭ 54 (+45.95%)
Mutual labels:  overwatch
python-overwatch
A simple API for scraping Overwatch stats
Stars: ✭ 14 (-62.16%)
Mutual labels:  overwatch
OWReveal
CSGO Overwatch revealer by sniffing packets / Find The Suspect steam profile from overwatch
Stars: ✭ 23 (-37.84%)
Mutual labels:  overwatch
sounds-of-github
This is a Chrome extension to play sound effects whenever you leave a reaction on GitHub.
Stars: ✭ 72 (+94.59%)
Mutual labels:  overwatch
heropicker
Automatic pick hero in overwatch
Stars: ✭ 34 (-8.11%)
Mutual labels:  overwatch

overwatch-api

Python Overwatch API

Install

Requires Python 3.5 or greater!

pip install overwatch-api

[0.5.0] - 2017-04-21

Changes

  • Now using Async, thanks @Drummersbrother!
  • Moving API provider to OWAPI, thanks @Drummersbrother!

Example Code - Supported calls

A segment from example_test.py, which can provide more info on how to use the API.

Call

get_profile(self, battletag: str, regions=(EUROPE, KOREA, AMERICAS, CHINA, JAPAN, ANY),
           platform=None, _session=None, handle_ratelimit=None, max_tries=None, request_timeout=None)


#Platform defaults to PC if not specified.  
#Session can be passed through for a custom aiohttp.Client.
client.get_profile("Danielfrogs#2552")

Code

import asyncio, aiohttp
from overwatch_api.core import AsyncOWAPI
from overwatch_api.constants import *

client = AsyncOWAPI()
await client.get_profile("Danielfrogs#2552", platform=PC)
await client.get_stats("Danielfrogs#2552", platform=XBOX)
await client.get_achievements("Danielfrogs#2552", platform=PLAYSTATION)
await client.get_hero_stats("Danielfrogs#2552")

Testing (Not working in 0.5 yet!)

    python setup.py test

Deprecated Calls (0.4 and below)

from overwatch_api import *

ow = OverwatchAPI()

ow.get_patch_notes()
ow.get_achievements(PC,AMERICAS,'elyK-1940')
ow.get_platforms(PC,AMERICAS,'elyK-1940')
ow.get_profile(PC,AMERICAS,'elyK-1940')
ow.get_stats_all_heroes(PC,AMERICAS,'elyK-1940',COMP)
ow.get_stats_selected_heroes(PC,AMERICAS,'elyK-1940',COMP,[heroes['MERCY'],heroes['LUCIO']])
ow.get_stats_heroes_used(PC,AMERICAS,'elyK-1940',COMP)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].