Wrapper for Splatnet (Splatoon API)
Project description
splatnet
Python wrapper for Splatnet API (Splatoon API).
Install
pip install splatnet
Usage
from splatnet.splatnet2 import Config, Splatnet2
config = Config()
splatnet = Splatnet2(config)
results = splatnet.results()
total_paint_point = 0
team_total_kill_count = 0
for r in results.results:
total_paint_point += r.player_result.game_paint_point
# Get all data of a battle
result = splatnet.result(r.battle_number)
for player_result in result.my_team_members:
team_total_kill_count += player_result.kill_count
team_total_kill_count += result.player_result.kill_count
print(f"{total_paint_point=}")
print(f"{team_total_kill_count=}")
Data Schema
See schema definition.
Config
You can specify config file path and language.
from splatnet.splatnet2 import Config
config = Config(path="path/to/config.json", language="ja-JP")
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
splatnet-0.1.2.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file splatnet-0.1.2.tar.gz.
File metadata
- Download URL: splatnet-0.1.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0b1 CPython/3.10.4 Linux/5.13.0-40-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3453959160e9198870c4f51fbd012478786f894c4cf18f9c1dda9e83bdc85168
|
|
| MD5 |
7002ef731bec5b06dc3facd846d35a2a
|
|
| BLAKE2b-256 |
0a2aeaea53aadc7b4889a0d38b86ec92f17534a2f6a9d83ff81140e6a5b7e1ca
|
File details
Details for the file splatnet-0.1.2-py3-none-any.whl.
File metadata
- Download URL: splatnet-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0b1 CPython/3.10.4 Linux/5.13.0-40-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0387756e8eb18539564455ed114fe04e3ae017f8688f10499b71a441584f6cb5
|
|
| MD5 |
0669849497d691c797a99d08edaae352
|
|
| BLAKE2b-256 |
707d58463e1b4f110a1c29d5ebf3e8a499f331bd27bf99b133e02e4bfdbeb1df
|