Repository navigation
Document Python http_client_extra config option - #7595
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration
Bot
requested review from
jkonrath-postman and
nerminamiller-postman
as code owners
October 24, 2026 17:10
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1792861757-python-http-client-extra.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Python SDKs can now keep the HTTP client (
httpx) out of the base install and expose it behind a named pip extra. That matters for SDK owners whose users only consume the generated models (for example, building or parsing TwiML/XML types):pip install your-packagethen needs only Pydantic andtyping_extensions, and API callers runpip install your-package[client].Implements docs for: fix(python): http_client_extra option declares httpx as an optional extra for model-only (TwiML) installs (fern-api/fern#18429)
Changes
fern/products/sdks/legacy/generators/python/configuration.mdx: newhttp_client_extraParamField (alphabetical, betweenextrasandflat_layout). It covers thegenerators.ymlexample, thepip installcommand, httpx being added to the built-inaiohttpextra, theImportErroryou get when the client is imported without the extra, and the two validation rules fromcustom_config.py(the value can't beaiohttp, andlazy_importsmust stay enabled). Without the option, httpx stays a required dependency.Not changed (on purpose)
fern/products/sdks/generators/python/configuration.mdx(the Currentsdk-config.ymlpage): SDK Config has no camelCase equivalent of this option yet. The only references tohttp_client_extrain fern-api/fern are in the Python generator'scustom_config, so the option lives only on thegenerators.yml(Legacy) page.deep-dives/xml-encoded-types.mdx: the new ParamField links to this page, but the page itself is unchanged to avoid conflicts with the open docs(sdks): XML-encoded types: text-first child builders (incl. Go xmlTextFirstBuilders), C# indented output, Ruby/PHP declaration aliases, Java varargs #7586.Verification
generators/python/src/fern_python/generators/sdk/custom_config.py,sdk_generator.py, and the seed fixtureseed/python-sdk/python-xml-twiml/http-client-extra/pyproject.tomlin fern-api/fern.pre-commit(Vale) reports no new findings on the changed lines; the 4 errors it lists were already on the page.fern check --warningsreports 0 errors.Link to Devin session: https://app.devin.ai/sessions/b1db92f633924ef9a471379068f060df
Open in Devin Desktop: https://app.devin.ai/desktop/session/b1db92f633924ef9a471379068f060df?variant=devin