Skip to main content

A wrapper for smash.gg's GraphQL API

Project description

smashgg-api-wrapper-python

How to use:

  1. pip install smashggAPI
  2. Add your public API key as an environmental variable:

In .bashrc/whatever equivalent file:

export SMASHGG_API_KEY='your api key here'
from smashggAPI import client

result = client.query('''
	query TournamentInfo ($slug: String!) {
		tournament(slug: $slug) {
			id
			name
		}
	}
''',
{
	"slug": "genesis-6"
})

Contributing

Running tests

  1. python -m pip install -r requirements.txt
  2. python -m pytest

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

smashggAPI-0.0.2.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

smashggAPI-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file smashggAPI-0.0.2.tar.gz.

File metadata

  • Download URL: smashggAPI-0.0.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for smashggAPI-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a1d82d5dd1ccfb73ec4f86bd611fd022e80ea248b25fbf9c9dbaf91a172f1d2e
MD5 b6b85a5d48a44a5316f15b80cbcbc4ae
BLAKE2b-256 dcfb9e6ab5d0943d69a1b88f998bd2ec5956bfe8ff417166e648e4839fbac291

See more details on using hashes here.

File details

Details for the file smashggAPI-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: smashggAPI-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for smashggAPI-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23540327a55b09264a989b5d577ff1f4a946333ce0247635d9d2b7702c9d3b4e
MD5 e6488f1fb43dbd0609627e21033695c7
BLAKE2b-256 7ce677687aa6a3e9e34db4e6133ac22a19ed278caee9776268f64e40d49b4a69

See more details on using hashes here.

Supported by

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