Python wrapper for startgg API calls.
Project description
pystartgg
Wrapper for StartGG API calls, written using documentation from the StartGG API.
Requires a developer API key found in your StartGG Developer Settings.
Usage:
import pystartgg
# File containing your API key
key = open('key.txt', 'r').read()
gg = pystartgg.StartGG(key)
# Get tournament info by tourney slug
slug = 'supernova-2025'
tourney_info = gg.tournament.get(slug)
# Get tournament info by tournament id
tourney_id = tourney_info['id']
tourney_info = gg.tournament.get_info(tourney_id)
# Get tournament events by tournament id
events = gg.tournament.get_events(tourney_id)
melee_event_id = None
for e in events:
print(e)
if e['videogame'] == 1:
if 'SINGLES' in e['name'].upper():
melee_event_id = e['id']
# Get players for event by event id
# - Only available if the attendee list is public
players = gg.event.get_players_all(melee_event_id)
# Get placements for event by event id
# - Also contains initial seed for each player
# - Only available if the event is live or complete
placements = gg.event.get_placements(melee_event_id)
# Get sets and games for event by event id
# - A set contains the players and scores
# - A game contains the specific character choices
# and final stock counts during a set, if reported
sets, games = gg.event.get_sets_all(melee_event_id)
# Get player info by id
# - Some fields may be None if profile is private or
# the user has not recorded them
player_info = gg.player.get_info(4107)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pystartgg-0.0.16.tar.gz.
File metadata
- Download URL: pystartgg-0.0.16.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0b503c54d92c79727d286f79c94426f75d0de08be2a3fdf6244f76fb7762298
|
|
| MD5 |
3bd483e2aa18c77962a3e5d6ad0bd7e4
|
|
| BLAKE2b-256 |
9d460e2999d26eb56007c2e2275b957d5f86c68d5cd42e0b63bdef1c7b2222ee
|
Provenance
The following attestation bundles were made for pystartgg-0.0.16.tar.gz:
Publisher:
release.yml on shepsteven42/pystartgg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystartgg-0.0.16.tar.gz -
Subject digest:
a0b503c54d92c79727d286f79c94426f75d0de08be2a3fdf6244f76fb7762298 - Sigstore transparency entry: 409330799
- Sigstore integration time:
-
Permalink:
shepsteven42/pystartgg@52160c2d51c7a8fbc91105cd37388b19817ce5ac -
Branch / Tag:
refs/tags/0.0.16 - Owner: https://github.com/shepsteven42
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52160c2d51c7a8fbc91105cd37388b19817ce5ac -
Trigger Event:
push
-
Statement type:
File details
Details for the file pystartgg-0.0.16-py3-none-any.whl.
File metadata
- Download URL: pystartgg-0.0.16-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78f62414f88dac4c807ece8656f2d201f1cdc89e06e22e21fcb96b8fa85559e7
|
|
| MD5 |
5ef23a3bb5aa9241c7b1d0cad32efdd3
|
|
| BLAKE2b-256 |
b0a75c0b1cc234428ba4e51d0048bb75fae364e4b7fba77206d3a7f7cfd0d07d
|
Provenance
The following attestation bundles were made for pystartgg-0.0.16-py3-none-any.whl:
Publisher:
release.yml on shepsteven42/pystartgg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystartgg-0.0.16-py3-none-any.whl -
Subject digest:
78f62414f88dac4c807ece8656f2d201f1cdc89e06e22e21fcb96b8fa85559e7 - Sigstore transparency entry: 409330803
- Sigstore integration time:
-
Permalink:
shepsteven42/pystartgg@52160c2d51c7a8fbc91105cd37388b19817ce5ac -
Branch / Tag:
refs/tags/0.0.16 - Owner: https://github.com/shepsteven42
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@52160c2d51c7a8fbc91105cd37388b19817ce5ac -
Trigger Event:
push
-
Statement type: