Tags: coreyjs/nhl-api-py
Tags
bugfix: Debug logging now properly will print the URL generated by th… …e method call. Logging is also fixed to only enable debug logging in the nhl-api-py package. - Add: notebook/ example jupyter notebook of each available endpoint call. For ref/testing purposes only
feat: V3 upgrade foundation. (#108) * feat: V3 upgrade foundation. -Deletes playoffs.py, moves this into schedule. -renames methods using redundant 'get_' -Adds players.py for player specific endpoints. -Adds prospects to players.py * fix: Tests fixed for proper renaming of methods. Endpoint enum integration into all API calls * fix: renames verbose to debug, for log level * fix: Utah franchise_id when calling teams() requires specific logic * update: README updated, reformatted for readability and cleaner information. Some more method refactoring to make sense * feat: Final updates to methods. * fix: README schedule.playoff_series_schedule now properly uses correct params
docs: convert docstrings to Google style format (#99) * docs: convert docstrings to Google style format - Add parameter types and improve descriptions - Standardize Returns sections - Add Examples where relevant for API endpoints - Maintain existing function implementations change: page limits to 25 were applicable
84 - HTTP Error code handling 400+ (#87) * feat: Enhance HTTP client error handling with custom exceptions - Implement hierarchical exception system with base NHLApiException - Add specific exceptions for common HTTP status codes (404, 429, 400, 401, 5xx) - Create centralized error handling in _handle_response method - Add comprehensive test suite with pytest for all error scenarios - Improve error message formatting to include both request context and API response - Handle edge cases for malformed JSON and non-JSON responses - Add type checking for response parsing Tests cover: - All HTTP error status codes - Success responses - Non-JSON responses - Malformed JSON handling - Query parameter handling - Verbose logging behavior Breaking changes: None - extends existing error handling functionality Closes #81 * README bugfix * Fix: stats.team_summary() double encoding issue in notebooks
PreviousNext