跳转到主要内容

用于与GitLab交互的Python包

项目描述

gidgetlab-kit

Code style: black pre-commit pipeline coverage

gidgetlab-kit 是一个Python包,提供了一些高级功能,这些功能可以在使用 gidgetlab 时使用,以及一个用于与GitLab交互的 gidgetlab 命令行工具。

它包括一些有用的命令

$ gidgetlab --help
Usage: gidgetlab [OPTIONS] COMMAND [ARGS]...

Options:
  --version                       Show the current version and exit.
  --url TEXT                      GitLab URL  [env var: GL_URL; default:
                                  https://gitlab.com]

  --access-token TEXT             GitLab access token  [env var:
                                  GL_ACCESS_TOKEN; default: ]

  --verify / --no-verify          Verify SSL cerificate or disable
                                  verification  [default: True]

  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.

  --help                          Show this message and exit.

Commands:
  clone              Clone or pull all projects from group (including...
  commit-file        Add or update a file to a list of projects Example:
                     The...

  get                Get one or several items from the given endpoint
  list-projects      List all projects from group (including subgroups)
  trigger-pipelines  Trigger the pipeline for all or a subset of projects...

安装

仅支持Python 3.9及以上版本。创建一个虚拟环境并运行

pip3 install gidgetlab-kit

要使用命令行工具,建议使用 pipx

许可证

MIT

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源代码分发

gidgetlab_kit-0.7.2.tar.gz (26.0 kB 查看哈希值)

上传时间: 源代码

构建分发

gidgetlab_kit-0.7.2-py3-none-any.whl (17.3 kB 查看哈希值)

上传时间: Python 3

由以下支持