Skip to main content

Epochly - Transparent performance optimization for Python applications

Project description

Epochly - Transparent Performance Optimization

PyPI version Python 3.9+

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.9-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.28-cp313-cp313-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.13Windows x86-64

epochly-0.3.28-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.28-cp313-cp313-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

epochly-0.3.28-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.28-cp312-cp312-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

epochly-0.3.28-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.28-cp311-cp311-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

epochly-0.3.28-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.28-cp310-cp310-macosx_15_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

epochly-0.3.28-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.28-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.28-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.28-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.28-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8a2972f72562490314b075a227dfe7ab5852250f15594a2bd92064ae5bae1f4a
MD5 c71d42ad758e91b442af1aa6fdcf2634
BLAKE2b-256 140f7326df02249d5c469cb0925dee59617ee77a7d14cef87e60774d37906aea

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0bb74002bcdbb2e6758b9da27ca130024c86e858794b2665d8688ea5119c45eb
MD5 720be0ba3c1643e7adf590e84db39e7f
BLAKE2b-256 7998c0d10cd679cebf7f3463bcb692f5579c3663524aac20dfb71d5366726a69

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3720534814d24e34520ba92d4f817ad0074fe3d17ad0c0d7e0b3e3d6d76afde3
MD5 17d9ad6328e3c2b06ae2326d7580311f
BLAKE2b-256 4db0f589b746c34971c87201c6f1018e6c81d3e0f226792ad23aec4f36ae4e66

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.28-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.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bbc3bd7c38123d85ed0b6bfb3b9e3fabed42eef92c1414b4da3a919f44dd41db
MD5 81f39adfce11976e78db2127d0c4ad39
BLAKE2b-256 0a8d2b416b8070067a326d3203d55566c3ece660f583a79afbcf4da4239680cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c591134cb60aec14a09feb0fe1b64e816c82e03acdbd397ac129a2bb591a46f1
MD5 d10c06a95325af3da84916c66137b282
BLAKE2b-256 c984f9f25647e2966c6d4fdc44839d1ed719453a06ac3ee499746715418da90a

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6edd21cee103b47a28c598e170ce7535eddb4f631c5bf00f0fcff086df2c8c9f
MD5 2f014fdad36e4ae369eb22bc4ad893c7
BLAKE2b-256 a4bcff2542d5d9193bea87f44d293c016d6ea1c1d5649abe0f065991532dfc46

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.28-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.28-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 82f1a46a1e35fef584e2b916c082bbbf19dba3f71f4df9d4ec08ff97f9c5158d
MD5 e6b407f98b8b67998e407bd25ddab6f0
BLAKE2b-256 490cfa71ff1c5e90572b97b45d7b2320605ba595a77530ff243f6b632e40459b

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2a31e162d92a970f27eee131f101d5c119fe1d296cd76ceca3295fdf30eb7045
MD5 bd1a594831b880e79c5f76b1c2c84a5e
BLAKE2b-256 0c127c2a1abf224cd5281501293e561e1df6d25a766cd53bdbd037c032aa8925

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 68f42b9804696eabd401d017f28648243bb72719c1d148c47c254959bed248c5
MD5 194b9ae86644fff61fa5569c5c310cf7
BLAKE2b-256 7c95a9d5cc6707596cc93d46c0ec519ff4c2bab8b0a366989ee145e858a0235a

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.28-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.28-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9bc1f4ab4ef88cb3be1a7f193e187f301a1e96d525b2ecfe7c6f965104df4f40
MD5 db30604e8f82f368ed6ffd02ad98ada6
BLAKE2b-256 5c288d0d81212b794d66dd3222b1b14b6e8915eec08a59b05b266b6edd6f5baa

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fdbaabaa2f1310bd8452538fc74a91233464d9b08808cfd13d3cc1cafe386bab
MD5 bf28efe0f723e414fec42272846f8aca
BLAKE2b-256 6a6c7949e37264cd622afb9b42020bd1a94f81ae15c96230b03f73daf491220f

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2885fe9543129dd01330a2172529200cf6813e74a6b3481d5b0458a64b64b898
MD5 b4c0df8e3b9c40eb4dc2453881656e9e
BLAKE2b-256 b524f2f6711e8290bc13460ec49bea98a7b1c04ea7cacc2124f4f11a6cc040e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.28-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.28-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3f2b941941b6fc9128ab5077f28e2a15989e129061694c1d8e9ba29411a2be66
MD5 2f57a6ec53d9cad1e3952ea38e51383c
BLAKE2b-256 1454117b7e5c34dba9d9a4311b37c8a79e954654f86ba2b265a316fec4e5a7b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4b58c98e821044236cc3cdf6cfbafd0a52caf024f7ec63514a2880eff7c0147b
MD5 d481392204492217add3f9e1c3b18b60
BLAKE2b-256 2ab05e2a0f4912a6cfc77ef99f29993662bb27cc8055459079a37a35d9a55afa

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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.28-cp39-cp39-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for epochly-0.3.28-cp39-cp39-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2018971eb73a68c2a30744ebb9d12067dd1735410d08f8b1514ef1daed8f6f42
MD5 e3dde17e670d076736e6015b913d2970
BLAKE2b-256 dbd329759397aa81d69e8aefdaac6e82d01243a4a2ff968b3117474680a25293

See more details on using hashes here.

Provenance

The following attestation bundles were made for epochly-0.3.28-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