|
| 1 | +## Release 0.3.0 — Openapi® Python SDK Evolves |
| 2 | + |
| 3 | +The **0.3.0** release of the Openapi® Python SDK introduces powerful new features, critical bug fixes, and significant stability improvements that make it even easier to build robust and reliable API clients. |
| 4 | + |
| 5 | +### 🚀 New Features |
| 6 | + |
| 7 | +* **Async Support & Context Managers**: Full `httpx`-based async client support with context manager support for all clients, enabling modern asynchronous Python workflows. |
| 8 | +* **Configurable Timeouts**: Added configurable 30-second default timeouts for both sync and async clients, with the ability to customize timeout values during OAuth client initialization. |
| 9 | +* **Thread-Safe OAuth Client**: `OauthClient` is now thread-safe using `threading.local`, allowing shared instances across multiple threads without conflicts. |
| 10 | +* **Custom HTTP Client Injection**: Advanced users can now inject custom HTTP clients for tailored transport layers and retry configurations. |
| 11 | +* **Refactored Architecture**: Client classes have been extracted into separate module files without breaking the existing API, improving maintainability and clarity. |
| 12 | + |
| 13 | +### 🔧 Bug Fixes |
| 14 | + |
| 15 | +* **Query Parameter Encoding**: Fixed an issue where special characters in query parameters caused `400 Bad Request` errors by properly encoding them with `urllib`. |
| 16 | +* **Linting & Tests**: Resolved ruff formatting issues and cleaned up unused variables in test suites. |
| 17 | + |
| 18 | +### 🧪 Quality & Testing |
| 19 | + |
| 20 | +* Added a comprehensive thread-safety verification suite for synchronous clients. |
| 21 | +* Updated documentation with examples for configuring network timeouts and customizing transport layers. |
| 22 | + |
| 23 | +### 🎯 Why This Matters |
| 24 | + |
| 25 | +* Safer concurrent usage with thread-safe OAuth handling. |
| 26 | +* Greater control over network behavior with configurable timeouts and custom HTTP clients. |
| 27 | +* More predictable request handling with properly encoded query parameters. |
| 28 | +* Cleaner codebase architecture for easier future contributions. |
| 29 | + |
| 30 | +### 🙏 Special Thanks |
| 31 | + |
| 32 | +A huge thank you to **[@Deadpool2000](https://github.com/Deadpool2000)** for their outstanding contributions to this release. Their work on thread-safety, configurable timeouts, custom HTTP client support, query parameter encoding fixes, and overall code quality has been invaluable. This release would not have been possible without their dedication and effort. |
| 33 | + |
| 34 | +### 🚀 Looking Ahead |
| 35 | + |
| 36 | +Version **0.3.0** marks another major step toward a more mature and developer-friendly Python SDK. Future releases will continue to focus on performance enhancements, broader interoperability, and even more seamless developer experiences. |
0 commit comments