This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Repository navigation
v2.1.0
[2.1.0] - 2025-11-15
Added
- New
helpers.pymodule: Centralized helper functions for API operations, HTTP requests, caching, and CLI utilities - New
events.pymodule: Renamed fromparser.pyfor better clarity (containsL9Eventdata models) - Documentation testing: New test scripts
doc_examples_test.pyandexamples_md_test.pyto validate Python code examples in documentation (not executed by CI)
Changed
- Major DRY refactoring: Consolidated repetitive code in
api.pyby extracting common patterns into helper functions - Helper migration: All helper methods from
LeakIXAPIclass moved to standalone functions inhelpers.pymodule - Rate limiting improvement: Rate limit wait time now retrieved from
x-limited-forheader instead of defaulting to 60 seconds - Error handling: Removed all
try/exceptblocks in favor of conditional checks and dedicated helper functions for safe parsing - Code organization: Reorganized
api.pymethods into logical sections (INITIALIZATION, HTTP HELPERS, PARSING HELPERS, CACHE HELPERS, BULK PROCESSING, PUBLIC API METHODS) - CLI consolidation: Merged all CLI subcommands from
leakpy/cli/commands/into singlecli.pyfile for better maintainability - Module renaming:
parser.py→events.pyfor better semantic clarity (internal change, no API impact) - Documentation examples: Simplified all examples in
EXAMPLES.mdand documentation to be more direct and concise - Bulk mode examples: Updated all bulk mode examples to use
plugin:TraccarPlugininstead ofcountry:"France"and removedpagesparameter (bulk mode retrieves all results automatically)
Fixed
- Import cleanup: Removed unused imports and minimized import statements in
leakix.py - Documentation consistency: Fixed bulk mode examples to not specify
pagesparameter when using bulk mode - CLI output handling: Fixed stdout redirection and output file handling in lookup commands
- Argument parsing: Used
getattrfor safe access toargs.ipandargs.domainto preventAttributeErrorin CLI
Removed
- CLI subdirectory structure: Removed
leakpy/cli/commands/directory structure, consolidated intocli.py - Redundant example file: Removed
example.pyas its purpose is covered byEXAMPLES.mdand documentation - Unused imports: Cleaned up unused imports across the codebase