Skip to main content

Simple SQL Profiler for Django

Project description

Django SQL Profiler

This package inspred by Sentry SDK, its will capture all SQL statements and save to MongoDB Require: PyMongo

How to use

import sql_profiler
sql_profiler.install_sql_hook(
    {
        'slow_queries_threshold': 0.2,
        'app_namespace': ['apps.'],
        'mongodb': {
            'uri': MONGODB,
            'db': MONGODB_DB,
            'collection': 'sql_slow_queries'
        }
    }
)

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

django-sql-profiler-0.0.2.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

django_sql_profiler-0.0.2-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file django-sql-profiler-0.0.2.tar.gz.

File metadata

  • Download URL: django-sql-profiler-0.0.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for django-sql-profiler-0.0.2.tar.gz
Algorithm Hash digest
SHA256 de1590e413b81acab5ffdf5647a050d70f8a4a2c572d766d8d3d2e596fb0897b
MD5 6c2ca27891550a94f44897d3b868f420
BLAKE2b-256 e994ebabb39e2bb6a7dd67b57364cd1712f61e063143fe369e0bda399c14f01c

See more details on using hashes here.

Provenance

File details

Details for the file django_sql_profiler-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sql_profiler-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e735b9a35c6790bdf255d1e68f878b9cc6e29b61a13de619a0882a39754b7a1
MD5 9dc168ecc05a415b51eddab0ad274d81
BLAKE2b-256 7bd59cc0943c7b3c4d9de4e651519601460733880e47d58464976067d6a9a89d

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page