feat: add Fern-generated Python SDK alongside TypeScript - #710
feat: add Fern-generated Python SDK alongside TypeScript#710bhaveshpatel640 wants to merge 2 commits into
Conversation
|
a3d4050 to
445eab7
Compare
ce76ac2 to
02361b1
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5c26533. Configure here.
| [tool.poetry] | ||
| name = "trueforge-sdk" | ||
| version = "0.1.0-rc.1" | ||
| description = "TrueForge Python SDK" |
There was a problem hiding this comment.
Python SDK package metadata is incomplete
Medium Severity
pyproject.toml only declares Poetry name, version, and description, and .fernignore keeps Fern from replacing it. The file has no [build-system], dependencies, or src/ package map, so pip install / poetry install cannot build or import trueforge_sdk. generators.yml settings such as pyproject_python_version never land in the committed project file.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 5c26533. Configure here.
| a proof of concept, but know that we will not be able to merge it as-is. We suggest opening | ||
| an issue first to discuss with us! | ||
|
|
||
| On the other hand, contributions to the README are always very welcome! |
There was a problem hiding this comment.
Generated Python SDK not Prettier-ignored
Medium Severity
format:check globs all *.md and *.json, and .prettierignore only excludes packages/trueforge-sdk/. The new python/trueforge_sdk README, 4k-line reference.md, and .fern/metadata.json are now linted. Fern will rewrite them on the next sdk:generate, so a local format fix will not stick and CI can fail after every regen.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 5c26533. Configure here.


Summary
Add Fern-generated Python SDK (
packages/trueforge-python-sdk) next to the TypeScript SDK, and wire CI to regenerate/commit itCloses AGE-2005
Changes
python-sdkgroup (local-file-system) +pnpm sdk:generate/ Generate SDK workflowpyproject.toml(0.1.0-rc.1) +.fernignoreHow was this tested?
fern generate --group python-sdklocally;optional_auth/ version stamp checkedChecklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,packages/trueforge-python-sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs must commitpnpm sdk:generateoutput (CI cannot push to forks).env.exampleupdated if configuration or behavior changedNote
Low Risk
Changes are limited to SDK generation config, CI commit paths, and checked-in generated client code—no server or auth runtime logic.
Overview
Adds a Fern
python-sdkgenerator that writes topython/trueforge_sdk(local filesystem), mirroring the existing TypeScript SDK setup with optional auth, streaming, andTrueForge/AsyncTrueForgeclients.The Generate SDK workflow and Fern config now treat Python as a first-class generated artifact: path filters include
scripts/generate-sdk.sh, regen triggers when that script changes, and bot commits addpython/trueforge_sdkalongside OpenAPI andpackages/trueforge-sdk. Changesets still run only for the TypeScript package; fork-PR messaging warns not to hand-edit the Python tree.This PR also checks in the initial generated SDK (clients, types, README/reference docs, minimal
pyproject.tomlat0.1.0-rc.1,.fernignorefor custompyproject.toml).Reviewed by Cursor Bugbot for commit 5c26533. Bugbot is set up for automated code reviews on this repo. Configure here.