-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Description
Add a Command Line Interface (CLI) to pyquerytracker that allows users to:
- Configure tracker settings (e.g., slow query threshold, log level)
- Run queries or scripts with tracking enabled
- Export tracked logs via CLI commands
- Possibly integrate with scheduler to trigger exports or reports
Tasks
- Design CLI commands and options (e.g., using
argparseorclick) - Implement CLI commands for configuration (set/get config values)
- Implement CLI commands to run tracked functions or scripts
- Support export options (e.g., JSON, CSV) from CLI
- Add help and usage documentation for CLI
- Write tests for CLI commands
Expected Behavior
Users can use a simple CLI tool (e.g., pyquerytracker) to:
- Set and view configuration
- Execute Python functions or scripts with query tracking enabled
- Export query tracking logs easily
Example usage:
pyquerytracker config --slow-log-threshold 200
pyquerytracker run --script my_queries.py
pyquerytracker export --format json --output logs.jsonMetadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed