Skip to main content

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
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

d2api-1.0.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

d2api-1.0-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

Details for the file d2api-1.0.tar.gz.

File metadata

  • Download URL: d2api-1.0.tar.gz
  • Upload date:
  • Size: 32.9 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

Hashes for d2api-1.0.tar.gz
Algorithm Hash digest
SHA256 f05f6391f1db4d4ddd725b6430e11bd64af20b75593f1de65a59c75db9e437e5
MD5 0e3ad0717f8577e687cf4912e5fc274e
BLAKE2b-256 303f442f28fd2a7c83e0adfe99d9a4e0dc329395b68aab3ef603beb29bad0ed2

See more details on using hashes here.

File details

Details for the file d2api-1.0-py3-none-any.whl.

File metadata

  • Download URL: d2api-1.0-py3-none-any.whl
  • Upload date:
  • Size: 46.8 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

Hashes for d2api-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c0ebbcf4b48c6c1171a1b778f426131ca928981324d988cae5f72fcb55973d1
MD5 e50eaf9a6f2ed3300f68fd6e02b16e65
BLAKE2b-256 d02ab4edaeb3b73e45b9497781cc77c25aab113acb5ee97a43ddbb6823306e32

See more details on using hashes here.

Supported by

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