py-unite-db
Unofficial Python wrapper for the unite-db.com REST API.
Introduction
unite-db is a website dedicated to maintaining a database on various stats in the game Pokemon Unite including stats for Pokemon, Battle Items and Held Items.
This wrapper provides a simple, Pythonic interface to those stats via a REST API, with automatic result caching.
Please be warned that this is an unofficial wrapper and the REST API is a private one, so please do not abuse it.
If you are publishing any of the data collected with this API, please give credit to unite-db. They spend many hours collecting this data.
Installation
The package is installable via pip.
pip install py-unite-db
Usage
Import the UniteDb object:
from py_unite_db import UniteDb
unite_db = UniteDb()
Let's get the names of all supporter Pokemon:
>>> [pokemon.name for pokemon in unite_db.pokemon if pokemon.role == "Supporter"]
['Blissey', 'Eldegoss', 'Mr.Mime', 'Wigglytuff']
Contributing
This project uses pdm.
$ pdm install
Running the tests
The project uses pytest.
$ pdm run pytest
Type Checking
The project must pass mypy type checking.
$ pdm run typecheck
If you are using mypy with an IDE like VS Code make sure you have run
$ pdm run stubs
To work around mypy not supporting PEP582 yet. See https://github.com/python/mypy/issues/10633 for more info on this.
Formatting
Imports are sorted with isort and source files are formatted with black.
$ pdm run format
$ pdm run formatcheck
If you are using VS Code this will be automatically done on save.
Linting
Linting is provided by flake8.
$ pdm run lint
Conventional Commits
The project follows the conventional commit style.
Docs
This project uses mkdocs, mkdocstrings, mkdocs-material for its documentation.
$ pdm run fetch_charm
$ pdm run mkdocs serve
Metadata
Release files for py-unite-db 0.3.0
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 |
|---|---|---|---|---|
| py-unite-db-0.3.0.tar.gz | 26.2 kB | Without provenance | Details for py-unite-db-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_unite_db-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for py_unite_db-0.3.0-py3-none-any.whl |
Total release size: 44.7 kB
Release files / py-unite-db-0.3.0.tar.gz
| Download URL | py-unite-db-0.3.0.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82ddf2ae7baa4838863c2250ef9f1a3140188c341c357ba1da1538b9e25c3880
|
|
BLAKE2b-256 checksum How to use checksums |
dab49d952976482308272c8b77bd0b78320e31ae292c1cad5e9df1c333220886
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12
|
Release files / py_unite_db-0.3.0-py3-none-any.whl
| Download URL | py_unite_db-0.3.0-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37135dc327cf6d5b230d1c60d1d7f751dd4e9c9e78168ca08a7dd6bc32178257
|
|
BLAKE2b-256 checksum How to use checksums |
2f7b6890276be0d3e4a56af63422591a180fd6edc01cfe9b6c0c02ebc72cbfa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/40.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.65.0 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12
|
Security for py-unite-db 0.3.0
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.