Refactor monolithic zotero.py into modular package structure
Split the 2050-line zotero.py into logical modules while maintaining
backwards compatibility:
- _utils.py: Utility functions (build_url, merge_params, token, chunks)
- _decorators.py: API decorators (tcache, backoff_check, retrieve, ss_wrap)
- _search.py: SavedSearch class for saved search functionality
- _upload.py: Zupload class for file attachment handling
- _client.py: Main Zotero class with API methods
- errors.py: Exception classes and error_handler function
Backwards compatibility maintained via:
- zotero.py: Re-exports all symbols from new modules
- zotero_errors.py: Re-exports from errors.py
- __init__.py: Public API exports for direct imports
All 75 tests pass.
Signed-off-by: Stephan Hügel <shugel@tcd.ie>
authored by
urschrei.eurosky.social
and committed by
urschrei.eurosky.social
bc0a0cea
fa946af0