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.5.tar.gz
(7.0 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.5.tar.gz.
File metadata
- Download URL: splatnet-0.1.5.tar.gz
- Upload date:
- Size: 7.0 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 |
393247ef0fc58a393a82bb2baa18e4316093998af693d8d2fb67b886129b65b3
|
|
| MD5 |
f87dc6cb1b9112060a346c771639620b
|
|
| BLAKE2b-256 |
685fa7cbeda8ea54bbfd4d4765e57d0d228acb73c4be6dfc53faf3b2c5c3ee05
|
File details
Details for the file splatnet-0.1.5-py3-none-any.whl.
File metadata
- Download URL: splatnet-0.1.5-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 |
ddf0350e3ea7b42b575908b8ef439955ed5f0096760dd60754bf3713bd576416
|
|
| MD5 |
07ca95cd27bda8ab9bfc54cea13e08ac
|
|
| BLAKE2b-256 |
b91a6d6961f4b36f13b9f9252652034a2a5b9100b1d5532dcbc16857cf983fd3
|