autotraders.faction package#
Submodules#
autotraders.faction.contract module#
- class autotraders.faction.contract.Contract(contract_id: str, session: AutoTradersSession, data=None)#
Bases:
SpaceTradersEntity
- accept()#
- accept_deadline: datetime#
- accepted: bool#
- static all(session, page: int = 1)#
- contract_id: str#
- deadline: datetime#
- deliver(symbol, cargo_symbol, amount)#
- fulfill()#
- fulfilled: bool#
- static negotiate(ship_symbol, session)#
- on_accepted: str#
- on_fulfilled: str#
- update(data=None)#
- class autotraders.faction.contract.Deliver(data)#
Bases:
object
Module contents#
- class autotraders.faction.Faction(symbol, session: AutoTradersSession, data: dict | None = None)#
Bases:
SpaceTradersEntity
- static all(session, page: int = 1) PaginatedList #
- description: str#
- headquarters: SystemSymbol | None#
- is_recruiting: bool#
- name: str#
- symbol: str#
- traits: list[Trait]#
- update(data: dict | None = None)#
- autotraders.faction.get_all_factions(session)#