ini_load([files, sections, keys, defaults, ...])
|
-
py::dict ini::ini_load(const std::map<std::string, std::vector<std::string>> &files, const std::map<std::string, std::vector<std::string>> §ions, const std::map<std::string, std::vector<std::string>> &keys, const std::map<std::string, std::vector<py::object>> &defaults, const bool &eval_env)
This is a simple (lightweight) C++ function to parse ini file into python
- Parameter:
files -- vector of string with files to read
sections -- vector of string with included sections
keys -- vector of string with included keys
defaults -- vector of python objects for default values
- Rückgabe:
environment(s) with configs
|
eval_type(value)
|
-
py::object string_operations::eval_type(std::string value)
This is a simple C++ function to cast strings into python objects with specific type
- Parameter:
value -- string to cast
- Rückgabe:
python object (none, boolean, int, time, date, datetime, datetime_ms, ip_address)
|
eval_datetime(value)
|
-
py::object string_operations::eval_datetime(const std::string &value)
This is a simple C++ function to cast strings into python datetime object
Bemerkung
This function returns the same value as string when no datetime type is detected
- Parameter:
value -- string to cast
- Rückgabe:
python object (time, date, datetime, datetime_ms)
|
eval_csv(value[, disallowed_header_chars])
|
-
std::map<std::string, py::object> string_operations::eval_csv(const std::string &input, const char *extra_disallowed_header_chars)
|
eval_json(arg0)
|
-
py::dict string_operations::generateAvroSchemaPy(const std::string &jsonChunk)
|
extract_between(data, start, end)
|
This is a simple C++ function to extract values from data between two fixed values
- Parameter:
data -- string / bytes to extract from
start -- string / bytes for start-pattern
end -- string / bytes for end-pattern
- Rückgabe:
list with extracted values
|
apply_match(vec, start)
|
-
py::object string_operations::apply_match(const std::vector<std::string> &vec, std::string match)
This is a simple C++ function to match a vector with values
- Parameter:
vec -- vector of values
match -- value to match
- Rückgabe:
list of boolean
|
generate_config_group_module(source_module)
|
Module with function to generate automatically config group module. |
yaml_load(files[, sections, keys, defaults, ...])
|
Yaml Wrapper for reading yaml files in a generic way. |
attach_log([obj, log_level, default_level, ...])
|
Function decorator to attach Logger to functions. |
setup_logging([default_path, default_level, ...])
|
Setup logging configuration. |
patch_module(module)
|
Method to overwrite module with all submodules in a generic way. |