Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve API gateway lifecycle management and update documentation
This commit introduces the following changes: - Added initialization and shutdown methods for the API gateway lifecycle. - Improved the README with better examples and instructions for initializing and shutting down the API gateway. - Introduced user agent rotation in search requests for better reliability. - Updated search logic to provide more structured and maintainable results handling. - Enhanced the novexity_check script with better error handling and field validation. Motivation: Opening and closing API gateways within the search can lead to performance overhead during frequent searches. This change allows the user to manage the lifecycle of the API gateway explicitly, improving scalability. Additional Changes: - Added `venv` to .gitignore. - Bumped package version from 1.0.5 to 1.0.6. - Updated dependencies in `setup.cfg` to include `python-dotenv`. BREAKING CHANGE: Users must now explicitly call `NovexitySearch.init_gateway()` before initiating searches and `NovexitySearch.shutdown_gateway()` to clean up resources.
- Loading branch information