Skip to main content

Epochly - Transparent performance optimization for Python applications

Project description

Epochly - Transparent Performance Optimization

PyPI version Python 3.8+

Significant performance improvement with zero code changes!

Epochly provides transparent performance optimization for Python applications through a progressive enhancement system.

🚀 Installation

pip install epochly

That's it! Epochly is now ready to accelerate your Python code.

⚡ Quick Start

Method 1: Automatic Optimization (Recommended)

import epochly  # Just this import provides optimization!

# Your existing code runs faster automatically
import numpy as np

def matrix_computation():
    a = np.random.rand(1000, 1000)
    b = np.random.rand(1000, 1000)
    return np.dot(a, b)

result = matrix_computation()  # Automatically optimized!

Method 2: Selective Optimization

from epochly import optimize

@optimize
def slow_function(data):
    # This function will be optimized
    return complex_computation(data)

Method 3: Context Manager

from epochly import optimize_context

with optimize_context():
    # All code in this block is optimized
    result = heavy_computation()

✨ Key Features

  • Zero Configuration: Just import and go - Epochly automatically detects and optimizes your workloads
  • Progressive Enhancement: Four optimization levels from monitoring to full sub-interpreter parallelization
  • 100% Compatibility: Works with existing Python code, libraries, and frameworks
  • Production Ready: Controlled deployment with emergency controls and monitoring
  • Transparent Activation: Automatic activation via sitecustomize.py for seamless integration

📊 Performance Results

Epochly provides transparent optimization through 5 progressive enhancement levels:

  • Level 0: Monitoring and analysis
  • Level 1: Basic threading optimization
  • Level 2: JIT compilation
  • Level 3: Full optimization with sub-interpreters and shared memory
  • Level 4: GPU acceleration (when available)

Average performance improvement varies by workload type.

🎯 Use Cases

Perfect for:

  • Scientific computing and data analysis
  • Machine learning preprocessing
  • Financial modeling
  • Image and signal processing
  • Any CPU-intensive Python code

🔧 Advanced Configuration

from epochly import configure, EnhancementLevel

# Set optimization level
configure(level=EnhancementLevel.LEVEL_3_FULL)

# Enable monitoring
configure(monitor_performance=True)

# Control worker threads
configure(max_workers=8)

📖 Documentation

For comprehensive documentation, visit https://epochly.com/docs

🏃 Demo

Try our performance demo:

# After installation
python -m epochly.demos.benchmark

💻 System Requirements

  • Python 3.8-3.13
  • Linux, macOS, or Windows
  • No GPU required (CPU optimization)

🚀 Deployment

Transparent Activation

Epochly can be transparently activated for all Python processes:

# Install sitecustomize.py for automatic activation
epochly-deploy install

# Selective activation by environment
export EPOCHLY_ENABLED=1
python your_app.py

# Configuration file control
echo "enabled: true" > ~/.epochly/config.yml

Production Deployment

# Controlled rollout
epochly-deploy enable --percentage 10 --monitor-only

# Emergency disable
epochly-deploy disable --emergency

# Monitor deployment
epochly-deploy status --detailed

📊 Monitoring

Epochly provides comprehensive monitoring and observability:

import epochly

# Get performance metrics
metrics = epochly.get_metrics()
print(f"Speedup: {metrics.speedup:.2f}x")
print(f"Memory usage: {metrics.memory_mb:.1f} MB")

# Export Prometheus metrics
epochly.export_metrics(port=8080)

🔒 Security

Epochly implements comprehensive security measures:

  • Memory isolation between interpreters
  • Access control for shared memory
  • Audit logging for all operations
  • Side-channel attack mitigation
  • Secure deployment controls

📚 Documentation

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

# Development setup
git clone https://github.com/epochly-python/epochly.git
cd epochly
pip install -e .[dev]
pre-commit install

# Run tests
pytest

# Run benchmarks
pytest tests/performance/ --benchmark-only

📄 License

Epochly is proprietary commercial software licensed under the Epochly Software License Agreement (ESLA). See LICENSE for the complete license terms.

🙏 Acknowledgments

Epochly builds upon the excellent work of:

  • Python core developers for sub-interpreter support
  • NumPy and SciPy communities for numerical computing foundations
  • PyPy team for JIT compilation insights
  • Numba developers for compilation techniques

Epochly - Making Python Fast, Transparently 🐍⚡

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

epochly-0.3.0-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

epochly-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

epochly-0.3.0-cp313-cp313-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

epochly-0.3.0-cp312-cp312-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.12Windows x86-64

epochly-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

epochly-0.3.0-cp312-cp312-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

epochly-0.3.0-cp311-cp311-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.11Windows x86-64

epochly-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

epochly-0.3.0-cp311-cp311-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

epochly-0.3.0-cp310-cp310-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.10Windows x86-64

epochly-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

epochly-0.3.0-cp310-cp310-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

epochly-0.3.0-cp39-cp39-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.9Windows x86-64

epochly-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

epochly-0.3.0-cp39-cp39-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.9macOS 15.0+ ARM64

File details

