Planet
Access planet information from FIO.
Planet
Bases: AbstractPlanet
, AbstractEndpoint
Planet endpoint wrapper
get
Gets full planet data from FIO
Parameters:
Name | Type | Description | Default |
---|---|---|---|
planet |
str
|
PlanetId, PlanetNaturalId or PlanetName |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
PlanetNotFound
|
Planet not found |
Returns:
Name | Type | Description |
---|---|---|
PlanetFull |
PlanetFull
|
Full planet information |
Source code in fio_wrapper/endpoints/endpoints_v1/planet.py
all
Gets a list of all Planets with minimal information from FIO
Parameters:
Name | Type | Description | Default |
---|---|---|---|
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Returns:
Name | Type | Description |
---|---|---|
PlanetList |
PlanetList
|
List of Planets as List[Planet] |
Source code in fio_wrapper/endpoints/endpoints_v1/planet.py
full
Gets a list of all planets from FIO with full planet information
Parameters:
Name | Type | Description | Default |
---|---|---|---|
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Returns:
Name | Type | Description |
---|---|---|
PlanetFullList |
PlanetFullList
|
List of Planets with full information as List[PlanetFull] |
Source code in fio_wrapper/endpoints/endpoints_v1/planet.py
sites
Gets a list of sites on the planet from FIO
Parameters:
Name | Type | Description | Default |
---|---|---|---|
planet |
str
|
PlanetId, PlanetNaturalId or PlanetName |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
PlanetNotFound
|
Planet not found |
Returns:
Name | Type | Description |
---|---|---|
PlanetSiteList |
PlanetSiteList
|
List of Planet sites as List[PlanetSite] |
Source code in fio_wrapper/endpoints/endpoints_v1/planet.py
search
Performs a search request towards FIO to find a planet matching the search parameters
Parameters:
Name | Type | Description | Default |
---|---|---|---|
materials |
List[str]
|
List of materials to search for, e.g. ["FEO", "LST"]. |
None
|
include_rocky |
bool
|
Planet can be Rocky. |
False
|
include_gaseous |
bool
|
Planet can be Gaseous. |
False
|
include_low_gravity |
bool
|
Planet can be low gravity. |
False
|
include_high_gravity |
bool
|
Planet can be high gravity. |
False
|
include_low_pressure |
bool
|
Planet can be low pressure. |
False
|
include_high_pressure |
bool
|
Planet can be high pressure. |
False
|
include_low_temperature |
bool
|
Planet can be low temperature. |
False
|
include_high_temperature |
bool
|
Planet can be high temperature. |
False
|
must_be_fertile |
bool
|
Planet must be Fertile. |
False
|
must_have_localmarket |
bool
|
Planet must have a Local Market. |
False
|
must_have_cogc |
bool
|
Planet must have a Chamber of Glboal Commerce. |
False
|
must_have_war |
bool
|
Planet must have warehouses. |
False
|
must_have_adm |
bool
|
Planet must have a Planetary Administration Center. |
False
|
must_have_shy |
bool
|
Planet must have a Shipyard. |
False
|
distance_checks |
List[str]
|
List of other planets to check distance to, e.g. ["ANT", "MOR"]. |
None
|
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
PlanetSearchMaterialsInvalid
|
description |
PlanetSearchDistanceChecksInvalid
|
description |
PlanetSearchInvalidRequest
|
description |
Returns:
Name | Type | Description |
---|---|---|
PlanetFullList |
PlanetFullList
|
List of Planets with full information as List[PlanetFull] |
Source code in fio_wrapper/endpoints/endpoints_v1/planet.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
|