utils
utils
¶
Utility modules.
Config
¶
Configuration manager for FPLX.
| PARAMETER | DESCRIPTION |
|---|---|
config
|
Configuration dictionary
TYPE:
|
Source code in fplx/utils/config.py
get
¶
Get configuration value.
| PARAMETER | DESCRIPTION |
|---|---|
key
|
Configuration key (supports nested keys with '.')
TYPE:
|
default
|
Default value if key not found
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Any
|
Configuration value |
Source code in fplx/utils/config.py
set
¶
Set configuration value.
| PARAMETER | DESCRIPTION |
|---|---|
key
|
Configuration key (supports nested keys with '.')
TYPE:
|
value
|
Value to set
TYPE:
|
Source code in fplx/utils/config.py
load_from_file
¶
Load configuration from JSON file.
| PARAMETER | DESCRIPTION |
|---|---|
filepath
|
Path to configuration file
TYPE:
|
Source code in fplx/utils/config.py
save_to_file
¶
Save configuration to JSON file.
| PARAMETER | DESCRIPTION |
|---|---|
filepath
|
Path to save configuration
TYPE:
|
to_dict
¶
validate_data
¶
Validate that dataframe has required columns.
| PARAMETER | DESCRIPTION |
|---|---|
df
|
Dataframe to validate
TYPE:
|
required_columns
|
Required column names
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if valid |