askrobots / dbbasic-object-primitive
Public
Python functions as REST objects, with clustering, load balancing and state replication; no containers or orchestration.
__init__.py · 694 bytes · 28 lines
| 1 | """ |
| 2 | Utility functions for the Object Primitive System. |
| 3 | |
| 4 | This module contains helper functions used throughout the system: |
| 5 | - Logging (structured logging) |
| 6 | - Validation (input validation) |
| 7 | - Serialization (JSON, TSV, etc.) |
| 8 | - Hashing (content addressing) |
| 9 | - Time handling (UTC, ISO 8601) |
| 10 | - Path handling (safe path operations) |
| 11 | |
| 12 | Philosophy: |
| 13 | Utils are the boring but essential glue code. |
| 14 | They should be well-tested, simple, and reliable. |
| 15 | |
| 16 | No clever code here - just solid utilities. |
| 17 | """ |
| 18 | |
| 19 | __all__ = [ |
| 20 | # To be implemented as needed |
| 21 | # "get_logger", |
| 22 | # "validate_input", |
| 23 | # "serialize_json", |
| 24 | # "serialize_tsv", |
| 25 | # "hash_content", |
| 26 | # "utc_now", |
| 27 | # "safe_path_join", |
| 28 | ] |