Skip to main content

A GitHub simulation shell with automatic update feature

Project description

GitHub 仿真 Shell

一个功能丰富的GitHub仿真Shell,提供类似命令行界面的GitHub操作体验。

功能特性

仓库操作

  • repos - 列出当前用户的仓库
  • repo <owner>/<repo> - 查看指定仓库信息
  • issues <repo> - 查看仓库的Issues
  • branches <repo> - 查看仓库的分支
  • commits <repo> - 查看仓库的最近提交
  • contributors <repo> - 查看仓库的贡献者
  • prs <repo> - 查看仓库的Pull Requests
  • gists <username> - 查看用户的Gists

搜索功能

  • search <query> - 搜索GitHub仓库

组织操作

  • org <orgname> - 查看指定组织信息

用户操作

  • user <username> - 查看指定用户信息
  • followers - 查看当前用户的关注者
  • following - 查看当前用户关注的人

系统命令

  • help - 显示帮助信息
  • clear - 清除屏幕
  • exit - 退出仿真Shell
  • update - 检查并更新到最新版本
  • version - 显示当前版本

安装方法

从PyPI安装

pip install github-shell

从源码安装

git clone https://github.com/wjr-2015/github-shell.git
cd github-shell
pip install -e .

使用方法

基本使用

github-shell

命令示例

# 列出当前用户的仓库
github-shell:wjr-2015$ repos

# 查看指定仓库信息
github-shell:wjr-2015$ repo octocat/Hello-World

# 搜索仓库
github-shell:wjr-2015$ search python github

# 检查更新
github-shell:wjr-2015$ update

配置

设置GitHub令牌

为了访问私有仓库,您可以在脚本中设置GitHub令牌:

# 在github_shell/config.py中设置
TOKEN = "your_github_token"

自动更新

该脚本包含自动更新功能,运行update命令即可检查并更新到最新版本。

版本历史

  • v1.1.0 - 新增贡献者查看、PR查看、Gists查看、仓库搜索、组织信息查看等功能
  • v1.0.0 - 初始版本,包含基本的仓库和用户操作

许可证

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

github_shell-1.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

github_shell-1.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file github_shell-1.1.0.tar.gz.

File metadata

  • Download URL: github_shell-1.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for github_shell-1.1.0.tar.gz
Algorithm Hash digest
SHA256 bd2ad0116ef8b812c0c0ec088cd5bbc156d810abc0927afbc83e29cecc498cf7
MD5 4cec50d053248c7835ac4ca258254a13
BLAKE2b-256 5000aec750157bcd9d8970e5175e8828885af7ede498ea0d08325cd1c1ca684c

See more details on using hashes here.

File details

Details for the file github_shell-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: github_shell-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for github_shell-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9318e3894c04a44e89bc6b22aab84855755ddc4870abb2792264681bf1ad8862
MD5 268113d835dda74265a877ebec369835
BLAKE2b-256 34b451c1c546128c785a742448d68cc5baf21678b8215652ea19240afedff96b

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