Modules¶
Each module is accessed as an attribute on HelldiveAPIClient and handles one API resource group. All modules share the same pattern: get_all() returns a list, get(index) returns a single item or None on 404, and non-404 HTTP errors are re-raised.
helldivepy.modules.war.WarModule
¶
helldivepy.modules.dispatches.DispatchesModule
¶
helldivepy.modules.planets.PlanetModule
¶
Bases: BaseModule
Access planet data and active planetary events.
helldivepy.modules.campaigns.CampaignModule
¶
helldivepy.modules.assignments.AssignmentsModule
¶
Bases: BaseModule
Access Major Orders (assignments) issued by high command.
Functions¶
get_all
¶
Fetch all active assignments.
Returns:
| Type | Description |
|---|---|
list[Assignment]
|
A list of all currently active Major Orders. |
get
¶
Fetch a specific assignment by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index
|
int
|
The assignment ID. |
required |
Returns:
| Type | Description |
|---|---|
Assignment | None
|
The matching Assignment, or None if not found. |
helldivepy.modules.space_stations.SpaceStationsModule
¶
Bases: BaseModule
Access the Democracy Space Station (DSS) and its tactical actions.
Functions¶
get_all
¶
Fetch all space stations.
Returns:
| Type | Description |
|---|---|
list[SpaceStation]
|
A list of all space stations and their current state. |
get
¶
Fetch a specific space station by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index
|
int
|
The station's 32-bit ArrowHead ID. |
required |
Returns:
| Type | Description |
|---|---|
SpaceStation | None
|
The matching SpaceStation, or None if not found. |