Skip to main content

pygitcode

A CLI tool for GitCode (api.gitcode.com), modeled after GitHub CLI (gh).

PyPI Python License

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:

  1. --token option
  2. GC_TOKEN environment variable
  3. ~/.config/gc/config.json, written by gc auth login

Useful commands:

gc auth login
gc auth status
gc auth token
gc auth logout

License

MIT

Metadata

Release files for pygitcode 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygitcode 0.1.4
File Size Uploaded
pygitcode-0.1.4.tar.gz 39.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygitcode 0.1.4
File Interpreter ABI Platform
pygitcode-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 86.5 kB

Release files / pygitcode-0.1.4.tar.gz

Download URL pygitcode-0.1.4.tar.gz
Size 39.3 kB
Tags Source
SHA-256 checksum
How to use checksums
04e3b0cc5c80c968d0a6c4765b10c4a9211a92665cba5bd5f439182f0dddba82
BLAKE2b-256 checksum
How to use checksums
d75cad44921c6c40b73d0f36190e83dfd76b77cd33e293d5fa85d10b1c97195e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / pygitcode-0.1.4-py3-none-any.whl

Download URL pygitcode-0.1.4-py3-none-any.whl
Size 47.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d6d118e6f5c67923ea22a871c6206aa67434a60cf540dae62ea50a7084b98c2
BLAKE2b-256 checksum
How to use checksums
6aa5bd0da7d67f3c06b6a6a1941bd347ff3278c22016c057b16a6c4559c6bcca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.6

2 release files

0.1.5

2 release files

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page