Python wrapper for Overwatch API
Project description
OverwatchPy
A Python wrapper for https://overfast-api.tekrop.fr/
I wrote this very fast so it's not very good, but it works.
Please open a PR if you want to improve it or add more features.
Requirements
- Python 3.11 (3.9+ should work)
- Poetry
Installation
poetry install
Usage
from overwatchpy import Overwatch
search: Overwatch.player_search = Overwatch.player_search("twizy", "quickplay", "pc", "public")
for player in search:
print(player.name)
client = Overwatch()
heros = client.heroes(role="tank")
for hero in heros:
print(hero.name)
game_modes = client.gamemodes()
for game_mode in game_modes:
print(game_mode.name)
print(game_mode.description)
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
overwatchpy-0.0.4.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file overwatchpy-0.0.4.tar.gz
.
File metadata
- Download URL: overwatchpy-0.0.4.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.3 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5de6b6ce8e626121a04713799d8eadffff68e01cdb9d1117e59aa56fa0261ec |
|
MD5 | 7ef6ea2b3415b8a5bcd7b68ac4296cdd |
|
BLAKE2b-256 | 5845ce4d85a4590d33f8289983a21b345a8d29c7e158e2d452e98819ab261d4c |
File details
Details for the file overwatchpy-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: overwatchpy-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.3 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae98480ca154cb8cdb37b692fd5c78836c1ba6d8c6476edd638a6ab699922bbe |
|
MD5 | b7e5a819d347bdf8239fb4ee6575941f |
|
BLAKE2b-256 | 4b44d409b41534f67cb22fbed0590c6e772b9cbe61b8c03497330f1108851126 |