Routes
helldivepy.api
Attributes
helldivepy.api.__all__
module-attribute
__all__ = ['DispatchModule', 'WarModule', 'SteamModule', 'AssignmentsModule', 'PlanetsModule', 'CampaignModule', 'SpaceStationModule']
Classes
helldivepy.api.DispatchModule
Bases: BaseApiModule
The Dispatch API module. This module is used to interact with all dispatches (Ingame News)
METHOD | DESCRIPTION |
---|---|
get_dispatches |
bool): Gets all dispatches and orders them based on the |
get_dispatch |
int): Gets a dispatch by its ID. |
Functions
helldivepy.api.DispatchModule.get_dispatches
Gets the information about the current war.
helldivepy.api.WarModule
Bases: BaseApiModule
The War module of the API. This module is used to get all info about the current war.
METHOD | DESCRIPTION |
---|---|
get_war_info |
Gets the information about the current war. |
helldivepy.api.SteamModule
Bases: BaseApiModule
The Steam API module. Used to get all the Game updates and News.
METHOD | DESCRIPTION |
---|---|
get_all_steam_news |
Gets all the steam news. |
get_steam_news |
str): Gets a steam news item by its ID. |
helldivepy.api.AssignmentsModule
Bases: BaseApiModule
The Assignments API module (Major Order). This module is used to interact with the current major order(s).
METHOD | DESCRIPTION |
---|---|
get_all_assignments |
Gets all current assignments |
get_assignment |
int): Gets one assignment using the assignment ID |
helldivepy.api.PlanetsModule
Bases: BaseApiModule
The Planets API module. This module is used to interact with the planets.
METHOD | DESCRIPTION |
---|---|
get_planets |
Gets all planets. |
get_planet |
int): Gets a planet using the index. |
get_planets_with_events |
Gets all planets with events. |
Functions
helldivepy.api.PlanetsModule.get_planets
Get all planets
RETURNS | DESCRIPTION |
---|---|
List[Planet]
|
typing.List[models.Planet]: The list of planet objects |
helldivepy.api.PlanetsModule.get_planet
Gets a planet using the index
PARAMETER | DESCRIPTION |
---|---|
index
|
The index of the planet
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Planet
|
models.Planet: The planet object |
helldivepy.api.PlanetsModule.get_planets_with_events
Gets all planets with an active event
RETURNS | DESCRIPTION |
---|---|
List[Planet]
|
typing.List[models.Planet]: The list of planet objects |
helldivepy.api.CampaignModule
Bases: BaseApiModule
The Campaign API module. This module is used to interact with all campaigns (Battles/Planets that are accessible).
METHOD | DESCRIPTION |
---|---|
get_campaigns |
Gets all current active campaigns. |
get_campaign |
int): Gets a campaign by its ID. |
Functions
helldivepy.api.CampaignModule.get_campaigns
Gets all current active campaigns.
RETURNS | DESCRIPTION |
---|---|
List[Campaign]
|
typing.List[models.Campaign]: The campaigns. |
helldivepy.api.CampaignModule.get_campaign
Gets a campaign by its ID.
PARAMETER | DESCRIPTION |
---|---|
campaign_id
|
The ID of the campaign.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Campaign
|
models.Campaign: The campaign. |
helldivepy.api.SpaceStationModule
Bases: BaseApiModule
Functions
helldivepy.api.SpaceStationModule.get_space_stations
Retrieves all space stations.
RETURNS | DESCRIPTION |
---|---|
list[SpaceStation]
|
list[SpaceStation]: A list of space station objects from the server. |
helldivepy.api.SpaceStationModule.get_space_station
Retrieves a space station by its ID.
PARAMETER | DESCRIPTION |
---|---|
index
|
The ID of the space station.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Optional[SpaceStation]
|
Optional[SpaceStation]: The space station object if found, or None. |