/helldive.py

A Helldivers 2 API wrapper utilizing the Diveharder Community API

Primary LanguagePythonMIT LicenseMIT

Helldive.py

PyPI PyPI - Downloads GitHub License Python Versions GitHub contributors

A simple Python library for diving deep into the Helldivers Community API and Diveharder API.


⚙️ Installation

To install Helldive.py, just use pip:

pip install helldivepy

🚀 Quickstart

Here's a super-quick example to get you diving right in:

import helldivepy

client = helldivepy.ApiClient(user_agent="my-app", user_contact="email@example.com")

# Get the latest dispatches
dispatches = client.dispatch.get_dispatches()

print(dispatches)
# Output example
[
   Dispatch(id=0, published=datetime.datetime, type=0, message='Hello, World 1!'),
   Dispatch(id=1, published=datetime.datetime, type=0, message='Hello, World 2!'),
   Dispatch(id=2, published=datetime.datetime, type=0, message='Hello, World 3!')
 ]

🌟 Features

  • Easy API Access: Communicate with the Helldivers Community API and Diveharder API without breaking a sweat.
  • Typed Data: Get structured, easily readable data like dispatches, planets, and more!
  • Perfect for Projects: Ideal for projects, bots, or just exploring Helldivers data.

🛠️ Contributing

Contributions are always welcome! If you’d like to make changes, feel free to submit a pull request. For major updates, open an issue first to discuss your ideas.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.