{"id":44598085,"url":"https://github.com/matrixorigin/moi-python-sdk","last_synced_at":"2026-02-14T08:36:25.111Z","repository":{"id":325953342,"uuid":"1102841115","full_name":"matrixorigin/moi-python-sdk","owner":"matrixorigin","description":"moi python sdk","archived":false,"fork":false,"pushed_at":"2026-01-25T13:31:00.000Z","size":324,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-26T05:43:50.262Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matrixorigin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-24T05:35:54.000Z","updated_at":"2026-01-25T13:31:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/matrixorigin/moi-python-sdk","commit_stats":null,"previous_names":["matrixorigin/moi-python-sdk"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/matrixorigin/moi-python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmoi-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmoi-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmoi-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmoi-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matrixorigin","download_url":"https://codeload.github.com/matrixorigin/moi-python-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matrixorigin%2Fmoi-python-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29440615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-02-14T08:36:24.565Z","updated_at":"2026-02-14T08:36:25.098Z","avatar_url":"https://github.com/matrixorigin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MOI Python SDK\n\nPython client for the MatrixOrigin MOI Catalog Service, mirroring the feature\nset provided by the Go SDK (`moi-go-sdk`). It offers both a low-level\n`RawClient` (1:1 HTTP bindings) and a high-level `SDKClient` with productivity\nhelpers for role/table workflows.\n\n## Installation\n\n### 方式一：从 PyPI 安装（推荐）\n\n如果包已发布到 PyPI，可以直接安装：\n\n```bash\npip install moi-python-sdk\n```\n\n### 方式二：从 GitHub 直接安装\n\n无需下载源码，直接从 GitHub 仓库安装：\n\n```bash\npip install git+https://github.com/matrixorigin/moi-python-sdk.git\n```\n\n或者安装特定版本/分支：\n\n```bash\n# 安装特定分支\npip install git+https://github.com/matrixorigin/moi-python-sdk.git@main\n\n# 安装特定标签版本\npip install git+https://github.com/matrixorigin/moi-python-sdk.git@v0.1.0\n```\n\n### 方式三：本地开发安装\n\n如果需要修改源码或进行开发：\n\n```bash\n# 克隆仓库\ngit clone https://github.com/matrixorigin/moi-python-sdk.git\ncd moi-python-sdk\n\n# 安装依赖和包\npip install -r requirements.txt\npip install -e .  # 可编辑模式安装，修改代码后无需重新安装\n```\n\n## Quick Start\n\n```python\nfrom moi import RawClient, SDKClient, TablePrivInfo\n\nraw = RawClient(\n    base_url=\"https://api.example.com\",\n    api_key=\"your-api-key\",\n)\n\n# Low-level call\ncatalog = raw.create_catalog({\"name\": \"analytics\", \"description\": \"Prod catalog\"})\n\n# High-level helpers\nsdk = SDKClient(raw)\nrole_id, created = sdk.create_table_role(\n    role_name=\"analytics_reader\",\n    comment=\"Read-only access\",\n    table_privs=[\n        TablePrivInfo(\n            table_id=123,\n            priv_codes=[\"DT8\"],  # SELECT\n        ),\n    ],\n)\n```\n\n## Features\n\n- Full coverage of Catalog/Database/Table/Volume/File/Folder APIs\n- Detailed per-method references in `docs/api_reference.md` (EN) and `docs/api_reference_zh.md` (中文)\n- Connector workflows: local uploads, connector imports, preview\n- User/Role/Privilege management\n- GenAI, NL2SQL, Health, and Log endpoints\n- Streaming downloads via `FileStream`\n- High-level helpers for table role management and file-to-table import\n\n## Development\n\n```bash\npython -m venv .venv \u0026\u0026 source .venv/bin/activate\npip install -r requirements.txt\n```\n\nCode style follows standard `pyproject`-less tooling (feel free to add linters\nor tests). Contributions are welcome—please align new APIs with the Go SDK\nbehavior to keep parity between implementations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixorigin%2Fmoi-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrixorigin%2Fmoi-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixorigin%2Fmoi-python-sdk/lists"}