Commit Graph

17 Commits

Author SHA1 Message Date
Mish Ushakov 48acc022f3 SDK reference: display submodules in the sidebar (#960) 2025-10-16 11:32:39 +00:00
0div e0c1bc752d Make codegen robust and deterministic for js and python SDKs (#664)
# Description 

This PR allows to codegen without worrying about your environment and
dependencies for consistent outcomes in what code is generated from
openapi and envd protobuf spec. Will generate files for `js-sdk` and
`python-sdk`

- [x] create Docker image with all the pinned deps needed to codegen
- [x] create codegen script using this container with mapped volumes
- [x] adapt Makefiles to this new approach
- [x] adapt where we install the connect-python protobuf binary for this
to work

# Test

```sh
make codegen # this command is similar to `make generate` but w/o the hassle

Generating SDK code from openapi and envd spec
cd packages/js-sdk && pnpm generate

> e2b@1.2.1 generate /workspace/packages/js-sdk
> python ./../../spec/remove_extra_tags.py sandboxes templates && openapi-typescript ../../spec/openapi_generated.yml -x api_key --arr
ay-length --alphabetize --output src/api/schema.gen.ts

 openapi-typescript 7.6.1
🚀 ../../spec/openapi_generated.yml → src/api/schema.gen.ts [44.2ms]
cd packages/js-sdk && pnpm generate-envd-api

> e2b@1.2.1 generate-envd-api /workspace/packages/js-sdk
> openapi-typescript ../../spec/envd/envd.yaml -x api_key --array-length --alphabetize --output src/envd/schema.gen.ts

 openapi-typescript 7.6.1
🚀 ../../spec/envd/envd.yaml → src/envd/schema.gen.ts [22.7ms]

[...]

cd packages/python-sdk && make generate-api

All done!  🍰 
```

---------

Co-authored-by: Jiri Sveceny <jiri.sveceny@icloud.com>
2025-04-07 17:00:31 +02:00
0div d599ddac32 rebrand to SDK reference 2024-11-26 10:34:04 -08:00
0div c89f970118 replace h4 as h3 in python-sdk api ref post processor 2024-11-22 14:34:56 -08:00
Jakub Novak 38db22d573 Fix issue with poetry 2024-10-15 07:30:24 -07:00
0div e3c6d0dc51 remove "Objects" in h2 of python-sdk api ref markdown 2024-09-27 17:40:25 +02:00
0div 7e8a2dd515 remove "Objects" in h2 of python-sdk api ref markdown 2024-09-27 17:32:30 +02:00
0div fa90994e49 [squashed many commits] GH actions workflow for API ref autogen 2024-09-24 18:15:31 +02:00
0div e701f40882 Auto-generate API reference markdown files for the python-sdk (#441)
# Description

- Installed and configured
[pydoc-markdown](https://niklasrosenstein.github.io/pydoc-markdown/).
- Created a script that generates and cleans markdown files with a
configurable package list.
- Added docstrings to relevant public methods of the various sdk classes
in order for pydoc to detect them.

# Test

```bash
cd packages/python-sdk
./scripts/generate_api_ref.sh 
ls ./api_ref
```

# Considerations

This could eventually be used directly as `.mdx` in the docs nextjs app,
it would look like this with current styling:
<img width="836" alt="Screenshot 2024-09-17 at 17 22 43"
src="https://github.com/user-attachments/assets/a23e954f-2834-4fb6-88a6-d87747a0cf49">
2024-09-20 15:04:57 +02:00
Tomas Valenta 6291c13adb Update generated clients; Ensure script cleanup 2024-06-28 16:13:54 -07:00
Tomas Valenta 6b32979f0f Fix python request timeout error; Change auth 2024-06-28 15:01:48 -07:00
Tomas Valenta ef19d8f822 Regenrate RPC; Fix namespacing 2024-06-07 21:35:34 +02:00
Jakub Novak 6e09c76aeb Remove old code interpreter 2024-04-04 11:38:58 -07:00
Jakub Novák 3c6ff27ede Update pydantic to version 2.x.x (#166)
Test CLI / Build CLI (push) Has been cancelled
2023-09-26 11:02:26 +02:00
Jakub Novak 8b3caa8ba3 Add missing column in upload test results 2023-09-01 11:42:55 +02:00
Jakub Novak aa5ede93ce Fix upload test results + add status 2023-09-01 10:07:03 +02:00
Jakub Novák 250ffc69c9 Periodic E2E tests of our infra via calling sdks (#92) 2023-08-28 18:29:48 +02:00