OPGG.py v2.0.0 - "A New Beginning" 馃帀
New Features 馃殌
- Pydantic Integration: Migrated from Box to Pydantic for data models, ensuring better type validation and consistency.
- Enhanced Logging: Improved logging with pretty-printed payloads for better readability and debugging.
- Unified Error Handling: Standardized error response structure across the codebase for consistent error handling.
- Live Game Data: Added support for fetching live game data with detailed participant and team statistics.
- Game Statistics: Comprehensive game statistics including damage dealt, damage taken, vision score, and more.
- Summoner Profile: Detailed summoner profile data including ranked tiers, previous seasons, and most played champions.
- Vastly Improved Code: Several improvements to major methods allow for easier than ever use. For example: The search() function does not require a region to perform searches at all!
Performance Improvements 馃憣
- Async Requests: Leveraged aiohttp for asynchronous multi-request functionality, reducing average call times by roughly 90% on average.
- Multi-Region Search: You can now simultaneously search all regions at once!
- Request Caching: Requests are now cached, so subsequent requests to the same endpoint are much faster
Documentation 馃摎
- Docstrings: Added comprehensive docstrings for all classes and fields, improving code readability and maintainability.
- Usage Examples: Updated README with usage examples and detailed output descriptions.
- Official documentation coming soon...
Disclaimer 鈿狅笍
- This was the result of many weeks of effort migrating and optimizing the previous codebase, and while I have tried my best to test as much as possible, there are bound to be bugs that have been introduced as a result of such a large change. I'd really appreciate it if you could report them as you see them!
Full Changelog: 1.4.1...2.0.0
Installation:
py -m pip install opgg.py==2.0.0