babylon.data.schema
SQLite schema for external reality data.
These tables store ground-truth data from Census, FRED, BLS, etc. This is the material base that constrains the simulation.
- Tables:
- Geographic Reference:
states: US state FIPS codes and names
metro_areas: Metropolitan Statistical Areas (CBSA codes)
- Census Data:
census_population: State-level population and class proxies
census_metro: Metro-level demographics
- Economic Data:
fred_indicators: Federal Reserve economic indicators
- Labor Data:
union_membership: Union membership by state
- Resource Data:
strategic_resources: Strategic resource stockpiles and production
Classes
|
Metro-level demographics from Census ACS. |
|
State-level population and class proxies from Census ACS. |
|
Federal Reserve economic indicators. |
|
Metropolitan Statistical Areas. |
|
US States - reference table. |
|
Strategic resource stockpiles and production. |
|
Union membership by state from BLS. |
- class babylon.data.schema.State(**kwargs)[source]
Bases:
BaseUS States - reference table.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class babylon.data.schema.MetroArea(**kwargs)[source]
Bases:
BaseMetropolitan Statistical Areas.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class babylon.data.schema.CensusPopulation(**kwargs)[source]
Bases:
BaseState-level population and class proxies from Census ACS.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class babylon.data.schema.CensusMetro(**kwargs)[source]
Bases:
BaseMetro-level demographics from Census ACS.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class babylon.data.schema.FredIndicator(**kwargs)[source]
Bases:
BaseFederal Reserve economic indicators.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class babylon.data.schema.UnionMembership(**kwargs)[source]
Bases:
BaseUnion membership by state from BLS.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- class babylon.data.schema.StrategicResource(**kwargs)[source]
Bases:
BaseStrategic resource stockpiles and production.
- __init__(**kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.