A wrapper for smash.gg's GraphQL API
Project description
smashgg-api-wrapper-python
How to use:
pip install smashggAPI
- 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
python -m pip install -r requirements.txt
python -m pytest
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
smashggAPI-0.0.2.tar.gz
(1.8 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a1d82d5dd1ccfb73ec4f86bd611fd022e80ea248b25fbf9c9dbaf91a172f1d2e
|
|
MD5 |
b6b85a5d48a44a5316f15b80cbcbc4ae
|
|
BLAKE2b-256 |
dcfb9e6ab5d0943d69a1b88f998bd2ec5956bfe8ff417166e648e4839fbac291
|
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
23540327a55b09264a989b5d577ff1f4a946333ce0247635d9d2b7702c9d3b4e
|
|
MD5 |
e6488f1fb43dbd0609627e21033695c7
|
|
BLAKE2b-256 |
7ce677687aa6a3e9e34db4e6133ac22a19ed278caee9776268f64e40d49b4a69
|