autotraders.map.waypoint_types package#

Submodules#

autotraders.map.waypoint_types.jumpgate module#

class autotraders.map.waypoint_types.jumpgate.JumpGate(waypoint: str, session: AutoTradersSession, data: dict | None = None)#

Bases: WaypointType

connections: list[SystemSymbol]#
update(data: dict | None = None)#

autotraders.map.waypoint_types.marketplace module#

class autotraders.map.waypoint_types.marketplace.Activity(value)#

Bases: str, Enum

An enumeration.

GROWING = 'GROWING'#
RESTRICTED = 'RESTRICTED'#
STRONG = 'STRONG'#
WEAK = 'WEAK'#
class autotraders.map.waypoint_types.marketplace.GoodType(value)#

Bases: str, Enum

An enumeration.

EXCHANGE = 'EXCHANGE'#
EXPORT = 'EXPORT'#
IMPORT = 'IMPORT'#
class autotraders.map.waypoint_types.marketplace.Marketplace(waypoint: str, session: AutoTradersSession, data: dict | None = None)#

Bases: WaypointType

exchange: list[str]#
exports: list[str]#
imports: list[str]#
trade_goods: list[TradeGood] | None#
update(data: dict | None = None)#
class autotraders.map.waypoint_types.marketplace.Supply(value)#

Bases: str, Enum

An enumeration.

ABUNDANT = 'ABUNDANT'#
HIGH = 'HIGH'#
LIMITED = 'LIMITED'#
MODERATE = 'MODERATE'#
SCARCE = 'SCARCE'#
class autotraders.map.waypoint_types.marketplace.TradeGood(*, symbol: str, quantity: int, description: str | None = None, type: GoodType, tradeVolume: int, supply: Supply, purchasePrice: int, sellPrice: int, activity: Activity | None = None)#

Bases: Item

activity: Activity | None#
good_type: GoodType#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'activity': FieldInfo(annotation=Union[Activity, NoneType], required=False), 'description': FieldInfo(annotation=Union[str, NoneType], required=False), 'good_type': FieldInfo(annotation=GoodType, required=True, alias='type', alias_priority=2), 'purchase_price': FieldInfo(annotation=int, required=True, alias='purchasePrice', alias_priority=2), 'quantity': FieldInfo(annotation=int, required=True, alias_priority=2, validation_alias=AliasChoices(choices=['quantity', 'units', 'amount', 'tradeVolume'])), 'sell_price': FieldInfo(annotation=int, required=True, alias='sellPrice', alias_priority=2), 'supply': FieldInfo(annotation=Supply, required=True), 'symbol': FieldInfo(annotation=str, required=True, alias_priority=2, validation_alias=AliasChoices(choices=['symbol', 'tradeSymbol'])), 'trade_volume': FieldInfo(annotation=int, required=True, alias='tradeVolume', alias_priority=2)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

purchase_price: int#
sell_price: int#
supply: Supply#
trade_volume: int#

autotraders.map.waypoint_types.shipyard module#

class autotraders.map.waypoint_types.shipyard.Shipyard(waypoint: str, session: AutoTradersSession, data: dict | None = None)#

Bases: WaypointType

modifications_fee: int#
purchase(ship_type: str)#
ship_types: list[str]#
ships: list[ShipyardShip] | None#
update(data: dict | None = None)#
class autotraders.map.waypoint_types.shipyard.ShipyardShip(*, type: str, name: str, description: str, purchasePrice: int, frame: Frame, reactor: Reactor, engine: Engine, modules: list[Module], mounts: list[Mount])#

Bases: BaseModel

description: str#
engine: Engine#
frame: Frame#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'description': FieldInfo(annotation=str, required=True), 'engine': FieldInfo(annotation=Engine, required=True), 'frame': FieldInfo(annotation=Frame, required=True), 'modules': FieldInfo(annotation=list[Module], required=True), 'mounts': FieldInfo(annotation=list[Mount], required=True), 'name': FieldInfo(annotation=str, required=True), 'purchase_price': FieldInfo(annotation=int, required=True, alias='purchasePrice', alias_priority=2), 'reactor': FieldInfo(annotation=Reactor, required=True), 'ship_type': FieldInfo(annotation=str, required=True, alias='type', alias_priority=2)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

modules: list[Module]#
mounts: list[Mount]#
name: str#
purchase_price: int#
reactor: Reactor#
ship_type: str#

Module contents#

class autotraders.map.waypoint_types.WaypointType(waypoint: str, trait: str, session: AutoTradersSession, data: dict | None = None)#

Bases: SpaceTradersEntity