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.4.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.4.tar.gz.
File metadata
- Download URL: splatnet-0.1.4.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 |
a068f304d6f950b09b0066b568d6988f8bcd607ef3de755a9f12ce3b649a50fc
|
|
| MD5 |
daf34dcf591a3ce3a48e96f7e40526b5
|
|
| BLAKE2b-256 |
82ea2c63ae69d9e03c1904b3369449564377f3145983340014d88dcf17cbf7e7
|
File details
Details for the file splatnet-0.1.4-py3-none-any.whl.
File metadata
- Download URL: splatnet-0.1.4-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 |
327cc784c95b08245a1694c505ef310fe45dc51aa3bb924c0ca273387a40e663
|
|
| MD5 |
b9445d86c21d8f0b6a9de895ce7a1d57
|
|
| BLAKE2b-256 |
7d9224fcbd5967bb8dccd79a84c15be8a1190ddd4a8cb0814dad52480e883f12
|