TBD
Project description
Helldivers 2 Python API
A Python abstraction layer for the unofficial Helldivers 2 API
Key Features
- Fully typed data model
- Planets
- Sectors
- Factions
- Events
- Campaigns
- Attacks
- Simple to use
- Use your IDE's autocompletion to simply traverse the data model tree
- Easy Install
- Only dependency is requests!
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
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 = my_client.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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
helldivers-2-api-0.0.1.tar.gz
(14.2 kB
view hashes)
Built Distribution
Close
Hashes for helldivers_2_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abaa88602387c60f132ca47c053f2e945e9c076e4e7b2a539d0b10be96e40cba |
|
MD5 | 15c48a1c5f5c8d02cee6980538b35a59 |
|
BLAKE2b-256 | c1469a4720c959d72c487b9c3b140efd95e65d1f2ac486465abc760ea3c40e8a |