<OPENDOTA/> API
A python interface for <OPENDOTA/> API
The OpenDota class provided with the package serves as a python
interface for the original OpenDota API in the form of a thin wrapper.
The class assumes some familiarity with the OpenDota API.
All method calls return serializable python objects, as return by the API,
in most cases a dict or a list. Response data is stored as JSON in a local
directory (Default: ~/dota2), to prevent the load on OpenDota API.
Free software: MIT license
Documentation: https://pyopendota.readthedocs.io.
Features
Transparent wrapper for majority of the API calls
Ability to authenticate using API key
In-built and cusomizable limit to protect against frequent API calls
Local file-based storage for frequent requests
Basic CLI using
fire
Usage
Use <OPENDOTA/> API in a project
import opendota
# Initialize the API-connection object
client = opendota.OpenDota()
Get Common Entities
client.get_matches('match-id')
client.get_player('player-id')
client.get_team('team-id')
Search Functionality
players = client.search_player('Dendi')
teams = client.search_team('Alliance')
heroes = client.search_hero('Crystal')
leagues = client.search_league('International')
PostgreSQL Query
OpenDota API supports arbitrary PostgreSQL query.
Check Database Schema:
client.get_schema() # Lists all tables
client.get_schema('matches') # Lists schema for a specific table
Arbitrary PostgreSQL Query:
client.explorer("select * from matches where limit 1")
Use <OPENDOTA/> API Command Line Interface
Information about OpenDota class initialization:
opendota --help
Information about OpenDota methods:
opendota - --help
Run methods
opendota search_team Virtus
opendota get_match 4080778303
Powered by :code:`fire`
About OpenDota API
The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays.
OpenDota API Documentation: https://docs.opendota.com/
Credits
This package uses data provided by The OpenDota API.
History
0.2.0 (2021-10-04)
Improved Documentation
League specific functions
Basic CLI using python-fire
Fantasy score calculation
Bugfixes
0.1.0 (2021-07-20)
First release on PyPI.
Metadata
Release files for pyopendota 0.2.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyopendota-0.2.9.tar.gz | 18.5 kB | Without provenance | Details for pyopendota-0.2.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyopendota-0.2.9-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pyopendota-0.2.9-py2.py3-none-any.whl |
Total release size: 29.3 kB
Release files / pyopendota-0.2.9.tar.gz
| Download URL | pyopendota-0.2.9.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1e8866af03a40f75c2080db8c32d5f6fa2d3d415011ba8e588f68ca73db0e24
|
|
BLAKE2b-256 checksum How to use checksums |
6b42a40f8ef40b57fba82067ede14e9355358c690fb8559d0500925adcef2638
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.11.3 pkginfo/1.5.0.1 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.16
|
Release files / pyopendota-0.2.9-py2.py3-none-any.whl
| Download URL | pyopendota-0.2.9-py2.py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2f5a3caf053aead44befc5fa961048d159bac25f02f7f6d3bdb2b5cc25e27012
|
|
BLAKE2b-256 checksum How to use checksums |
075535e8e685c1873cbeb594be1d12b92f1c27ee30348f0045dfe9c8c6dc1bac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.11.3 pkginfo/1.5.0.1 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.16
|
Security for pyopendota 0.2.9
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.