A CLI tool for GitCode (api.gitcode.com), modeled after GitHub CLI.
Project description
pygitcode
A CLI tool for GitCode (
api.gitcode.com), modeled after GitHub CLI (gh).
English | 中文
For agent-assisted setup, usage, upgrades, or troubleshooting, read docs/en/USING_WITH_AGENT.md first.
Installation
pip install pygitcode
This exposes both gc and gitcode commands in your shell.
Quick Start
If you already know GitHub CLI (gh), you can start with the same familiar flows:
gc auth login
gc issue list
gc issue view 42
gc pr list
gc pr create --fill
gc pr merge 42 --squash
Use gitcode instead of gc on Windows PowerShell because gc is a built-in alias for Get-Content.
Documentation
Repository Selection
Commands operate on the current Git repository by default. You can also select a repository explicitly:
gc issue list -R owner/repo
gc pr list -R owner/repo
Authentication
gc resolves tokens in this order:
--tokenoptionGC_TOKENenvironment variable~/.config/gc/config.json, written bygc auth login
Useful commands:
gc auth login
gc auth status
gc auth token
gc auth logout
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygitcode-0.1.3.tar.gz.
File metadata
- Download URL: pygitcode-0.1.3.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f67583e27cfc7355b0d1fec435d6d9792bf7b4a49bfcd87845eda546f2dc0ba3
|
|
| MD5 |
7ad3a3e2ff0abf439def2f5f5ec9e432
|
|
| BLAKE2b-256 |
8012d9396a0f9d7584a50d6888edf22de27476d536c2940e6c8157f0c678d362
|
Provenance
The following attestation bundles were made for pygitcode-0.1.3.tar.gz:
Publisher:
publish.yml on codeasier/gitcode-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygitcode-0.1.3.tar.gz -
Subject digest:
f67583e27cfc7355b0d1fec435d6d9792bf7b4a49bfcd87845eda546f2dc0ba3 - Sigstore transparency entry: 1717809850
- Sigstore integration time:
-
Permalink:
codeasier/gitcode-cli@f5806c0b3f4b952c22b9e150c290b523869bbf84 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/codeasier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5806c0b3f4b952c22b9e150c290b523869bbf84 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pygitcode-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pygitcode-0.1.3-py3-none-any.whl
- Upload date:
- Size: 37.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e699804280500b41d83b98024c93e2f8eb5f96be1ddd2a583019d850fdb354d4
|
|
| MD5 |
e7042d5a4fc3da09db289ab104a5af83
|
|
| BLAKE2b-256 |
28b083257654450a04f6c2a0ada98b965ff4cfdf79e76591cf4e5ac052712159
|
Provenance
The following attestation bundles were made for pygitcode-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on codeasier/gitcode-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygitcode-0.1.3-py3-none-any.whl -
Subject digest:
e699804280500b41d83b98024c93e2f8eb5f96be1ddd2a583019d850fdb354d4 - Sigstore transparency entry: 1717809926
- Sigstore integration time:
-
Permalink:
codeasier/gitcode-cli@f5806c0b3f4b952c22b9e150c290b523869bbf84 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/codeasier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f5806c0b3f4b952c22b9e150c290b523869bbf84 -
Trigger Event:
push
-
Statement type: