Skip to content

Python SDK - #1183

Closed
fahreddinozcan wants to merge 25 commits into
masterfrom
CTX7-907
Closed

fahreddinozcan wants to merge 25 commits into
masterfrom
CTX7-907

Conversation

@fahreddinozcan

@fahreddinozcan fahreddinozcan commented Dec 8, 2025 •

Copy link
Copy Markdown
Collaborator

create python sdk

- Move TypeScript packages to packages/ts/ (sdk, mcp, ai-sdk)
- Update pnpm workspace to use packages/ts/*
- Update GitHub Actions workflows for new paths
- Update package.json repository directory fields
- Add Python-specific entries to .gitignore

This prepares the monorepo structure for adding Python SDK at packages/py/
@linear

linear Bot commented Dec 8, 2025

Copy link
Copy Markdown

CTX7-907 Python SDK

Comment thread packages/python/sdk/README.md Resolved
Comment thread .github/workflows/changeset-check.yml Resolved

Async version: `await client.search_library_async(query, library_name)`

### `client.get_context(query: str, library_id: str, *, type="txt") -> str | list[Documentation]`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

default is json right?


- `query`: The user's question or task
- `library_id`: Context7 library ID (e.g., `/facebook/react`)
- `type`: Response format - `"txt"` (default) returns plain text, `"json"` returns list of Documentation objects

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also here

@enesgules enesgules left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The TS SDK has type option for searchLibrary and Python doesn't do we need to add it to here too? What do you think?

@enesgules enesgules left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Python SDK has a configurable base_url but TS SDK doesn't have it. Should we remove this or add it to TS SDK too?

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