Skip to main content

Helldivers 2 Python API

A Python abstraction layer for the Helldivers 2 API

Key Features

  • Fully typed data model
    • Planets
    • Sectors
    • Factions
    • Events
    • Campaigns
    • Attacks
  • Supports multiple APIs
    • Wraps the HellDiversTrainingManual API
    • Wraps the kinda unofficial internal HellDivers2 API
  • Simple to use
    • Use your IDE's autocompletion to simply traverse the data model tree
  • Easy Install

How To Use

Simply install the PyPI package via pip.

Make sure to check out the examples.

Minimal usage example

from helldivers2_api.api_client import ApiClient
from helldivers2_api.planet_info_table import get_planet_by_id

my_client = ApiClient()

war_status = my_client.get_war_status()

print(war_status.planet_attacks)

#  [
#    PlanetAttack(source_planet_id=125, target_planet_id=34), 
#    PlanetAttack(source_planet_id=168, target_planet_id=34),
#    ...
#  ]

planet_name = get_planet_by_id(34).name
print(planet_name)

#  Hellmire

Credits

This software uses the following open source packages:

License

        DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                Version 2, December 2004

Copyright (C) 2024 David Rodenkirchen <davidr.develop@gmail.com>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

        DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

Metadata

Release files for helldivers-2-api 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for helldivers-2-api 0.0.3
File Size Uploaded Provenance
helldivers-2-api-0.0.3.tar.gz 15.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for helldivers-2-api 0.0.3
File Interpreter ABI Platform
helldivers_2_api-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 34.2 kB

Release files / helldivers-2-api-0.0.3.tar.gz

Download URL helldivers-2-api-0.0.3.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ee01ed5b30d2b79478d2dd6c620fa1edfd804c76a1a1d42e67da002fef7f19a5
BLAKE2b-256 checksum
How to use checksums
4e778a250ab4d2a7b9f1ad5185f34519ddb46678e940bd1b9c0c7d741576a23f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / helldivers_2_api-0.0.3-py3-none-any.whl

Download URL helldivers_2_api-0.0.3-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfea1287b93fe9f9368591b2d4b2080659b575adaf837a3f8753742fc6b2a437
BLAKE2b-256 checksum
How to use checksums
6c527183cdf91d403fae3352a01455258d87f2cc2a33ad861e28cf01d36750fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Security for helldivers-2-api 0.0.3

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.

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