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 hashes)
Built Distribution
Close
Hashes for smashggAPI-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23540327a55b09264a989b5d577ff1f4a946333ce0247635d9d2b7702c9d3b4e |
|
MD5 | e6488f1fb43dbd0609627e21033695c7 |
|
BLAKE2b-256 | 7ce677687aa6a3e9e34db4e6133ac22a19ed278caee9776268f64e40d49b4a69 |