Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystartgg-0.0.16.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

pystartgg-0.0.16-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

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

Hashes for pystartgg-0.0.16.tar.gz
Algorithm Hash digest
SHA256 a0b503c54d92c79727d286f79c94426f75d0de08be2a3fdf6244f76fb7762298
MD5 3bd483e2aa18c77962a3e5d6ad0bd7e4
BLAKE2b-256 9d460e2999d26eb56007c2e2275b957d5f86c68d5cd42e0b63bdef1c7b2222ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystartgg-0.0.16.tar.gz:

Publisher: release.yml on shepsteven42/pystartgg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pystartgg-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 78f62414f88dac4c807ece8656f2d201f1cdc89e06e22e21fcb96b8fa85559e7
MD5 5ef23a3bb5aa9241c7b1d0cad32efdd3
BLAKE2b-256 b0a75c0b1cc234428ba4e51d0048bb75fae364e4b7fba77206d3a7f7cfd0d07d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystartgg-0.0.16-py3-none-any.whl:

Publisher: release.yml on shepsteven42/pystartgg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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