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)
| File | Size | Uploaded | |
|---|---|---|---|
| aglight-0.1.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|