I made this project to avoid copy-pasting with utils in my projects. I was aiming to simplify working with sqlalchemy, FastAPI and other libraries.
With pip:
pip install sqlalchemy_profiler
With pdm:
pdm install sqlalchemy_profiler
With poetry:
poetry add sqlalchemy_profiler
Profiling utils. Now available 2 profilers and 2 middlewares (FastAPI) for such profilers:
- SQLAlchemyQueryProfiler - profile entire sqlalchemy query - it text, params, duration.
- SQLAlchemyQueryCounter - count sqlalchemy queries.