Skip to main content

Helldivers 2 Python API Wrapper

PyPI Documentation Status

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:

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)

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)

Source distribution for hd2api.py 0.0.1.21.4
File Size Uploaded
hd2api_py-0.0.1.21.4.tar.gz 107.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hd2api.py 0.0.1.21.4
File Interpreter ABI Platform
hd2api_py-0.0.1.21.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1.21.4 This release

2 release files

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