{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/5"}],"enrichment":{"capability":"Wraps PyMongo's Collection class to explain database operations without executing them, showing query plans and execution details instead.","skillfed_tags":["mongodb-tools","query-optimization","performance-analysis"],"use_cases":["Analyze query plans for slow update or delete operations without running them against production data","Debug index usage and rejection patterns before committing schema changes","Profile all database operations in a script to identify optimization opportunities","Compare execution plans across different query formulations to choose the most efficient one","Audit which indexes MongoDB would use for a set of operations without side effects"],"what_it_does":"PyMongoExplain provides an ExplainableCollection wrapper that intercepts PyMongo CRUD operations and runs MongoDB's explain command on them instead of executing the actual operation. This lets you inspect query plans, index usage, and execution strategy without modifying your data. It supports all Collection methods (find, insert_one, update_one, delete_many, etc.) and accepts explain options like verbosity and comment.\n\nThe package simplifies what would otherwise require manually constructing MongoDB command objects. It also includes a CLI tool to run explain on all operations in an existing script. The wrapper is designed to drop into existing code by swapping Collection instances for ExplainableCollection instances, making it useful for performance analysis and query optimization workflows.","worth_installing":"Yes, if you need to inspect MongoDB query execution plans from PyMongo code. The package is stable with no known vulnerabilities and low install friction. However, verify PyMongo version compatibility first\u2014the documented constraint is PyMongo>=3.10,<4, which may limit use in newer projects. Best suited for development and optimization workflows."},"id":"pymongoexplain","links":{"html":"https://skillfed.io/packages/pymongoexplain","md":"https://skillfed.io/packages/pymongoexplain.md","pypi":"https://pypi.org/project/pymongoexplain/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-01-07","license_spdx":null,"license_treatment":"permissive","name":"pymongoexplain","python_support":"supports_current","summary":"Explainable CRUD API for PyMongo"},"popularity":{"monthly_downloads":80630,"position":14280,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
