🌿 ✨ [Scheduled] Upgrade Fern Python SDK Generator: (local
)
#78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrading from
2.5.2
to2.16.0
- Changelog2.16.0
feat:
The generated SDK now allows for specifying whether or not to generatestreaming
functions as overloaded functions or separate functions.2.15.6
fix:
The generated python SDK now requires an environment be specified if a default is not provided.2.15.5
fix:
The generated python SDK Oauth client now no longer checks for an expiry when getting the access token if an expiry field is not configured.2.15.4
fix:
The generated python SDK now serializes bytes within JSON as a utf-8 encoded string.2.15.3
fix:
The generated python SDK no longer runs into a recursion error during snippet generation.40 additional updates, see more
2.15.2
fix:
The generated python SDK no longer treatsset
as a reserved word for method names.2.15.1
fix:
The unchecked base model no longer coerces None to a type.2.15.0
feat:
The generated python SDK now respects configured defaults from the API spec.2.14.1
fix:
typing within the Sync and AsyncPagers is now correctly passed through to the BasePager.2.14.0
fix:
The offset page now allows for the usage of 0 as a page start.2.14.0-rc3
feat:
Generated readmes now include an "advanced" section.2.14.0-rc2
chore:
Async snippets now run the async function leveraging asyncio.run to be more copy-pastable.2.14.0-rc1
fix:
The fix from 2.5.2 is now case-insentitive2.14.0-rc0
feat:
The Python SDK now generates an accompanying SDK reference (reference.md
) for users to review the SDK methods at a glance within the SDK's GitHub repository.2.13.1-rc0
fix:
The Python SDK now does not send additional properties via JSON or data if the request is leveraging the other field.2.13.0-rc0
internal:
The Python SDK generator is now upgraded to IR V49.2.12.0-rc0
feat:
README generation now supports a section dedicated to streaming usage, as well as one for paginated endpoints.2.11.0-rc0
chore:
Snippet templates now support auth variables within the root client.2.10.2
fix:
The SDK now handles stream termination sequences like[DONE]
.2.10.1
fix:
Improve the SDK to not leakJSONDecodeError
to SDK users. Instead, anApiError
will be thrown with the text content of the response.2.10.0
feat:
Add support for higher qualityREADME.md
generation.2.9.10
fix:
The generator now only specifies the readme location within pyproject.toml if one was successfully created.2.9.9
internal:
The generator now consumes IRv46.2.9.8
chore:
The python generator only adds a publish step in github actions if credentials are specified.2.9.7
fix:
The unchecked base model stops special casing defaults and pydantic v2.2.9.6
fix:
Offset based pagination is now 1-based, as opposed to 0 based2.9.5
fix:
Unions with elements that specify no properties are generated correctly.2.9.4
fix:
The unchecked base model now handles pulling the discriminant from a dict, not just a model/object.2.9.3
fix:
Snippet templates for discrminated unions now specify thetemplate_input
property which is required to actually see snippets of instantiating discrminated unions.2.9.2
fix:
downgrades mypy so we can run it over all our files without concern for their pydantic bug2.9.1
fix:
The SDK removes unset query parameters from requests (regression from the client migration in 2.8.0)2.9.0
fix:
Snippets preserve trailing slashes2.9.0-rc1
fix:
The new http client abstraction ensures a slash is postfixed to the baseurl2.9.0-rc0
chore:
The Python generator now runs custom unit tests in CI if configured.2.8.2
fix:
The none-filtering function now supports mypy's invariance check.2.8.1
fix:
The parameter comment/documentation for timeouts on the root client now reflects the custom timeout passed through within configuration.2.8.0
chore:
Endpoint function request logic has been abstracted into the request function of the wrapped httpx client.2.7.0
internal:
Improvement: The generator now outputs anexampleId
alongside each generated snippet so that we can correlate snippets with the relevant examples. This is useful for retrieving examples from Fern's API and making sure that you can show multiple snippets in the generated docs.2.6.1
internal:
this adds a back door token getter function to OAuth clients to better test the functionality.2.6.0
chore:
Support adding optional dependencies and extras to your generatedpyproject.toml
.2.5.7
fix:
tests now carry a type annotation forexpected_types
variable.2.5.6
chore:
Literal values are now all defaulted such that users are not required to plug in a redundant value.2.5.5
fix:
Auto-Pagination now respects optional return values2.5.4
internal:
Add typing library for dateutils in testing lib to satisfy mypy errors.2.5.3
chore:
Stops specifying custom licenses manually, lets poetry handle adding them.