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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hd2api_py-0.0.1.20.28.tar.gz (106.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hd2api_py-0.0.1.20.28-py3-none-any.whl (129.4 kB view details)

Uploaded Python 3

File details

Details for the file hd2api_py-0.0.1.20.28.tar.gz.

File metadata

  • Download URL: hd2api_py-0.0.1.20.28.tar.gz
  • Upload date:
  • Size: 106.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hd2api_py-0.0.1.20.28.tar.gz
Algorithm Hash digest
SHA256 85013d72f3204d27012e85584a97d62eb767919992079e67304e834334a4740a
MD5 9fc43e9d27877ac2c60a7e3fc501ee90
BLAKE2b-256 815b8d57adef354ced4c18b66ee7da83c60a56a2946e1cbe03386ac1ffeec4db

See more details on using hashes here.

File details

Details for the file hd2api_py-0.0.1.20.28-py3-none-any.whl.

File metadata

  • Download URL: hd2api_py-0.0.1.20.28-py3-none-any.whl
  • Upload date:
  • Size: 129.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hd2api_py-0.0.1.20.28-py3-none-any.whl
Algorithm Hash digest
SHA256 56983b98068ec3430fb9dc6c34886432b7f59b86ed3794ddf2c24240f813c4c8
MD5 17f0bb9dd7f2c0d1a5d28664ee9e843f
BLAKE2b-256 29982218fb11d42ac9888223cc6e859499410c92829dcadd86a5c730d7c7775c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page