Skip to content

feat: add Fern-generated Python SDK alongside TypeScript - #710

Open
bhaveshpatel640 wants to merge 18 commits into
mainfrom
AGE-2005
Open

feat: add Fern-generated Python SDK alongside TypeScript#710
bhaveshpatel640 wants to merge 18 commits into
mainfrom
AGE-2005

Conversation

@bhaveshpatel640

@bhaveshpatel640 bhaveshpatel640 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Add Fern-generated Python SDK (packages/trueforge-python-sdk) next to the TypeScript SDK, and wire CI to regenerate/commit it

Closes AGE-2005

Changes

  • Fern python-sdk group (local-file-system) + pnpm sdk:generate / Generate SDK workflow
  • Bootstrap pyproject.toml (0.1.0-rc.1) + .fernignore

How was this tested?

  • fern generate --group python-sdk locally; optional_auth / version stamp checked
  • Workflow path review (no full CI run in this session)

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, packages/trueforge-python-sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs must commit pnpm sdk:generate output (CI cannot push to forks)
  • Docs / .env.example updated if configuration or behavior changed

Note

Medium Risk
Adds a large generated surface and changes the SDK automation path; runtime server behavior is unchanged, but CI misconfiguration could drift OpenAPI or SDK commits.

Overview
Introduces a Fern-generated Python API client at python/trueforge_sdk (sync/async TrueForge, streaming, optional auth), generated from the same OpenAPI spec as the TypeScript SDK.

CI and tooling now treat both outputs as one pipeline: Fern python-sdk group in generators.yml, Generate SDK workflow commits python/trueforge_sdk with OpenAPI/TS artifacts (Python excluded from Changesets for now), and contributor docs/checklists forbid hand-editing either SDK tree. .prettierignore skips the Python package.

This PR also includes the initial committed generator output (plus a patch changeset for @truefoundry/trueforge-sdk OpenAPI regen) and minor readme copy from “TypeScript client” to “API client.”

Reviewed by Cursor Bugbot for commit 381513d. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 381513d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@truefoundry/trueforge-sdk Patch
@truefoundry/trueforge-ui Patch
@truefoundry/trueforge Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

cursor[bot]

This comment was marked as outdated.

@bhaveshpatel640
bhaveshpatel640 force-pushed the AGE-2005 branch 2 times, most recently from ce76ac2 to 02361b1 Compare September 11, 2026 11:26

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread python/trueforge_sdk/pyproject.toml Outdated
Comment thread python/trueforge_sdk/README.md

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread python/trueforge_sdk/src/trueforge_sdk/version.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit fa6973c. Configure here.

Comment thread python/trueforge_sdk/pyproject.toml Outdated
@bhaveshpatel640
bhaveshpatel640 force-pushed the AGE-2005 branch 5 times, most recently from 00f269b to 050f449 Compare September 12, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants