Skip to main content

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/

Metadata

Release files for d2api 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for d2api 1.1
File Size Uploaded Provenance
d2api-1.1.tar.gz 34.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for d2api 1.1
File Interpreter ABI Platform
d2api-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 82.7 kB

Release files / d2api-1.1.tar.gz

Download URL d2api-1.1.tar.gz
Size 34.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b4905ac390b77c659398ede70e90f45b962c6f988944b4df80d691f0a4d90d25
BLAKE2b-256 checksum
How to use checksums
1bd2a354d96688b22eeaaaa9ec407f23e63e980711f3846c32a1f183f66159aa
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / d2api-1.1-py3-none-any.whl

Download URL d2api-1.1-py3-none-any.whl
Size 48.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faeb0a1baf2ddd1ddcd8d7fc69037e1eb7448b654faf01799e4c26e40343947c
BLAKE2b-256 checksum
How to use checksums
3dffed806dd5c5ee55d5021f42314a2fd91795007ee3dfcbfe1ace214c9505ad
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for d2api 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page