Enhanced SDK documentation for enumeration casing across all supported languages. This update ensures consistent and accurate environment enumeration representation in the Getting Started section for all languages. We also improved enum casing in the model documentation section for Java.
32 posts tagged with "Python"
View All TagsImproved Python SDK Code Quality and Language Alignment
This release delivers comprehensive code quality improvements to our Python SDKs. Generated SDKs now produce Ruff-compatible code that adheres to PEP 8 and PEP 257 style guidelines.
Key outcomes:
- Cleaner, more maintainable SDK code that follows modern Python best practices, with properly formatted docstrings, organized imports, and consistent styling
- CI/CD integration ready with included
ruff.tomlconfiguration for automated linting
The improvements span string literal consistency, import organization, docstring formatting, line length management, and formatter-friendly structure. Where linting rules could potentially impact existing consumer code, they are intentionally bypassed to preserve behavior.
Zero-Downtime Upgrade
- No action required. These improvements maintain full backward compatibility with existing SDK implementations. No breaking changes are included.
- Simply regenerate your Python SDKs to take advantage of these enhancements
Introducing Client Initialization from Environment in Python SDKs
We have added support for initializing the SDK directly from environment to simplify setup and enhance developer experience.
Improved HTTP Client Injection in Python SDKs
The Python SDKs now support interface-driven HTTP client injection and direct use of a requests.Session instance, improving developer experience, flexibility and alignment with other SDKs.
Introducing Proxy Configuration Support in Python SDKs
We’ve added support for configuring proxy servers in the generated Python SDKs.
Improved SDK Client Initialization Samples with Imports
To improve clarity and onboarding, all client initialization code samples now include relevant import statements. This update makes it easier for developers to understand and use the SDKs, eliminating guesswork around class and function origins in docs and READMEs.
Adding Support for Pagination in Python SDKs
APIMatic now supports four widely-used pagination strategies in Python SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.
Complex Objects Support in HTTP Header Parameters
The SDKs now support passing complex objects, including non-scalar types and collections, as HTTP header parameters in the request.
Configurable Test Settings via Environment Variables
The Python SDK now supports reading test configurations from environment variables, reducing the need for hardcoded values in the SDK test setup.
Introducing String Representations for Models in PHP, Python, Ruby, and Go SDKs
Developers frequently rely on string representations of models for debugging and logging. Our recent update enhances the __str__ or equivalent methods for models in Python, Ruby, PHP, and Go SDKs, offering clear, human-readable outputs.