Module: epochly
Top-level module reference for the Epochly Python optimizer.
Module Import
import epochly
Exported Functions
| Function | Description |
|---|---|
configure(**kwargs) | Configure Epochly settings |
get_status() | Get current optimization status |
set_level(level) | Set enhancement level (0-4) |
get_level() | Get current enhancement level |
get_config() | Get current configuration |
is_enabled() | Check if Epochly is enabled |
get_metrics() | Get performance metrics |
get_license_info() | Get license information |
check_feature(feature) | Check if feature is available |
Exported Decorators
| Decorator | Description |
|---|---|
@optimize | Main optimization decorator |
@performance_monitor | Add performance monitoring |
@jit_compile | Force JIT compilation |
@full_optimize | Apply maximum optimization |
@threading_optimize | Apply threading optimization |
Exported Context Managers
| Context Manager | Description |
|---|---|
optimize_context() | Optimization context |
monitoring_context() | Performance monitoring context |
jit_context() | JIT compilation context |
threading_context() | Threading optimization context |
benchmark_context() | Benchmarking context |
Exported Classes
| Class | Description |
|---|---|
EnhancementLevel | Enum for optimization levels |
EpochlyError | Base exception class |
EpochlyConfigError | Configuration error |
EpochlyCompatibilityError | Compatibility error |
Quick Reference
import epochly# Configureepochly.configure(level=3, telemetry=True)# Check statusstatus = epochly.get_status()print(f"Level: {status['enhancement_level']}")# Use decorator@epochly.optimizedef my_function(data):return process(data)# Use context managerwith epochly.optimize_context(level=2):result = compute(data)