Skip to content

Commit 9d62c65

Browse files
committed
docs: describe the SDK, the core pin, and the move
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent 07a20f8 commit 9d62c65

1 file changed

Lines changed: 45 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,49 @@
1-
# sdk-python
1+
# OpenShell Python SDK
22

3-
Python SDK for OpenShell.
3+
The `openshell` package is the Python client for the
4+
[OpenShell](https://github.com/NVIDIA/OpenShell) gateway: sandbox lifecycle,
5+
templates, workspaces, exec, and provider credentials, plus the generated gRPC
6+
bindings under `openshell._proto`.
7+
8+
```shell
9+
pip install openshell
10+
```
11+
12+
The SDK moved here from NVIDIA/OpenShell. The package name, import paths, and
13+
API are unchanged, including `openshell._proto`. Releases published from
14+
NVIDIA/OpenShell stay on PyPI.
15+
16+
## Development
17+
18+
Tools are managed by [mise](https://mise.jdx.dev/) and dependencies by
19+
[uv](https://docs.astral.sh/uv/).
20+
21+
```shell
22+
mise run ci # checks, tests, build, and install smoke test
23+
mise run check # format, lint, typecheck, proto and fixture drift
24+
mise run test # unit tests; UV_PYTHON=3.11 picks the interpreter
25+
mise run proto:gen # regenerate src/openshell/_proto from the pinned protos
26+
mise run core:version
27+
```
28+
29+
## Core version and generated bindings
30+
31+
The bindings are generated from `proto/` in NVIDIA/OpenShell at the ref in
32+
`OPENSHELL_CORE_REF` (`mise.toml`, currently `v0.1.7`) and committed under
33+
`src/openshell/_proto`:
34+
35+
- Building a wheel or sdist needs neither a core checkout nor network access.
36+
- A change of the pin shows the effect on the generated API in its diff.
37+
- `mise run proto:check` fails when the committed bindings differ from the
38+
pinned protos, and `mise run conformance:check` does the same for the
39+
vendored test fixtures.
40+
41+
## History
42+
43+
The history up to the move was imported from NVIDIA/OpenShell at `v0.1.7`. See
44+
[hack/migration](hack/migration/README.md) for how it was extracted and
45+
verified.
446

547
## License
648

7-
Apache-2.0. See [LICENSE](./LICENSE).
49+
Apache-2.0. See [LICENSE](LICENSE).

0 commit comments

Comments
 (0)