Skip to main content

An API wrapper for the Helldivers 2 Community and official APIs

Project description

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)

Project details


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.11.tar.gz (81.9 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.11-py3-none-any.whl (101.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hd2api_py-0.0.1.11.tar.gz
  • Upload date:
  • Size: 81.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hd2api_py-0.0.1.11.tar.gz
Algorithm Hash digest
SHA256 b48b2c18a4742cd674e8a2fb0847173109c7b4cef612300acea6934ba229f0f8
MD5 3aae674d4a00ac2681fbc522ad171912
BLAKE2b-256 70d85049b88df3bce2f1b88baee4702bb883caae0f097dc9995c61a75e77fb6e

See more details on using hashes here.

File details

Details for the file hd2api.py-0.0.1.11-py3-none-any.whl.

File metadata

  • Download URL: hd2api.py-0.0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 101.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for hd2api.py-0.0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1ad2be21e68259eb13c8f1da7d54e79011a37e8b740fc669cfc7fe0b49b5320e
MD5 e4624c42a23b60cb219617b18eacc054
BLAKE2b-256 ed84ee58f0f0509bc57c31bd9476757186f3e4bf2ebdab5d10e620c62cbc3565

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