Motivation
The Python SDK should be easy to configure in CI, containers, and developer shells. A from_env() helper would make OpenShell configuration explicit and repeatable while complementing existing XDG / OPENSHELL_GATEWAY discovery.
Proposed change
Add a config constructor or client factory that loads OpenShell settings from environment variables, for example gateway address, auth/material paths, and timeout defaults.
Example shape:
client=openshell.Client.from_env()
or:
config=openshell.Config.from_env()
client=openshell.Client(config)
Acceptance criteria
Notes
This should be SDK-only and should not require gateway/proto changes.
Motivation
The Python SDK should be easy to configure in CI, containers, and developer shells. A
from_env()helper would make OpenShell configuration explicit and repeatable while complementing existing XDG /OPENSHELL_GATEWAYdiscovery.Proposed change
Add a config constructor or client factory that loads OpenShell settings from environment variables, for example gateway address, auth/material paths, and timeout defaults.
Example shape:
or:
Acceptance criteria
from_env()tests for defaults, explicit overrides, and invalid values.Notes
This should be SDK-only and should not require gateway/proto changes.