Skip to main content

AgLight

AgLight is a Python module that provides an ultra-accelerating decorator for scientific and numerical functions. It automatically uses Numba JIT compilation and parallelization if available, or falls back to multiprocessing for heavy computations if Numba is not installed.

Features

  • @light decorator: Accelerates your functions with minimal code changes.
  • Uses Numba JIT and parallelization for optimal speed.
  • Falls back to multiprocessing for large workloads if Numba is unavailable.
  • Simple API: just decorate your function with @light.

Installation

pip install AgLight

Usage

from AgLight import light

@light
def my_heavy_function(n):
    total = 0
    for i in range(n):
        total += i * i
    return total

print(my_heavy_function(1000000))

Requirements

  • Python 3.7+
  • numpy
  • (Optional) numba for maximum acceleration

License

MIT

Release files for AgLight 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AgLight 0.1.0
File Size Uploaded
aglight-0.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AgLight 0.1.0
File Interpreter ABI Platform
aglight-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / aglight-0.1.0.tar.gz

Download URL aglight-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0dde53787237dadcfee8af8d959c08fbcdb9f54084dfb17a815b99f6337b425c
BLAKE2b-256 checksum
How to use checksums
da8fafcc486d7533d06a4a913511a8b84e725db90528d27912a5dc865306bb77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release files / aglight-0.1.0-py3-none-any.whl

Download URL aglight-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7cf8cdafe4e50fd44d6f2ab50e0d10a264a988d37f8d9915f66ac5bea41b4d67
BLAKE2b-256 checksum
How to use checksums
525b3a0e5e4f61634d1dc8e9a624ef7231bd7bf5e6dbbc6b85c2a46ab2a07104
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page