A variety of updates to client to update with changes to iracing API - #95
Open
ncrosty58 wants to merge 13 commits into
Open
A variety of updates to client to update with changes to iracing API#95ncrosty58 wants to merge 13 commits into
ncrosty58 wants to merge 13 commits into
Conversation
- Merged latest changes from Esterni/pyracing including: - Base64 encoded password submission - iRacing maintenance mode detection - Version bump to 0.1.4 - Cleaned up fork-specific league methods: - get_completed_session_info() - get_league_calendar_by_season() - get_league_active_sessions() - get_league_members() - league_seasons() with include_inactive param - Added robustness improvements: - Type hints and proper docstrings - Null-safety checks on responses - Use constants instead of hardcoded URLs - Updated httpx follow_redirects parameter - Updated README with fork documentation
- client_test.py: Replace deprecated asyncio.coroutine and asyncio.get_event_loop() with modern asyncio.run() - pyracing/helpers.py: Replace deprecated datetime.utcfromtimestamp with timezone-aware datetime.fromtimestamp(tz=timezone.utc) These changes ensure compatibility with Python 3.11+ where asyncio.coroutine was removed and Python 3.12+ where datetime.utcfromtimestamp is deprecated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've been making some adjustments to the client end points / helper functions to resolve errors that periodically occur due to changes with iracing's interface. This will keep getting updated as new errors pop up