Skip to main content

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).

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygitcode-0.1.3.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygitcode-0.1.3-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

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

Hashes for pygitcode-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f67583e27cfc7355b0d1fec435d6d9792bf7b4a49bfcd87845eda546f2dc0ba3
MD5 7ad3a3e2ff0abf439def2f5f5ec9e432
BLAKE2b-256 8012d9396a0f9d7584a50d6888edf22de27476d536c2940e6c8157f0c678d362

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygitcode-0.1.3.tar.gz:

Publisher: publish.yml on codeasier/gitcode-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pygitcode-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e699804280500b41d83b98024c93e2f8eb5f96be1ddd2a583019d850fdb354d4
MD5 e7042d5a4fc3da09db289ab104a5af83
BLAKE2b-256 28b083257654450a04f6c2a0ada98b965ff4cfdf79e76591cf4e5ac052712159

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygitcode-0.1.3-py3-none-any.whl:

Publisher: publish.yml on codeasier/gitcode-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page