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.15.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.15-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pystartgg-0.0.15.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.15.tar.gz
Algorithm Hash digest
SHA256 823accd65b524c4f5eafc192920ac6901434e0d34bf561c6f9b847a95511f0eb
MD5 1a4f1c1c8cc18ba08fb8ed7e502779ad
BLAKE2b-256 be47cb6fd938a40f6f092f62ac48eb043c54f4560e7c133bd5b21ad22c0a9915

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pystartgg-0.0.15-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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6dafc52bc68c78a03515ffefa6221b6b20f93ab15c078f15af16b59af8a9d4
MD5 727d9d0b308f0178bc06ef0a6d71cbea
BLAKE2b-256 273be600bb96cdc1f467e2a2228098130688fdfafc5c683c43e593991ca59f71

See more details on using hashes here.

Provenance

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