gitcode-api 1.3.1__py3-none-any.whl → 1.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gitcode_api/cli.py +2 -2
- gitcode_api/resources/account/orgs_resource_group.py +178 -18
- gitcode_api/resources/account/users_resource_group.py +65 -9
- gitcode_api/resources/collaboration/issues_resource_group.py +334 -26
- gitcode_api/resources/collaboration/milestones_resource_group.py +64 -6
- gitcode_api/resources/collaboration/pulls_resource_group.py +296 -36
- gitcode_api/resources/misc/releases_resource_group.py +8 -5
- gitcode_api/resources/misc/webhooks_resource_group.py +144 -17
- gitcode_api/resources/repositories/repos_resource_group.py +452 -73
- gitcode_api/version.txt +1 -1
- {gitcode_api-1.3.1.dist-info → gitcode_api-1.3.3.dist-info}/METADATA +11 -11
- {gitcode_api-1.3.1.dist-info → gitcode_api-1.3.3.dist-info}/RECORD +16 -16
- {gitcode_api-1.3.1.dist-info → gitcode_api-1.3.3.dist-info}/WHEEL +0 -0
- {gitcode_api-1.3.1.dist-info → gitcode_api-1.3.3.dist-info}/entry_points.txt +0 -0
- {gitcode_api-1.3.1.dist-info → gitcode_api-1.3.3.dist-info}/licenses/LICENSE +0 -0
- {gitcode_api-1.3.1.dist-info → gitcode_api-1.3.3.dist-info}/top_level.txt +0 -0
gitcode_api/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
1
|
+
1.3.3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitcode-api
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
4
4
|
Summary: Easy to use Python SDK for the GitCode REST API. Providing builtin CLI tool, and optional LLM integration (MCP, OpenAI tool, and openJiuwen tool) for agents. Community-maintained.
|
|
5
5
|
Author-email: "Hugo (Jin Huang)" <hugo@hugohuang.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -35,10 +35,11 @@ Provides-Extra: mcp
|
|
|
35
35
|
Requires-Dist: fastmcp; python_version >= "3.10" and extra == "mcp"
|
|
36
36
|
Dynamic: license-file
|
|
37
37
|
|
|
38
|
-
# GitCode-API [](https://gitcode.com/SushiNinja/GitCode-API) [](https://github.com/Trenza1ore/GitCode-API)
|
|
39
|
-
[](https://gitcode.com/SushiNinja/GitCode-API) [](https://github.com/Trenza1ore/GitCode-API)
|
|
39
|
+
[](https://pypi.org/project/gitcode-api) [](https://pypistats.org/packages/gitcode-api) [
|
|
40
|
+
](https://pepy.tech/projects/gitcode-api)
|
|
40
41
|
|
|
41
|
-
[](https://gitcode-api.readthedocs.io) [](README.zh.md)
|
|
42
|
+
[](https://gitcode-api.readthedocs.io) [](README.zh.md)
|
|
42
43
|
|
|
43
44
|
`gitcode-api` is a community-maintained Python SDK for the GitCode REST API. It provides easy-to-use synchronous and asynchronous clients, helpers methods grouped by resource groups, and type-hinted response models so you can work with GitCode from Python without hand-writing raw HTTP requests. The `gitcode_api.llm` module adds an OpenAI-style function tool, an MCP service, and an [openJiuwen](https://openjiuwen.com) tool integration so agents can reuse the same resource-oriented API.
|
|
44
45
|
|
|
@@ -64,11 +65,11 @@ pip install -U gitcode-api
|
|
|
64
65
|
|
|
65
66
|
Install the MCP server to your AI-powered IDE of choice:
|
|
66
67
|
|
|
67
|
-
[](https://cursor.com/en/install-mcp?name=GitCode%20API&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXRjb2RlLWFwaVttY3BdIiwiZ2l0Y29kZS1hcGkiLCJzZXJ2ZSJdLCJlbnYiOnsiR0lUQ09ERV9BQ0NFU1NfVE9LRU4iOiIke2lucHV0OmdpdGNvZGVfYWNjZXNzX3Rva2VufSJ9LCJpbnB1dHMiOlt7ImlkIjoiZ2l0Y29kZV9hY2Nlc3NfdG9rZW4iLCJ0eXBlIjoicHJvbXB0U3RyaW5nIiwiZGVzY3JpcHRpb24iOiJFbnRlciBHSVRDT0RFX0FDQ0VTU19UT0tFTiIsInBhc3N3b3JkIjp0cnVlfV19)
|
|
68
|
-
[](https://vscode.dev/redirect/mcp/install?name=GitCode%20API&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--from%22%2C%22gitcode-api%5Bmcp%5D%22%2C%22gitcode-api%22%2C%22serve%22%5D%2C%22env%22%3A%7B%22GITCODE_ACCESS_TOKEN%22%3A%22%24%7Binput%3Agitcode_access_token%7D%22%7D%2C%22inputs%22%3A%5B%7B%22id%22%3A%22gitcode_access_token%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Enter%20GITCODE_ACCESS_TOKEN%22%2C%22password%22%3Atrue%7D%5D%7D)
|
|
69
|
-
[](https://insiders.vscode.dev/redirect/mcp/install?name=GitCode%20API&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--from%22%2C%22gitcode-api%5Bmcp%5D%22%2C%22gitcode-api%22%2C%22serve%22%5D%2C%22env%22%3A%7B%22GITCODE_ACCESS_TOKEN%22%3A%22%24%7Binput%3Agitcode_access_token%7D%22%7D%2C%22inputs%22%3A%5B%7B%22id%22%3A%22gitcode_access_token%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Enter%20GITCODE_ACCESS_TOKEN%22%2C%22password%22%3Atrue%7D%5D%7D&quality=insiders)
|
|
70
|
-
[](https://vs-open.link/mcp-install?%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--from%22%2C%22gitcode-api%5Bmcp%5D%22%2C%22gitcode-api%22%2C%22serve%22%5D%2C%22env%22%3A%7B%22GITCODE_ACCESS_TOKEN%22%3A%22%24%7Binput%3Agitcode_access_token%7D%22%7D%2C%22inputs%22%3A%5B%7B%22id%22%3A%22gitcode_access_token%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Enter%20GITCODE_ACCESS_TOKEN%22%2C%22password%22%3Atrue%7D%5D%7D)
|
|
71
|
-
[](https://lmstudio.ai/install-mcp?name=GitCode%20API&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXRjb2RlLWFwaVttY3BdIiwiZ2l0Y29kZS1hcGkiLCJzZXJ2ZSJdLCJlbnYiOnsiR0lUQ09ERV9BQ0NFU1NfVE9LRU4iOiIke2lucHV0OmdpdGNvZGVfYWNjZXNzX3Rva2VufSJ9LCJpbnB1dHMiOlt7ImlkIjoiZ2l0Y29kZV9hY2Nlc3NfdG9rZW4iLCJ0eXBlIjoicHJvbXB0U3RyaW5nIiwiZGVzY3JpcHRpb24iOiJFbnRlciBHSVRDT0RFX0FDQ0VTU19UT0tFTiIsInBhc3N3b3JkIjp0cnVlfV19)
|
|
68
|
+
[](https://cursor.com/en/install-mcp?name=GitCode%20API&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXRjb2RlLWFwaVttY3BdIiwiZ2l0Y29kZS1hcGkiLCJzZXJ2ZSJdLCJlbnYiOnsiR0lUQ09ERV9BQ0NFU1NfVE9LRU4iOiIke2lucHV0OmdpdGNvZGVfYWNjZXNzX3Rva2VufSJ9LCJpbnB1dHMiOlt7ImlkIjoiZ2l0Y29kZV9hY2Nlc3NfdG9rZW4iLCJ0eXBlIjoicHJvbXB0U3RyaW5nIiwiZGVzY3JpcHRpb24iOiJFbnRlciBHSVRDT0RFX0FDQ0VTU19UT0tFTiIsInBhc3N3b3JkIjp0cnVlfV19)
|
|
69
|
+
[](https://vscode.dev/redirect/mcp/install?name=GitCode%20API&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--from%22%2C%22gitcode-api%5Bmcp%5D%22%2C%22gitcode-api%22%2C%22serve%22%5D%2C%22env%22%3A%7B%22GITCODE_ACCESS_TOKEN%22%3A%22%24%7Binput%3Agitcode_access_token%7D%22%7D%2C%22inputs%22%3A%5B%7B%22id%22%3A%22gitcode_access_token%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Enter%20GITCODE_ACCESS_TOKEN%22%2C%22password%22%3Atrue%7D%5D%7D)
|
|
70
|
+
[](https://insiders.vscode.dev/redirect/mcp/install?name=GitCode%20API&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--from%22%2C%22gitcode-api%5Bmcp%5D%22%2C%22gitcode-api%22%2C%22serve%22%5D%2C%22env%22%3A%7B%22GITCODE_ACCESS_TOKEN%22%3A%22%24%7Binput%3Agitcode_access_token%7D%22%7D%2C%22inputs%22%3A%5B%7B%22id%22%3A%22gitcode_access_token%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Enter%20GITCODE_ACCESS_TOKEN%22%2C%22password%22%3Atrue%7D%5D%7D&quality=insiders)
|
|
71
|
+
[](https://vs-open.link/mcp-install?%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--from%22%2C%22gitcode-api%5Bmcp%5D%22%2C%22gitcode-api%22%2C%22serve%22%5D%2C%22env%22%3A%7B%22GITCODE_ACCESS_TOKEN%22%3A%22%24%7Binput%3Agitcode_access_token%7D%22%7D%2C%22inputs%22%3A%5B%7B%22id%22%3A%22gitcode_access_token%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Enter%20GITCODE_ACCESS_TOKEN%22%2C%22password%22%3Atrue%7D%5D%7D)
|
|
72
|
+
[](https://lmstudio.ai/install-mcp?name=GitCode%20API&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXRjb2RlLWFwaVttY3BdIiwiZ2l0Y29kZS1hcGkiLCJzZXJ2ZSJdLCJlbnYiOnsiR0lUQ09ERV9BQ0NFU1NfVE9LRU4iOiIke2lucHV0OmdpdGNvZGVfYWNjZXNzX3Rva2VufSJ9LCJpbnB1dHMiOlt7ImlkIjoiZ2l0Y29kZV9hY2Nlc3NfdG9rZW4iLCJ0eXBlIjoicHJvbXB0U3RyaW5nIiwiZGVzY3JpcHRpb24iOiJFbnRlciBHSVRDT0RFX0FDQ0VTU19UT0tFTiIsInBhc3N3b3JkIjp0cnVlfV19)
|
|
72
73
|
|
|
73
74
|
For detailed setup (including installing to services like Claude Code / Codex): see [install_mcp_server.md](install_mcp_server.md).
|
|
74
75
|
|
|
@@ -112,8 +113,7 @@ gitcode-api serve --api-key "$GITCODE_ACCESS_TOKEN"
|
|
|
112
113
|
Use `gitcode-api serve -h` for defaults such as `--owner`, `--repo`, `--transport` (`stdio`, `http`, or `sse`), and other options.
|
|
113
114
|
|
|
114
115
|
Commands mirror the synchronous resource methods on `GitCode`, using the pattern
|
|
115
|
-
`gitcode-api <resource> <method> ...`. For methods that accept extra
|
|
116
|
-
or `**payload`, pass repeated `--set key=value` flags or `--set-json '{"key": "value"}'`.
|
|
116
|
+
`gitcode-api <resource> <method> ...`. For methods that accept extra arguments, pass repeated `--set key=value` flags or `--set-json '{"key": "value"}'`.
|
|
117
117
|
|
|
118
118
|
When using string arguments with escape sequence (such as line break `\n`), pass `-e` / `--escape` with the sequences to un-escape, such as `-e '\n\t'`.
|
|
119
119
|
|
|
@@ -6,14 +6,14 @@ gitcode_api/_cli_banner.py,sha256=S6i8dnzCXrxytrboxNh_gz-x95u6w9E-Yz6IkTz2PJk,15
|
|
|
6
6
|
gitcode_api/_client.py,sha256=bmZxBHdfshM5Kv_EurHUVu8rsEj0k3Up3ATSIPaFrvc,8258
|
|
7
7
|
gitcode_api/_exceptions.py,sha256=X_T_EOMBG0BktSBv-Jo3D9qGgTjLPKpfsOsL_pDoy6Q,1383
|
|
8
8
|
gitcode_api/_models.py,sha256=ip0xgdWao8Z3ATfSaPn3KzG81OXd25RVB1ansOaJaUM,110586
|
|
9
|
-
gitcode_api/cli.py,sha256=
|
|
9
|
+
gitcode_api/cli.py,sha256=WhHrbPqY4XocGys1BV9uiYHXeDAHriRbeO42qFohF7M,18733
|
|
10
10
|
gitcode_api/constants.py,sha256=uzcI7dVq4Qx_toYtnIphUh1IGepv9NuOdJ4DCswiYgo,769
|
|
11
11
|
gitcode_api/exceptions.py,sha256=R1A2jEFxJQV5HNVZV2ByEWsrdpBfAaI6V2cXcBx83BU,415
|
|
12
12
|
gitcode_api/models.py,sha256=Yfkn3zj2iEecOockytFS8lCNaYICYdjHdhpsxyaPkDk,4425
|
|
13
13
|
gitcode_api/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
gitcode_api/run_mcp.py,sha256=3_JOrjg9_yL-0M-H-F8mPgxdVKh7K2ggipu7UHeNCg0,147
|
|
15
15
|
gitcode_api/utils.py,sha256=51QmPTQPeNsPSGf2IzhwmiEO1H2GkJrp2A7vkzhOOag,1351
|
|
16
|
-
gitcode_api/version.txt,sha256=
|
|
16
|
+
gitcode_api/version.txt,sha256=p0oM-E7wsV4B5kdGw0ZYEzErdjeW9PY2KwkvCS3MuLU,6
|
|
17
17
|
gitcode_api/llm/__init__.py,sha256=rU75ZlJvTWNVxBLc3QzdfWmSjqVc9z6hfQ8z6jVVKOk,1693
|
|
18
18
|
gitcode_api/llm/_tool.py,sha256=b65iUiHo1H29uA6mFM3WlD0zZlISsENx1tpEqlkiUoA,16239
|
|
19
19
|
gitcode_api/llm/jiuwen.py,sha256=qca2y4544xoRYFOCMbkjiUZZLpJGMcBkK4w5bqs60-4,4276
|
|
@@ -25,28 +25,28 @@ gitcode_api/resources/_shared/base.py,sha256=HUiMN7D3NsRslQda5abDiDIhDFGTGCow7M3
|
|
|
25
25
|
gitcode_api/resources/_shared/fetch_template.py,sha256=uPUi0vhvA_wdGwOZAzTKUoeOSv8zcmAEzzPk2nJHW1k,10575
|
|
26
26
|
gitcode_api/resources/account/__init__.py,sha256=lZueYwioHR4dRyHoABGM05cT0YkO52TxmAhPECIv1do,552
|
|
27
27
|
gitcode_api/resources/account/oauth_resource_group.py,sha256=kmHHjtRhqtkOqB228nPp-ci5Wy1GAfSr0olWKObA36s,5690
|
|
28
|
-
gitcode_api/resources/account/orgs_resource_group.py,sha256=
|
|
28
|
+
gitcode_api/resources/account/orgs_resource_group.py,sha256=LUSME0XZlbxZdv34ZjioRH2GWX-2lIqlakpg6nC-DEc,21518
|
|
29
29
|
gitcode_api/resources/account/search_resource_group.py,sha256=0xqJUOEFdCnyEA_EhwhJoNMXo8wpXU-DYfG7Dl0zyIk,6998
|
|
30
|
-
gitcode_api/resources/account/users_resource_group.py,sha256=
|
|
30
|
+
gitcode_api/resources/account/users_resource_group.py,sha256=uFUcYS_fPP73If8rIklSyI_swyDtaeCYBfeFzIidv3w,10373
|
|
31
31
|
gitcode_api/resources/collaboration/__init__.py,sha256=jcH-u9KIgLEThoqKShh7MkBdqKioZ93gNY58hJeTWW0,727
|
|
32
32
|
gitcode_api/resources/collaboration/_helpers.py,sha256=t2OYoMo0_jra4hQIrYRpY88ZZNrZJRe6EiCwOM9t0uU,305
|
|
33
|
-
gitcode_api/resources/collaboration/issues_resource_group.py,sha256=
|
|
33
|
+
gitcode_api/resources/collaboration/issues_resource_group.py,sha256=2JfwI4yJ2xNZKacfz3_jQxRCXnVKo3vfedSlXYZEjcc,41708
|
|
34
34
|
gitcode_api/resources/collaboration/labels_resource_group.py,sha256=TML77N2t_IWO3uoPyQNl-wNVPF7L75syHkdFQa89vSk,9549
|
|
35
35
|
gitcode_api/resources/collaboration/members_resource_group.py,sha256=qd_6fV5bllGMJ-9SDvNDLj_XiGloXsiv27qufboUX5g,6770
|
|
36
|
-
gitcode_api/resources/collaboration/milestones_resource_group.py,sha256=
|
|
37
|
-
gitcode_api/resources/collaboration/pulls_resource_group.py,sha256=
|
|
36
|
+
gitcode_api/resources/collaboration/milestones_resource_group.py,sha256=Nz--QZAHwgIjwVTDrlFTYtPSBtF2f85-cpzUAC1M1ic,8525
|
|
37
|
+
gitcode_api/resources/collaboration/pulls_resource_group.py,sha256=nH9O8PzEaFrQGLjb-GnafNzJx7FnQCJa6c4dQlR3qqA,57895
|
|
38
38
|
gitcode_api/resources/misc/__init__.py,sha256=UWmADs0zoWrn4L2ZlaWTkt3CMQfRE_IADzruNGaJmm4,451
|
|
39
|
-
gitcode_api/resources/misc/releases_resource_group.py,sha256=
|
|
39
|
+
gitcode_api/resources/misc/releases_resource_group.py,sha256=ovbwyavj0vRNqkqlh7upDbIS5Ynj-mcAoJh6DhZvszY,15370
|
|
40
40
|
gitcode_api/resources/misc/tags_resource_group.py,sha256=jzs9ezJbBanI2LOSBWK7U0zMql0Xxz1hgOaNzC_Ncro,9662
|
|
41
|
-
gitcode_api/resources/misc/webhooks_resource_group.py,sha256=
|
|
41
|
+
gitcode_api/resources/misc/webhooks_resource_group.py,sha256=6Med6ozElfKlEabUIXx9z5uO3Zybr9htN1N58Pau7Ho,12076
|
|
42
42
|
gitcode_api/resources/repositories/__init__.py,sha256=HuatiYSlbk_yACIvzgVQyMuHQOR54B4vPeH6dEauTEU,624
|
|
43
43
|
gitcode_api/resources/repositories/branches_resource_group.py,sha256=dGhd6241IzhLuHCmtjYWsTxDhhS9tgLT6zvyz6lYPiY,5673
|
|
44
44
|
gitcode_api/resources/repositories/commits_resource_group.py,sha256=vqgy_-d7Ec-5w6FKWJ0v6QGbh9mtjnmqm7iZ9P5gBLw,11254
|
|
45
45
|
gitcode_api/resources/repositories/repo_contents_resource_group.py,sha256=pPsEMTU_3kbSNlCRtkHM7dUdzAo3lLxdYleMs1vmLBU,14832
|
|
46
|
-
gitcode_api/resources/repositories/repos_resource_group.py,sha256=
|
|
47
|
-
gitcode_api-1.3.
|
|
48
|
-
gitcode_api-1.3.
|
|
49
|
-
gitcode_api-1.3.
|
|
50
|
-
gitcode_api-1.3.
|
|
51
|
-
gitcode_api-1.3.
|
|
52
|
-
gitcode_api-1.3.
|
|
46
|
+
gitcode_api/resources/repositories/repos_resource_group.py,sha256=ZFC0jyj0Ezk80QbiMrlXBQyeWerxLZk8QfpdXGu96jE,65098
|
|
47
|
+
gitcode_api-1.3.3.dist-info/licenses/LICENSE,sha256=gOACXuWhMu6PJKVLr9RQbxX3HULnZIGNXCaMFJIXhoA,1067
|
|
48
|
+
gitcode_api-1.3.3.dist-info/METADATA,sha256=EfqdcQSAv3941OaGH80M_B2KMkGPEsuHyxCRIKZcF_c,22746
|
|
49
|
+
gitcode_api-1.3.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
50
|
+
gitcode_api-1.3.3.dist-info/entry_points.txt,sha256=dIPylJcgohIE2RRIlt3In2WzcwDK8TOdkL_ReKuij4o,53
|
|
51
|
+
gitcode_api-1.3.3.dist-info/top_level.txt,sha256=gIlg0ptyOUHJT64ajOjWIhRPYgIQnMIvnhhnesw9fxU,12
|
|
52
|
+
gitcode_api-1.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|