Skip to main content

QueryShield core analysis library - shared logic for all probe packages

Project description

queryshield-core

Shared core logic for QueryShield - query analysis, EXPLAIN parsing, cost calculation, and budget checking.

This package contains the shared analysis engine used by all QueryShield probes (Django, SQLAlchemy, etc.).

Features

  • N+1 query detection
  • EXPLAIN plan analysis (PostgreSQL, MySQL, SQLite)
  • Cloud cost calculation (AWS, GCP, DigitalOcean)
  • Budget enforcement and tracking
  • AI-powered root cause analysis

Installation

pip install queryshield-core

Usage

from queryshield_core.analysis import classify_problems
from queryshield_core.budgets import check_budget

# Analyze queries
problems = classify_problems(queries)

# Check budget
violations = check_budget(queries, budget_config)

Documentation

See the main QueryShield documentation for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

queryshield_core-0.2.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for queryshield_core-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e5e886d55958aad7e466fc52bf792e9542aaeb05595b8335272ca439b1db1e9
MD5 90de67a872746fa8bd1b700bceb25d82
BLAKE2b-256 286ea8994eba4719f28f8349efce9afafb75eb3554fb83e1a85e9914b4bbbb7e

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