GitAPy is a NOT SO comprehensive Python wrapper for the GitHub API. Designed to streamline interactions with GitHub repositories, it offers a range of functionalities from basic repository operations to complex integrations like pull requests and commit management.
- List repository contents
- Create, update, and delete files in a repository
- Download repository tarballs
- Manage pull requests and list commits
- Support for multiple output formats: JSON, ZIP, TAR, XML
To install GitAPy, you need Python 3.x and the following dependencies:
- requests
- json
- rich
Clone the repository using:
git clone https://github.com/lseman/gitAPy.gitThen, navigate to the cloned directory and install the required packages:
pip install -r requirements.txtRun the tool from the command line using:
python gitapy.py [options] [arguments]-h,--help: Show help message and exit-v,--version: Show version information-l,--list: List repository contents-a,--create: Create a new file-u,--update: Update an existing file-d,--delete: Delete an existing file-t,--tarball: Get repository tarball-p,--pulls: List pull requests-c,--commits: List commits
-o,--owner: Repository owner-r,--repo: Repository name-p,--path: Repository path-m,--message: Commit message-f,--file: File name-s,--sha: File SHA-b,--branch: Branch name-r,--ref: Reference name-a,--archive: Archive format-t,--token: GitHub personal access token-v,--version: GitHub API version
This project is licensed under the MIT License.
For any inquiries or issues, please contact Laio O. Seman at laio [at] ieee [dot] org.