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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 15.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 15.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

epochly-0.3.29-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.29-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.29-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: epochly-0.3.29-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.29-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 83d8b1274cdc1ae18a3be9417d331f627856c1e56aaf70e8bef19653ab639c8f
MD5 73b65de3c7a0e77370511fc51f000031
BLAKE2b-256 6ed5db24f59fbbda0a942a04e21d8873595fa214d5eca26e6f552f360d80a86e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4950dbf500d8ef9675f15eb28c982c0e5b2fe66d10c79c3375b791afe30cc4d
MD5 7303f8d328c62593da276f6dacd74472
BLAKE2b-256 9836183867fff99d011b844919f6f0b8fdf735ebf7133a22f1fd3af9166deaa6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 59ffa100f57c6502d55074ad764bf03e6f8971216449220483d14f185d62aca4
MD5 3fe44850a18690731478bf26809098d0
BLAKE2b-256 1181fb439dcc2cbfc54e47e3ddedd05c5e6465303c88dafcca4e096a74ab843a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: epochly-0.3.29-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.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e8c667091f818d4e1c7944b0eadf58437265a7fec0470e42ae04c20e2e77c38b
MD5 c49d8005fef49918dac8445903044144
BLAKE2b-256 7aba64957116664ae409da3b5784d423fba672226f7c1dd79118d8f8ea640ab2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 364001d34475f200f521358b344293dbc54858385309a2e7f95f24141725f1cd
MD5 17cee4f8e23c2561f3b6a6bdc5e19757
BLAKE2b-256 0b69f217a355d17d83d94508a3cd257c916ee80f344bccf711167ac897cc74b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 cd6ca9deefb57246dc663ba766c0b4061de154bf0f60cba5fad30c62f115c0ee
MD5 afe872674b18a904219d236e585e031c
BLAKE2b-256 cf0170bb8b4bf744c867aefb7f0a4e2a35d3f40e918c220890de2277b49abe56

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: epochly-0.3.29-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.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ff216e8f42ea3e97fb587ecafe01fbea6e8a5ec7e7a5e77c27750e77733bc882
MD5 61d5c10c0cd84a32007eba6144eb2a57
BLAKE2b-256 e43bf7883e125536d4d6b6318fe3c794fccfb2108fa980fc838f435a8e5e73f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bacc70543be8274c0b3b6e06357b2a52c83871f8d18275d3143640a9c5bd4cbb
MD5 b3dd8681e88b8dd1ad959e2e32e6d578
BLAKE2b-256 05fba04c25ba7e19dbe56ff0873b9f9d122ba5c552c9332c231798c0d7eb54b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4d5f455488ffc5dc4bda75d603a40f32b086c7d23e00b94629f9d8d07df526f0
MD5 12ed5ba7a7ae0e195f57c708ecc38ae5
BLAKE2b-256 4f9be1361c2ba1b6231ff4767ea39793849ed1fac66d292b51b096ac0e848afa

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: epochly-0.3.29-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.29-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d812985b0bcd42f1143d63dfe2baba4f5ac5f36de1b80eff248a6122e8df6dc1
MD5 634969ad4e6aaa27c1b35a24c3a0f9aa
BLAKE2b-256 ee98dc728d5a06e75f705a96f2db3072ba80ad897fd03e79007890785419f07c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 062712dabf6e1d2ede8c82725224d0077ad6cfbe1a48f52f19be8df24eb0a10e
MD5 8bee4a6db06ad9aaaa7be62aed1c8682
BLAKE2b-256 da5e2fd5f10e44c4c434c0c3ec1a073201b5689c000e486df28f58ccae765a02

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 83b572945ea3697f8a12e4bd67b953c1444b7e8fef571a79984e3b6bb1d5f3ad
MD5 080d188a3fe65dff673d13e07eef9ea3
BLAKE2b-256 1388728460878110776557d3546a11a27bf6242b2e161a2a5c37456264777df7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: epochly-0.3.29-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.29-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d97fef6c88a0460a21c2ce0b160f53691c3deba8d7057c4a6c6c918d44028d0e
MD5 a1a0ee62fcf7205934154bc3e2f4d53e
BLAKE2b-256 594774ba1c1a6b86f56c861d456bace9f86b69f7b6fe630c9d5995cb59de154f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1a4f34468e41656766dc8d06481d719070b5cc1d028e408971cec831990d5d32
MD5 652dbe2f99002fa791bd44345f59b720
BLAKE2b-256 518a4740e8ba8233e2f3d688c276c5f0463185df184a6ce008566dc763216589

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for epochly-0.3.29-cp39-cp39-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7814422827690a67e951988e5a0b53cd3449f2b85fb385254107adedcb52649a
MD5 36ad531baadcdf03bdbe890d52bd09dd
BLAKE2b-256 d32165b6558da7f5efc6af0dae6e2b390151f6b83fc3e2a6493ff6e254645f9d

See more details on using hashes here.

Provenance

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