Helldivers 2 Python API Wrapper
This is an asyncronous api frontend library for the Helldivers 2 API and many of it's community wrappers.
Get the latest game state from Helldivers 2, and transform the raw data into collated data objects complete with important planet effects, the latest biome and enviornmental hazards, and more.
Still currently in development, expect frequent updates as the static data required by the package to build the collated objects can change in between patches to Helldivers 2.
All returned objects are Pydantic Models, which allow them to be quickly dumped and loaded from/to json strings.
Please note, this API Wrapper was designed to primarily work with the asyncio module.
Requirements:
- httpx
- pydantic
This front end supports:
-
The community api. https://github.com/helldivers-2/api
-
The diveharder api. https://github.com/helldivers-2/diveharder_api.py/
-
Arrowhead's official API.
current stable installation
pip install -U hd2api.py
current latest installation
pip install -U git+https://github.com/CrosswaveOmega/hd2api.py.git
Basic usage
import asyncio
from hd2api import GetApiRawAll, APIConfig, build_planet_2
async def main():
apiconfig=APIConfig()
allval=await GetApiRawAll(apiconfig)
print(allval.status)
planet=build_planet_2(64,allval, apiconfig.staticdata())
print(planet)
asyncio.run(main)
Metadata
Release files for hd2api.py 0.0.1.21.4
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 |
|---|---|---|---|---|
| hd2api_py-0.0.1.21.4.tar.gz | 107.7 kB | Without provenance | Details for hd2api_py-0.0.1.21.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hd2api_py-0.0.1.21.4-py3-none-any.whl | Python 3 | none | any | Details for hd2api_py-0.0.1.21.4-py3-none-any.whl |
Total release size: 238.5 kB
Release files / hd2api_py-0.0.1.21.4.tar.gz
| Download URL | hd2api_py-0.0.1.21.4.tar.gz |
|---|---|
| Size | 107.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15b56f98f67e41b7f4c7b4d98f1cc2fc71f8176e578b95ddce308cb8dd18f61f
|
|
BLAKE2b-256 checksum How to use checksums |
750ea490649837fb0241089cab8cd5d6827764581800400b7858b8a400cef1aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / hd2api_py-0.0.1.21.4-py3-none-any.whl
| Download URL | hd2api_py-0.0.1.21.4-py3-none-any.whl |
|---|---|
| Size | 130.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
335105d36f24d582e7c7f97d9b0817e8d217c81854e557874f7eb1948d188157
|
|
BLAKE2b-256 checksum How to use checksums |
4652b142608d637385af3e9ffe47c5eb1d5efdfd45137b12efdfc7378f77c144
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for hd2api.py 0.0.1.21.4
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.