Data Reference¶
Note
The following documents every data class modelled by the library and all its potential attributes, it will only have the attributes queried, attempting to access unqueried (and therefore non-existent) attributes will result in it raising an AttributeError
or a KeyError
depending on the context.
Alliance¶
Attributes
- class pnwkit.data.Alliance¶
- accept_members: bool¶
- acceptmem: bool¶
- acronym: str¶
- alliance_positions: List[AlliancePosition]¶
- aluminum: Optional[float]¶
- bauxite: Optional[float]¶
- coal: Optional[float]¶
- color: str¶
- date: datetime.datetime¶
- discord_link: str¶
- flag: str¶
- food: Optional[float]¶
- forum_link: str¶
- forumlink: str¶
- gasoline: Optional[float]¶
- id: int¶
- irclink: str¶
- iron: Optional[float]¶
- lead: Optional[float]¶
- money: Optional[float]¶
- munitions: Optional[float]¶
- name: str¶
- oil: Optional[float]¶
- score: float¶
- steel: Optional[float]¶
- tax_brackets: List[TaxBracket]¶
- uranium: Optional[float]¶
- wiki_link: str¶
AlliancePosition¶
Attributes
- accept_applicants
- alliance_id
- change_permissions
- creator_id
- date
- date_modified
- edit_alliance_info
- heir
- id
- last_editor_id
- leader
- manage_announcements
- manage_embargoes
- manage_market_share
- manage_treaties
- member
- name
- officer
- permissions
- position_level
- post_announcements
- promote_self_to_leader
- remove_members
- see_reset_timers
- see_spies
- tax_brackets
- view_bank
- withdraw_bank
- class pnwkit.data.AlliancePosition¶
- accept_applicants: bool¶
- alliance_id: int¶
- change_permissions: bool¶
- creator_id: int¶
- date: datetime.datetime¶
- date_modified: datetime.datetime¶
- edit_alliance_info: bool¶
- heir: bool¶
- id: int¶
- last_editor_id: int¶
- leader: bool¶
- manage_announcements: bool¶
- manage_embargoes: bool¶
- manage_treaties: bool¶
- member: bool¶
- name: str¶
- officer: bool¶
- permissions: int¶
- position_level: int¶
- post_announcements: bool¶
- promote_self_to_leader: bool¶
- remove_members: bool¶
- see_reset_timers: bool¶
- see_spies: bool¶
- tax_brackets: bool¶
- view_bank: bool¶
- withdraw_bank: bool¶
AlliancePositionEnum¶
ApiKeyDetails¶
Attributes
AttackType¶
BBGame¶
BBPlayer¶
BBTeam¶
Bankrec¶
- class pnwkit.data.Bankrec¶
- aluminum: float¶
- banker_id: int¶
- bauxite: float¶
- coal: float¶
- date: datetime.datetime¶
- food: float¶
- gasoline: float¶
- id: int¶
- iron: float¶
- lead: float¶
- money: float¶
- munitions: float¶
- note: str¶
- oil: float¶
- pid: int¶
- receiver_id: int¶
- receiver_type: int¶
- recipient_id: int¶
- recipient_type: int¶
- rid: int¶
- rtype: int¶
- sender_id: int¶
- sender_type: int¶
- sid: int¶
- steel: float¶
- stype: int¶
- tax_id: int¶
- uranium: float¶
Bounty¶
BountyType¶
City¶
Attributes
- airforcebase
- aluminum_refinery
- aluminumrefinery
- bank
- barracks
- bauxite_mine
- bauxitemine
- coal_mine
- coal_power
- coalmine
- coalpower
- date
- drydock
- factory
- farm
- gasrefinery
- hangar
- hospital
- id
- infrastructure
- iron_mine
- ironmine
- land
- lead_mine
- leadmine
- mall
- munitions_factory
- munitionsfactory
- name
- nation
- nation_id
- nuclear_power
- nuclearpower
- nuke_date
- nukedate
- oil_power
- oil_refinery
- oil_well
- oilpower
- oilwell
- police_station
- policestation
- powered
- recycling_center
- recyclingcenter
- shopping_mall
- stadium
- steel_mill
- steelmill
- subway
- supermarket
- uramine
- uranium_mine
- wind_power
- windpower
- class pnwkit.data.City¶
- airforcebase: int¶
- aluminum_refinery: int¶
- aluminumrefinery: int¶
- bank: int¶
- barracks: int¶
- bauxite_mine: int¶
- bauxitemine: int¶
- coal_mine: int¶
- coal_power: int¶
- coalmine: int¶
- coalpower: int¶
- date: datetime.datetime¶
- drydock: int¶
- factory: int¶
- farm: int¶
- gasrefinery: int¶
- hangar: int¶
- hospital: int¶
- id: int¶
- infrastructure: float¶
- iron_mine: int¶
- ironmine: int¶
- land: float¶
- lead_mine: int¶
- leadmine: int¶
- mall: int¶
- munitions_factory: int¶
- munitionsfactory: int¶
- name: str¶
- nation_id: int¶
- nuclear_power: int¶
- nuclearpower: int¶
- nuke_date: Optional[datetime.datetime]¶
- nukedate: Optional[datetime.datetime]¶
- oil_power: int¶
- oil_refinery: int¶
- oil_well: int¶
- oilpower: int¶
- oilwell: int¶
- police_station: int¶
- policestation: int¶
- powered: bool¶
- recycling_center: int¶
- recyclingcenter: int¶
- shopping_mall: int¶
- stadium: int¶
- steel_mill: int¶
- steelmill: int¶
- subway: int¶
- supermarket: int¶
- uramine: int¶
- uranium_mine: int¶
- wind_power: int¶
- windpower: int¶
Color¶
Attributes
DomesticPolicy¶
GameInfo¶
Nation¶
Attributes
- adv_city_planning
- adv_engineering_corps
- advanced_engineering_corps
- advanced_urban_planning
- aircraft
- aircraft_casualties
- aircraft_kills
- alliance
- alliance_id
- alliance_position
- alliance_position_id
- alliance_position_info
- alliance_seniority
- aluminum
- arable_land_agency
- arms_stockpile
- armss
- baseball_team
- bauxite
- bauxite_works
- bauxitew
- beige_turns
- beigeturns
- bounties
- center_for_civil_engineering
- central_intelligence_agency
- cfce
- cia
- cities
- city_planning
- clinical_research_center
- coal
- color
- continent
- date
- defensive_wars
- discord
- domestic_policy
- dompolicy
- egr
- emergency_gasoline_reserve
- espionage_available
- flag
- food
- gasoline
- government_support_agency
- green_tech
- green_technologies
- gross_domestic_product
- gross_national_income
- id
- international_trade_center
- iron
- iron_dome
- iron_works
- irond
- ironw
- itc
- last_active
- lead
- leader_name
- mass_irrigation
- massirr
- missile_casualties
- missile_kills
- missile_launch_pad
- missiles
- mlp
- money
- money_looted
- moon_landing
- munitions
- nation_name
- nrf
- nuclear_research_facility
- nuke_casualties
- nuke_kills
- nukes
- num_cities
- offensive_wars
- oil
- pirate_economy
- population
- project_bits
- projects
- propaganda_bureau
- propb
- recycling_initiative
- research_and_development_center
- resource_production_center
- score
- ship_casualties
- ship_kills
- ships
- soldier_casualties
- soldier_kills
- soldiers
- space_program
- specialized_police_training
- specialized_police_training_program
- spies
- spy_casualties
- spy_kills
- spy_satellite
- steel
- tank_casualties
- tank_kills
- tanks
- tax_id
- taxrecs
- telecom_satellite
- telecommunications_satellite
- treasures
- turns_since_last_city
- turns_since_last_project
- uap
- update_tz
- uranium
- uranium_enrichment_program
- urban_planning
- vacation_mode_turns
- vds
- vital_defense_system
- vmode
- war_policy
- warpolicy
- wars
- wars_lost
- wars_won
- class pnwkit.data.Nation¶
- adv_city_planning: bool¶
- adv_engineering_corps: bool¶
- advanced_engineering_corps: bool¶
- advanced_urban_planning: bool¶
- aircraft: int¶
- aircraft_casualties: int¶
- aircraft_kills: int¶
- alliance_id: int¶
- alliance_position: AlliancePositionEnum¶
- alliance_position_id: int¶
- alliance_position_info: AlliancePosition¶
- alliance_seniority: int¶
- aluminum: Optional[float]¶
- arable_land_agency: bool¶
- arms_stockpile: bool¶
- armss: bool¶
- bauxite: Optional[float]¶
- bauxite_works: bool¶
- bauxitew: bool¶
- beige_turns: int¶
- beigeturns: int¶
- center_for_civil_engineering: bool¶
- central_intelligence_agency: bool¶
- cfce: bool¶
- cia: bool¶
- city_planning: bool¶
- clinical_research_center: bool¶
- coal: Optional[float]¶
- color: str¶
- continent: str¶
- date: datetime.datetime¶
- discord: str¶
- domestic_policy: DomesticPolicy¶
- dompolicy: str¶
- egr: bool¶
- emergency_gasoline_reserve: bool¶
- espionage_available: bool¶
- flag: str¶
- food: Optional[float]¶
- gasoline: Optional[float]¶
- government_support_agency: bool¶
- green_tech: bool¶
- green_technologies: bool¶
- gross_domestic_product: float¶
- gross_national_income: float¶
- id: int¶
- international_trade_center: bool¶
- iron: Optional[float]¶
- iron_dome: bool¶
- iron_works: bool¶
- irond: bool¶
- ironw: bool¶
- itc: bool¶
- last_active: datetime.datetime¶
- lead: Optional[float]¶
- leader_name: str¶
- mass_irrigation: bool¶
- massirr: bool¶
- missile_casualties: int¶
- missile_kills: int¶
- missile_launch_pad: bool¶
- missiles: int¶
- mlp: bool¶
- money: Optional[float]¶
- money_looted: float¶
- moon_landing: bool¶
- munitions: Optional[float]¶
- nation_name: str¶
- nrf: bool¶
- nuclear_research_facility: bool¶
- nuke_casualties: int¶
- nuke_kills: int¶
- nukes: int¶
- num_cities: int¶
- oil: Optional[float]¶
- pirate_economy: bool¶
- population: int¶
- project_bits: int¶
- projects: int¶
- propaganda_bureau: bool¶
- propb: bool¶
- recycling_initiative: bool¶
- research_and_development_center: bool¶
- resource_production_center: bool¶
- score: float¶
- ship_casualties: int¶
- ship_kills: int¶
- ships: int¶
- soldier_casualties: int¶
- soldier_kills: int¶
- soldiers: int¶
- space_program: bool¶
- specialized_police_training: bool¶
- specialized_police_training_program: bool¶
- spies: Optional[int]¶
- spy_casualties: int¶
- spy_kills: int¶
- spy_satellite: bool¶
- steel: Optional[float]¶
- tank_casualties: int¶
- tank_kills: int¶
- tanks: int¶
- tax_id: int¶
- telecom_satellite: bool¶
- telecommunications_satellite: bool¶
- turns_since_last_city: int¶
- turns_since_last_project: int¶
- uap: bool¶
- update_tz: Optional[float]¶
- uranium: Optional[float]¶
- uranium_enrichment_program: bool¶
- urban_planning: bool¶
- vacation_mode_turns: int¶
- vds: bool¶
- vital_defense_system: bool¶
- vmode: int¶
- warpolicy: str¶
- wars_lost: int¶
- wars_won: int¶
PaginatorInfo¶
Attributes
Radiation¶
Attributes
TaxBracket¶
Trade¶
TradeType¶
Tradeprice¶
Treasure¶
Treaty¶
War¶
Attributes
- air_superiority
- airsuperiority
- att_aircraft_killed
- att_alliance_id
- att_alum_used
- att_fortify
- att_gas_used
- att_id
- att_infra_destroyed
- att_infra_destroyed_value
- att_missiles_used
- att_money_looted
- att_mun_used
- att_nukes_used
- att_peace
- att_points
- att_resistance
- att_ships_killed
- att_soldiers_killed
- att_steel_used
- att_tanks_killed
- attacker
- attacks
- attid
- attpeace
- attpoints
- date
- def_aircraft_killed
- def_alliance_id
- def_alum_used
- def_fortify
- def_gas_used
- def_id
- def_infra_destroyed
- def_infra_destroyed_value
- def_missiles_used
- def_money_looted
- def_mun_used
- def_nukes_used
- def_peace
- def_points
- def_resistance
- def_ships_killed
- def_soldiers_killed
- def_steel_used
- def_tanks_killed
- defender
- defid
- defpeace
- defpoints
- ground_control
- groundcontrol
- id
- naval_blockade
- navalblockade
- reason
- turns_left
- turnsleft
- war_type
- winner
- winner_id
- class pnwkit.data.War¶
- air_superiority: int¶
- airsuperiority: int¶
- att_aircraft_killed: int¶
- att_alliance_id: int¶
- att_alum_used: int¶
- att_fortify: bool¶
- att_gas_used: float¶
- att_id: int¶
- att_infra_destroyed: float¶
- att_infra_destroyed_value: float¶
- att_missiles_used: int¶
- att_money_looted: float¶
- att_mun_used: float¶
- att_nukes_used: int¶
- att_peace: bool¶
- att_points: int¶
- att_resistance: int¶
- att_ships_killed: int¶
- att_soldiers_killed: int¶
- att_steel_used: int¶
- att_tanks_killed: int¶
- attid: int¶
- attpeace: bool¶
- attpoints: int¶
- date: datetime.datetime¶
- def_aircraft_killed: int¶
- def_alliance_id: int¶
- def_alum_used: int¶
- def_fortify: bool¶
- def_gas_used: float¶
- def_id: int¶
- def_infra_destroyed: float¶
- def_infra_destroyed_value: float¶
- def_missiles_used: int¶
- def_money_looted: float¶
- def_mun_used: float¶
- def_nukes_used: int¶
- def_peace: bool¶
- def_points: int¶
- def_resistance: int¶
- def_ships_killed: int¶
- def_soldiers_killed: int¶
- def_steel_used: int¶
- def_tanks_killed: int¶
- defid: int¶
- defpeace: bool¶
- defpoints: int¶
- ground_control: int¶
- groundcontrol: int¶
- id: int¶
- reason: str¶
- turns_left: int¶
- turnsleft: int¶
- winner: int¶
- winner_id: int¶
WarAttack¶
Attributes
- aircraft_killed_by_tanks
- att_gas_used
- att_id
- att_mun_used
- attacker
- attcas1
- attcas2
- attid
- city_id
- city_infra_before
- cityid
- date
- def_gas_used
- def_id
- def_mun_used
- defcas1
- defcas2
- defender
- defid
- id
- improvements_lost
- improvementslost
- infra_destroyed
- infra_destroyed_value
- infradestroyed
- loot_info
- money_stolen
- moneystolen
- resistance_eliminated
- success
- type
- victor
- war
- war_id
- warid
- class pnwkit.data.WarAttack¶
- aircraft_killed_by_tanks: int¶
- att_gas_used: float¶
- att_id: int¶
- att_mun_used: float¶
- attcas1: int¶
- attcas2: int¶
- attid: int¶
- city_id: int¶
- city_infra_before: float¶
- cityid: int¶
- date: datetime.datetime¶
- def_gas_used: float¶
- def_id: int¶
- def_mun_used: float¶
- defcas1: int¶
- defcas2: int¶
- defid: int¶
- id: int¶
- improvements_lost: int¶
- improvementslost: int¶
- infra_destroyed: float¶
- infra_destroyed_value: float¶
- infradestroyed: float¶
- loot_info: str¶
- money_stolen: float¶
- moneystolen: float¶
- resistance_eliminated: int¶
- success: int¶
- type: AttackType¶
- victor: int¶
- war_id: int¶
- warid: int¶