Dota 2 API wrapper and parser for Python 3
Project description
d2api
Introduction
Python 3 wrapper and parser for interacting with Valve's Dota 2 WebAPI.
Documentation |
---|
This project is still growing, with additonal parsing, tests, documentation and examples.
Installation
Install using pip (recommended)
Install from pip using:
$ pip install d2api
Clone from github
Download the latest build and install using:
$ git clone https://github.com/whoophee/d2api/
$ cd d2api/
$ python setup.py install
Getting Started
First of all, you need an API key from Steam. Once that's done, you can initialize the wrapper in one of two ways.
Initialize using Environment Variable
Set the environment variable D2_API_KEY
to the API key you just generated, and then initialize your wrapper using,
api = d2api.APIWrapper()
Initialize inline
You can also initialize the wrapper inline using,
# This takes priority over the environment variable
api = d2api.APIWrapper(api_key = 'your api key')
You can find further use cases and examples here.
Documentation
Documentation is available at http://d2api.readthedocs.org/
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
Built Distribution
File details
Details for the file d2api-1.1.tar.gz
.
File metadata
- Download URL: d2api-1.1.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.7.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4905ac390b77c659398ede70e90f45b962c6f988944b4df80d691f0a4d90d25 |
|
MD5 | 792680c80ab7e3254408f66ecb3cf076 |
|
BLAKE2b-256 | 1bd2a354d96688b22eeaaaa9ec407f23e63e980711f3846c32a1f183f66159aa |
File details
Details for the file d2api-1.1-py3-none-any.whl
.
File metadata
- Download URL: d2api-1.1-py3-none-any.whl
- Upload date:
- Size: 48.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.7.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | faeb0a1baf2ddd1ddcd8d7fc69037e1eb7448b654faf01799e4c26e40343947c |
|
MD5 | 6a80f0b8422d140d2cad7e6ef834e4af |
|
BLAKE2b-256 | 3dffed806dd5c5ee55d5021f42314a2fd91795007ee3dfcbfe1ace214c9505ad |