Librería de aceleración automática con estilo Michael Jackson.
Project description
🎩 Smooth Criminal
A Python performance acceleration toolkit with the soul of Michael Jackson.
🚀 ¿Qué es esto?
Smooth Criminal es una librería de Python para acelerar funciones y scripts automáticamente usando:
- 🧠 Numba
- ⚡ Asyncio y threading
- 🧪 Benchmarks y profiling
- 🎶 Estilo, carisma y mensajes inspirados en MJ
💡 Características principales
| Decorador / Función | Descripción |
|---|---|
@smooth |
Aceleración con Numba (modo sigiloso y rápido) |
@moonwalk |
Convierte funciones en corutinas async sin esfuerzo |
@thriller |
Benchmark antes y después (con ritmo) |
@jam(workers=n) |
Paralelismo automático con ThreadPoolExecutor |
@black_or_white(mode) |
Optimiza tipos numéricos (float32 vs float64) |
@bad |
Modo de optimización agresiva (fastmath) |
@beat_it |
Fallback automático si algo falla |
dangerous(func) |
Mezcla poderosa de decoradores (@bad + @thriller) |
profile_it(func) |
Estadísticas detalladas de rendimiento |
analyze_ast(func) |
Análisis estático para detectar código optimizable |
⚙️ Instalación
pip install smooth-criminal
O si estás desarrollando localmente:
pip install -e .
💃 Ejemplo rápido
from smooth_criminal import smooth, thriller
@thriller
@smooth
def square(n):
return [i * i for i in range(n)]
print(square(10))
🧪 CLI interactiva
smooth-criminal analyze my_script.py
Esto analizará tu código buscando funciones lentas, bucles, range(), y más.
📚 Documentación
Próximamente en ReadTheDocs…
📝 Licencia
MIT © Adolfo González
🎤 Créditos
-
Michael Jackson por la inspiración musical 🕺
-
Numba, NumPy, asyncio por la base técnica
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smooth_criminal-0.1.0.tar.gz.
File metadata
- Download URL: smooth_criminal-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aff69a56bc94b1cdb3ae86e27bfce0045d25aaf2b0d1713a0d24b09683caac77
|
|
| MD5 |
155a2d22a78156ed355c28a877b03e69
|
|
| BLAKE2b-256 |
6c7aeb669633d7cc6c88d6747d70beb26b4c1c0464501ab679d253964b217a4a
|
File details
Details for the file smooth_criminal-0.1.0-py3-none-any.whl.
File metadata
- Download URL: smooth_criminal-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4616f11d8c3e643abdd5137e69f64dfa847a88b428b3341f444c6bf1cf27a2f7
|
|
| MD5 |
a0a14aba41a44169cb00ce45dfcb746e
|
|
| BLAKE2b-256 |
3524a2e490a14b6d3ef7a4193026627d2884be649e43dd12dbba57f7eb8acde5
|