Foundation
Overview
Library overview, architecture, installation, and usage patterns.
UniCoreFW
A Universal Core Utility Library that provides a comprehensive suite of utility functions for Python applications. The library is designed with the principles of universality, security, and performance in mind, making it suitable for both small applications and enterprise-level systems.
Key Features
- Security-First Design
- Comprehensive Utility Functions
- Functional Programming Support
- Method Chaining with UniCoreFWWrapper
- Type Checking
Installation
pip install unicorefw
Basic Usage
result = (_([1, 2, 3, 4, 5])
.filter(lambda x: x > 1)
.map(lambda x: x * 2)
.value())
Expected output: [4, 6, 8, 10]
Main Classes
| Class | Description | Usage |
|---|---|---|
| UniCoreFW | Primary class providing static utility methods | UniCoreFW.method_name(arguments) |
| UniCoreFWWrapper | Wrapper class that enables method chaining | UniCoreFWWrapper(collection).method1().method2().value() |
| ## Security Classes | ||
| Class | Description | |
| --- | --- | |
| SecurityError | Base exception for security-related errors | |
| InputValidationError | Raised when input validation fails | |
| AuthorizationError | Raised when authorization checks fail | |
| SanitizationError | Raised when data sanitization fails | |
| RateLimiter | Rate limiting implementation to prevent DoS attacks | |
| AuditLogger | Secure audit logging implementation |