For Python SDKs, the test runner used to run unit tests was Nose. As its maintenance support is coming to an end, APIMatic has replaced nose with Pytest for all future test suites.
26 posts tagged with "Python"
View All TagsAdding Support for Optional and Nullable Fields in a Model in Python SDKs
In the improved Python SDK, fields of a custom type can now differentiate between a nullable value and a missing value and will operate according to the behavior of the type specified. This way you can either pass a value that corresponds to the type specified, use null
as a value or skip the field altogether depending upon the defined behavior of the field.
Adding Support for Multiple Authentication Schemes in Python SDKs
APIMatic announces the support for multiple authenticaion schemes in Python SDKs. With the new design, it has become quite easy to configure multiple authentication schemes per SDK. All of the auth managers are instantiated at the start during the client initialization. After that their relevant auth managers can be used to apply auth schemes per endpoint as required in SDK.
Token Refresh on Expiry in OAuth 2 Client Credential Flow
We've updated our SDKs that use OAuth 2 Client Credential Flow to enable automatic re-authorization of the client when the OAuth token is expired.
Do-Not-Split Words in Code Generation Settings
We have added a new CodeGen setting that allows you to specify a list of words that Code Generation will not split when converting identifiers from API specification to language-specific identifiers. This is useful for declaring brand names such as APIMatic.
E.g. if you provide the words apimatic
and vmware
in your the list, APIMaticandvmWare
becomes ApimaticAndVmware
or apimatic_and_vmware
, depending on the place of use.
Support for Contact Info in API Editor and SDKs
We have added support for adding contact information of the organization maintaining the API in our API editor.
Allow Skipping Verification of SSL Certificates
Our Android, .Net, Go, Java, NodeJS, PHP, Python and Ruby SDKs now allow skipping verification of SSL certificates. To do this enable the CodeGen Setting Allow Skipping Certificate Verification and then set the corresponding configuration variable in the respective SDK.
Array Serialization Bug Fix in Python
There was a bug in the implementation of the Unindexed
and Plain
array serialization formats in Python SDKs. Arrays of models were not being properly encoded as form fields for the two mentioned array serialization formats. The bug has now been fixed.
Please regenerate your Python SDKs to get this fix.
OAuth2 bug fix for Python
There was a bug in Python SDKs which were using OAuth2.
- When updating the OAuth token, the compiler was trying to set the expiry time by adding an
int
and astring
.
This bug has now been fixed. Please regenerate your Python SDKs if you're using OAuth 2 to get this fix.
Python SDKs Are Now PEP8 Compliant
APIMATIC's Python SDKs are now compliant with the PEP8 Coding Style Guide
- PEP8 compliance means that the Python code generated is guaranteed to be of high-quality.
- Python SDKs are written in a industry-standard code style to allow for maximum interoperability.
Re-generate your Python SDKs now for the new changes.