Details for the file epochly-0.3.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for epochly-0.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bd873ac3fd3d95fdf6dbcfd19f11e3dc6177a746bc5a6866ecb9af964fd45b70
MD5 72101e439b923937e6dcbf4985f041e6
BLAKE2b-256 f2aab6785fdafeaa1dd11589b3c0d5ffeb987d5aa22070e726c6e11731314794

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp313-cp313-win_amd64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9092dbbc65e9d96357d4cffb4ea440f7f5c287bc6388bacb6f1f3cf17ed3a17f
MD5 955a197a442e28efb606dea3355eb526
BLAKE2b-256 39e11dc0c8738710a520ef21dfa13b9315c9e15e6151393f19b871f7b5b60a54

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b6c8f6f8a2dbc937c55013646b854fcc4ea2271c210bdf32e19427dea3ab1359
MD5 4855896fd9c14996b94d114d64a2c781
BLAKE2b-256 af9595de2e90baf8a2475efee1fd062f60ff116f88f9968174f221e15c9a9090

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp313-cp313-macosx_15_0_arm64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for epochly-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 99604afb6c04a51b96de8740175b452c471e73da8597847133380f059d0729e8
MD5 6222d7978ae2066b1d9803c72022ad09
BLAKE2b-256 4ae992dcf3c032028f86e9a90e21ed45d72950c733df312b50cc435ed00caa0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp312-cp312-win_amd64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cfbabd90968d6d17a52c59e80aacaa5ff095353240dd8ce6a4ce0cbef5e60b01
MD5 20056e6e2fe7a29c36ac50ae9a4043ff
BLAKE2b-256 414fcfc4f6a305943faf2847eb6e23e32fd58a50cea112b9cd02409299e725af

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 afedce635e9afd858d115a4e098e2212a6df4e90d0edf13c4d2b709946544fa5
MD5 e75b7c1133adf321f379b2cce93a80ca
BLAKE2b-256 83811a4ad59a58c6ed3e2d1718b6d1f6752d6606d79951fb6f74a3b4ce528b65

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp312-cp312-macosx_15_0_arm64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for epochly-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 af59ae513c97a2521874eb7bdf60bcd92908d4bda1002ac447a5c4b186d6762d
MD5 79a5cdaaf6e83137120818d41c33e81a
BLAKE2b-256 ea0b837ec51db37d86f6b1b82f8facfe5ff0c58e1e86369f475ab7941113c1bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp311-cp311-win_amd64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9a870511b237f267c829504cf6c97987448acf3dfb5c2b233e4415bb13c43e79
MD5 d77bcb62887bf94179bfebdcfdf598fc
BLAKE2b-256 427c82a01158f92f4401e93c2f9994153924f9fc6f884400987484fb102712e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 af54bb8da8640bdfdc832435356ba7567d31712c050d7cb11930630601668fca
MD5 d66ec120750a3ba09adecc1814f40c94
BLAKE2b-256 a82a47fe16d813467715ce3f646a717af439a5b57b07cee9b46afd3978718535

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp311-cp311-macosx_15_0_arm64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for epochly-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 68faee40f65653cd3f9bdee6eeb6beb238d261fd1fdffdab8b046a67062d609d
MD5 d29f141f7f93413ca9fbe20121ebf78f
BLAKE2b-256 434b5e39413f2478eb28cb73eba57ce27d40576e91c762984bd6df74d220a228

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp310-cp310-win_amd64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f0cc752183f981b1d0549af8415787b11e23195a49452d1fabb2d78cbeed9d50
MD5 e2336af31c9ce7b7da3e2ac687a2c263
BLAKE2b-256 8be02d7d9fc70b37eaea7be9e841fe397fbdd9742318dea880bc7faae797387a

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 525420d44d44e116a790412ac353afa3947cf335d83084c87aefcdf72560320d
MD5 1aa3ce0ef8624a63703598f3e08793ed
BLAKE2b-256 d7ed8c8467cfa45d9a4bde0d6fdac04d6a9bab1590b807f27b13b4e557ac6c2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp310-cp310-macosx_15_0_arm64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for epochly-0.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7b2585d0e79aa737493d15223c4081ec4fd14e76318029aafdde638997fe8f83
MD5 dff5382bc41c7d5eab2ae5a871e0fa86
BLAKE2b-256 ae9b254ebc664ffb93762fdc74806e2b663eefc0625f3dccf141454db56298e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp39-cp39-win_amd64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 88abd13605ba01c9ac62383e55c7309ba4c0d5fbae4ef66b3765ae6e803e98ef
MD5 cbac7cf6195b56bc0843439afe539947
BLAKE2b-256 6048106186ee2ba9070e63202465b944f569372fe8d8515273ce5e9808934eb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epochly-0.3.0-cp39-cp39-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.0-cp39-cp39-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 79d0de59281665d67f7865f412e8cad2375ef4ad34c015dcb139c021410664cd
MD5 3c37c6029a129013150aceb4237a68bc
BLAKE2b-256 e03b29c334e7ff4e481fcb20b588d81fcf45769d99e7d194370154d71b4f939f

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.0-cp39-cp39-macosx_15_0_arm64.whl:

Publisher: publish-pypi.yml on chandlercvaughn/epochly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page