Skip to content

v1.0.6

Compare
Choose a tag to compare
@rmkonnur rmkonnur released this 15 Feb 20:31
· 13 commits to main since this release
18e8e7b

Note: This change adds improvements to all categories.

  • We fix some reported enum serialization issues regarding sending the enum directly rather than the value of the enum itself.

  • Add support for a RequestOptions object for each generated function within Python SDKs. This parameter is an optional final parameter that allows for configuring timeout, as well as pass in arbitrary data through to the request. RequestOptions is a TypedDict, with optional fields, so there's no need to instantiate an object, just pass in the relevent keys within a dict!

    • timeout_in_seconds overrides the timeout for this specific request
    • additional_body_parameters are expanded into the JSON request body
    • additional_query_parameters are expanded into the JSON query parameters map
    • additional_headers are expanded into the request's header map
  • Remove support for Python 3.7. In order to support newer versions of libraries we depend on (such as typing and typing-extensions), we must move on to Python 3.8. With this change we are also able to:

    • Remove the backports dependency, as cached_property is now included within functools
    • Remove the upper bound dependency on Pydantic which had dropped support for Python 3.7
    • Note: Python 3.7 had reached end of life so we strongly encourage users to upgrade to >= 3.8. https://www.python.org/downloads/release/python-370/