Source: factory.core/ObjApi.py
Provides an extended class of ObjData.ObjData for managing database interactions and data structure creation,
with additional functionalities for name cleaning, dictionary handling, table base generation,
and complete dataset construction through table expansion and bloom operations.
This class is designed for transforming input data into structured datasets,
...
| Method | Signature | Description |
|---|---|---|
| debug | debug(*args, **kwargs) -> None |
Optimized debug logging - only evaluates arguments if DO_DEBUG is True. |
| info | info(*args, **kwargs) -> None |
Optimized info logging - always executes but captured for potential filtering. |
| benchmark_start_workflow | benchmark_start_workflow(workflow_code: str = '') -> None |
Mark the start of workflow execution for benchmarking. |
| benchmark_end_workflow | benchmark_end_workflow(workflow_code: str = '') -> JsonDict |
Mark the end of workflow execution and return performance metrics. |
| benchmark_operation | benchmark_operation(operation_name: str) |
Context manager for benchmarking specific operations. |
| display_heartbeat_message | display_heartbeat_message(extra_text: str = '') |
Displays a random heartbeat message from the ObjApi.yaml file. |
| get_memory_usage | get_memory_usage() -> str |
|
| get_bloom_table_base | get_bloom_table_base() |
|
| clean_name | clean_name(s) |
|
| clean_dict_keys | clean_dict_keys(r) |
|
| patch_param | patch_param(text: str) -> str |
|
| BloomSlice | BloomSlice(r, ret, variables = '', type = '') |
|
| ProperCaseFilter | ProperCaseFilter(TableName, Level) |
|
| FoldBaseName | FoldBaseName(TableBase, Level = 10) |
|
| bloom_table_data_structure | bloom_table_data_structure(R, table_base: str = '', bloom_guid: str = '', base_guid: str = '', row_guid: str = '', Key: str = '', level: int = 0, row: int = 0, base_guid_in: str = '', max_level: int = 0) |
Build table will take a set of dictionaries and lists and turn them in a complete dataset |
| drop_table_data_structure | drop_table_data_structure(table_base: str) -> None |
|
| list_and_kill_threads | list_and_kill_threads(module: str) -> None |
|
| ExtractRules | ExtractRules(BaseTable = '', Code = '', Type = '', Guid = '', GuidName = 'guid') |
|
| validate_rules_patch | validate_rules_patch(value, patch_values) |
|
| validate_rules | validate_rules(webhook_code = '', form_name = '', patch_values = dict()) |
| Method | Signature | Description |
|---|---|---|
| openapi_type | openapi_type(input_type) |
|
| export_parameters | export_parameters(webhook: str, package: str, direction: str = 'in') |
Sample yaml : |
| export_openapi | export_openapi(api_code: str) |
Processes a JSON or YAML file and unpacks its data into a relational table structure.
Enforce the minimum Python version and warn if below the target version.