Skip to main content

⚡ Acelerador inteligente de scripts Python con estilo Michael Jackson.

Project description

🎩 Smooth Criminal

A Python performance acceleration toolkit with the soul of Michael Jackson.

Python License


🚀 ¿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

smooth_criminal-0.2.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smooth_criminal-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file smooth_criminal-0.2.0.tar.gz.

File metadata

  • Download URL: smooth_criminal-0.2.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for smooth_criminal-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ebe5a617c474669901c29b83e2e79e1e0916d2ff8fb6de8067d888d1a6845aa5
MD5 1b0db7e216bd0133f8471e5ae0edbdbf
BLAKE2b-256 43ff79db64f0b43f49ff56640580655665e9a3a08536383cdf84c79188f7c0e9

See more details on using hashes here.

File details

Details for the file smooth_criminal-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smooth_criminal-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41b939ca0ccce6214471373c6132e253048aab3b3ec683efbe7db32c8edb6e7d
MD5 da247457bfc70aae41330e986aba4e93
BLAKE2b-256 a8e54f2add80407938e3677000ca16c905462ca960dd41cb2f4591c98b301dc6

See more details on using hashes here.

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