From 0e60f666043910afb96e9de2f84b0b8a68c7e4d6 Mon Sep 17 00:00:00 2001 From: Kevin King <64164523+Kking112@users.noreply.github.com> Date: Tue, 28 Oct 2025 19:32:45 -0400 Subject: ignore: python sdk (#2779) Co-authored-by: Aiden Cline --- packages/sdk/python/docs/usage/files_projects.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/sdk/python/docs/usage/files_projects.md (limited to 'packages/sdk/python/docs/usage/files_projects.md') diff --git a/packages/sdk/python/docs/usage/files_projects.md b/packages/sdk/python/docs/usage/files_projects.md new file mode 100644 index 000000000..47f255e5a --- /dev/null +++ b/packages/sdk/python/docs/usage/files_projects.md @@ -0,0 +1,22 @@ +# Files & Projects + +Access file status and project information. + +```python +from opencode_ai import OpenCodeClient + +client = OpenCodeClient() + +# Projects +for p in client.list_projects() or []: + print(p.id, p.directory) + +# Current path +pinfo = client.get_path() +print(pinfo.directory) + +# File status +files = client.file_status() or [] +for f in files: + print(f.path, f.type) +``` -- cgit v1.2.3