Skip to content

Python SDK generator: support baseUrlEnvVar (x-fern-base-url-env / base-url-env) #18351

Description

@cohogan

Component

CLI

Priority

P2 - Medium (Would be helpful)

SDK Language(s)

Python

Feature Description

Side note: #17705 says base-url-env is also accepted under api.environments in generators.yml, but CLI 5.159.3's fern check rejects it there with Unexpected key "base-url-env".

Any alternatives?

Overriding init in a hand-written client subclass to default base_url from the env var. It works, but every Fern Python user has to reimplement it.

Are you interested in contributing this feature?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions