Skip to main content

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.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

splatnet-0.1.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file splatnet-0.1.3.tar.gz.

File metadata

  • Download URL: splatnet-0.1.3.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

Hashes for splatnet-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dba67f360fc0df859619b524f350d4edc0cbe68aa92db2e83ca98662e7a619af
MD5 0a620006868ed8cfcd889ff2a2a39bb9
BLAKE2b-256 59fdb0a6a0fe8aead63037ecfd5b63c1f42c6eda2d160f77672ad3e74c084c4f

See more details on using hashes here.

File details

Details for the file splatnet-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: splatnet-0.1.3-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

Hashes for splatnet-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9391954cac23b4c167e02f53944cafef2ec67982d774d0fee44184322ddb9067
MD5 015c006774eae70ebc293ee2f561ff9d
BLAKE2b-256 5f85ed2ffb6275cc99102cbdf32f3d4fb9abbebb3a6f55af6c534012bf7b7711

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page