finstmt.config_manage package¶
Submodules¶
finstmt.config_manage.base module¶
- class finstmt.config_manage.base.ConfigManagerBase[source]¶
Bases:
object
- get(item_key)[source]¶
For internal use, get the config as well as the key of the financial statement type it belongs to
- Return type:
- get_value(item_key, config_key)[source]¶
Get a particular configuration for a particular item
- Return type:
- property items: List[ItemConfig]¶
All the configuration items
- set(item_key, config)[source]¶
Set entire configuration for item by key. Needs to handle setting the value in each individual data config manager
- Return type:
finstmt.config_manage.data module¶
- class finstmt.config_manage.data.DataConfigManager(configs)[source]¶
Bases:
ConfigManagerBase
Used to manage the config for an individual time period of an individual statement
- __init__(configs)¶
- property config_dict: Dict[str, ItemConfig]¶
-
configs:
List
[ItemConfig
]¶
- property items: List[ItemConfig]¶
All the configuration items
finstmt.config_manage.global_ module¶
finstmt.config_manage.statement module¶
- class finstmt.config_manage.statement.StatementConfigManager(config_managers)[source]¶
Bases:
ConfigManagerBase
Used for entire single financial statement, e.g. income statement or balance sheet, with multiple dates in the statement.
- __init__(config_managers)¶
-
config_managers:
Dict
[Timestamp
,DataConfigManager
]¶
- get(item_key)[source]¶
For internal use, get the config as well as the key of the financial statement type it belongs to
- Return type:
- property items: List[ItemConfig]¶
All the configuration items
finstmt.config_manage.statements module¶
- class finstmt.config_manage.statements.StatementsConfigManager(config_managers)[source]¶
Bases:
ConfigManagerBase
Main configuration interface. Handles all of the configuration for a set of financial statements.
- __init__(config_managers)¶
-
config_managers:
Dict
[str
,StatementConfigManager
]¶
- property items: List[ItemConfig]¶
All the configuration items
- property sympy_namespace: Dict[str, IndexedBase]¶
The sympy namespace containing all the variable definitions