Skip to main content

Gitee repository initialization tool

Project description

Gitee 仓库管理工具

一个命令行工具,用于管理 Gitee 代码仓库,支持创建、列出和删除仓库等操作。

功能特性

  • 创建个人或组织仓库
  • 列出用户所有仓库
  • 删除指定仓库
  • 支持多种仓库配置选项

安装

通过 pip 安装

pip install init-gitee

使用说明

基本命令

init-gitee [OPTIONS] COMMAND [ARGS]...

命令列表

创建仓库

init-gitee create-repo <仓库名称> [OPTIONS]

选项:

-g, --org TEXT 组织名称 -p, --path TEXT 仓库路径 -d, --description TEXT 仓库描述 -h, --homepage TEXT 项目主页 -r, --private 设为私有仓库 (默认: True) -a, --auto-init 创建初始提交

列出仓库

init-gitee list-repos [OPTIONS]

选项:

-p, --page INTEGER 页码 (默认: 1) -r, --repos-per-page INTEGER 每页数量 (默认: 20)

删除仓库

init-gitee delete-repos <仓库名称> [OPTIONS]

选项:

-o, --owner TEXT 仓库所有者 (必须)

配置

工具会默认读取 ~/.init-gitee/config.ini 配置文件,格式如下:

Apply
[auth]
access_token = 您的Gitee访问令牌

示例

创建个人仓库:

init-gitee create-repo my-project --description "我的项目"

创建组织仓库:

init-gitee create-repo org-project --org my-org

列出仓库:

init-gitee list-repos --page 2

删除仓库:

init-gitee delete-repos my-project --owner my-username

许可证

MIT License

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

init_gitee-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

init_gitee-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file init_gitee-0.1.1.tar.gz.

File metadata

  • Download URL: init_gitee-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for init_gitee-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0208eee9f5723a0d1ff1b26ffc92697f08650444e6613572cce93fd5d162e8ac
MD5 dfd5706b5daa8cc9e4208b1ffdfc5e49
BLAKE2b-256 0f084c45fa06dcd931861331c8a055fb22a2cf8a6e29e0a1e3e8412f2fba6ed6

See more details on using hashes here.

File details

Details for the file init_gitee-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: init_gitee-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for init_gitee-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 589f8a5038c4c0fcc45a521acf7f280f0189d61ed50389ca15edb381048d7dc9
MD5 d5fa5efef8409a4621852b11ff61954b
BLAKE2b-256 99a771ccb105efae712efe2375b93002ead8c01bfea3c03cfcf1f3fd566c1bfb

See more details on using hashes here.

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