API Documentation
True-Core is a comprehensive Python utility library providing advanced functionality for enum management, type validation, time handling, regular expressions, and file operations.
Core Components
Enum Management
The enum management components provide sophisticated tools for handling enums:
true.enum_registry: Advanced enum combination and registry managementtrue.enums_toolkits: Specialized enum classes and metadata support
File System Operations
The file system components offer comprehensive file handling capabilities:
true.collections: Advanced file system operations and recycling bin managementFile creation and manipulation utilities
Cross-platform compatibility
Secure file deletion
Time Management
Time handling utilities with extensive features:
true.time: Advanced timezone support and time manipulationEvent scheduling and management
Time formatting and conversion
Performance timing utilities
Regular Expressions
Pre-compiled regex patterns for common validation tasks:
true.re: Comprehensive pattern libraryUsername and password validation
Email and URL validation
Phone number and credit card validation
Date format validation
Type System
Advanced type validation and handling:
true.types: Version handling (SemVer, CalVer)Numeric types (BigInt, BigDecimal)
UUID/ULID support
Serialization utilities
Exception Handling
Specialized exceptions for better error management:
true.exceptions: Custom exception hierarchyType-specific error handling
Operation-specific exceptions
Validation error handling