{"id":28380545,"url":"https://github.com/context-labs/context-sdk-py","last_synced_at":"2025-10-08T23:55:20.567Z","repository":{"id":186260068,"uuid":"669316717","full_name":"context-labs/context-sdk-py","owner":"context-labs","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-21T23:02:52.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T19:36:56.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/context-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-21T22:50:31.000Z","updated_at":"2023-07-24T19:20:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"643f09c9-44e9-48d9-80bd-c93d887cbb35","html_url":"https://github.com/context-labs/context-sdk-py","commit_stats":null,"previous_names":["context-labs/context-sdk-py"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/context-labs/context-sdk-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Fcontext-sdk-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Fcontext-sdk-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Fcontext-sdk-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Fcontext-sdk-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/context-labs","download_url":"https://codeload.github.com/context-labs/context-sdk-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Fcontext-sdk-py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000708,"owners_count":26082862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T03:08:44.917Z","updated_at":"2025-10-08T23:55:20.562Z","avatar_url":"https://github.com/context-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\u003ca href=\"https://usecontext.io\" target=\"_blank\"\u003eContext\u003c/a\u003e Python SDK\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003e⚡ Python SDK for accessing the \u003ca href=\"https://usecontext.io\" target=\"_blank\"\u003eContext API\u003c/a\u003e ⚡\u003c/h4\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n\t  \u003cimg alt=\"Twitter URL\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" /\u003e\n  \u003c/a\u003e\n\t\u003ca href=\"https://pypi.org/project/context-sdk/\"\u003e\n\t  \u003cimg alt=\"pypi Package\" src=\"https://badge.fury.io/py/context-sdk.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/context_labs\"\u003e\n\t  \u003cimg alt=\"Twitter URL\" src=\"https://img.shields.io/twitter/url?label=Follow%20%40contextbots\u0026style=social\u0026url=https%3A%2F%2Ftwitter.com%2Fautodoc_\"  /\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n- [How to use it](#how-to-use-it)\n  - [Instantiate the SDK](#instantiate-the-sdk)\n  - [Search for documents/snippets](#search-for-documentssnippets)\n\n## How to use it\n\n### Instantiate the SDK\n\n```py\nfrom context import ContextSdk, ContextSdkConfig\n\nsdk = ContextSdk(\n    ContextSdkConfig(\n        api_key=\"\", # your API key\n    )\n)\n```\n\n### Search for documents/snippets\n\n```py\nbot_id = \"k7rB5_3JT\"\nquery = \"How can I get started with Helius?\"\ntop_k = 1\nresult = self.sdk.search(bot_id, query, top_k)\n\nprint(result) # will be a list of snippets\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontext-labs%2Fcontext-sdk-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontext-labs%2Fcontext-sdk-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontext-labs%2Fcontext-sdk-py/lists"}