A Python wrapper for playoverwatch.com
Project description
A wrapper for playoverwatch.com stats
Installation
pip install python-overwatch
Usage
Modes: qp
cp
play_time
Filters: Combat, Assists, Best, Average, Deaths, Match Awards
Game, Miscellaneous, Hero Specific
# Default filter: 'Best'
# Default mode: 'qp'
Examples
Find play time for all heroes
from overwatch import Overwatch
hero_time = Overwatch(battletag=battletag, mode='play_time')
results = hero_time()
print(results)
[
'Pharah', '40 hours',
'Roadhog', '32 hours',
'Mei', '29 hours',
'McCree', '20 hours',
'Soldier: 76', '17 hours',
'Mercy', '13 hours',
]
Find hero specific stats
from overwatch import Overwatch
mei = Overwatch(battletag=battletag, hero='mei', filter='Hero Specific')
results = mei()
print(results)
[
'Enemies Frozen', '1,885',
'Enemies Frozen - Most in Game', '30',
'Blizzard Kills - Most in Game', '13',
'Blizzard Kills', '587',
'Damage Blocked - Most in Game', '12,569',
'Damage Blocked', '442,710',
'Melee Final Blows - Most in Game', '4',
'Enemies Frozen - Average', '10.73',
'Damage Blocked - Average', '2,521',
'Blizzard Kills - Average', '3.34'
]
Find overall best stats
from overwatch import Overwatch
best = Overwatch(battletag=battletag, hero='all')
results = best()
print(results)
[
'Eliminations - Most in Game', '48',
'Final Blows - Most in Game', '31',
'Damage Done - Most in Game', '23,924',
'Healing Done - Most in Game', '14,379',
'Defensive Assists - Most in Game', '26',
'Offensive Assists - Most in Game', '8',
'Objective Kills - Most in Game', '32',
'Objective Time - Most in Game', '04:22',
'Multikill - Best', '5',
'Solo Kills - Most in Game', '31',
'Time Spent on Fire - Most in Game', '13:29'
]
Find how many D.VA self-destructs you’ve performed
from overwatch import Overwatch
destructs = Overwatch(battletag=battletag, hero='dva', filter='Miscellaneous')
results = destructs()
print(results)
[
'Self-Destruct Kills', '39',
'Self-Destruct Kills - Most in Game', '6',
'Multikill - Best', '3',
'Self-Destruct Kills - Average', '2'
]
Specify you want competitive mode stats
from overwatch import Overwatch
get_stats = Overwatch(battletag=battletag, mode='cp', hero='pharah')
results = get_stats()
print(results)
[
'Eliminations - Most In Life, '12',
'All Damage Done - Most In Game', '6,943',
'Weapon Accuracy - Best In Game', '65%',
'Kill Streak - Best', '12',
'All Damage Done - Most In Game', '37,699',
'Eliminations - Most In Game', '61',
'Final Blows - Most In Game', '45',
'Objective Kills - Most In Game', '33',
'Objective Time - Most In Game', '01:27',
'Solo Kills - Most In Game', '7'
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file python-overwatch-0.9.2.tar.gz
.
File metadata
- Download URL: python-overwatch-0.9.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da67d0071ef200f22e0f9ab10eb6f2025bc81f858f8ebfc96686c3fb17ae9e6f |
|
MD5 | 4312fd26377d5a3e09fd85945d5c35a6 |
|
BLAKE2b-256 | 9a8e12ac1e0b0b487e7a0fd8ea3bfb721283255840a7bbc7149d505c1c44a520 |