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.14.tar.gz (16.0 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.14-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file pystartgg-0.0.14.tar.gz.

File metadata

  • Download URL: pystartgg-0.0.14.tar.gz
  • Upload date:
  • Size: 16.0 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.14.tar.gz
Algorithm Hash digest
SHA256 718e92611633cdb5dce06366f3281332c3655eb481ad1a749a4c3f9ca7b07cbb
MD5 5788c67c5e935187b8feb77db6f870dd
BLAKE2b-256 671693d82dabc70280f058f7946570cdec4f43bad644344710d2aed4944f443c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystartgg-0.0.14.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.14-py3-none-any.whl.

File metadata

  • Download URL: pystartgg-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 21.3 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 a0ca20f822664bc54c075abf3cca354a699f05670667df2e98b49ed7f0236294
MD5 eb622611293f0dd04aff1806c2a6330b
BLAKE2b-256 eb1486802051cf5637bbfc2f8f10efa165df6216c5c4acf354128983a78444a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystartgg-0.0.14-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