Skip to content
forked from lseman/gitAPy

gitAPy - A Python wrapper for the GitHub API

Notifications You must be signed in to change notification settings

SoulHarsh007/gitAPy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitAPy

Overview

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.

Features

  • 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

Installation

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

Then, navigate to the cloned directory and install the required packages:

pip install -r requirements.txt

Usage

Run the tool from the command line using:

python gitapy.py [options] [arguments]

Options:

  • -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

Arguments:

  • -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

License

This project is licensed under the MIT License.

Contact

For any inquiries or issues, please contact Laio O. Seman at laio [at] ieee [dot] org.

About

gitAPy - A Python wrapper for the GitHub API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%