Skip to main content

Natural Git Command Line Tool

ngit is a simple natural language based git command line tool which enables users to use git in natural language. The package is built on top of git and GitHub CLI and is intended as a demonstration of edge device function calling AKA API calling using LLM.

Features

  • This is still in development, No stable release is available yet.
  • You can run the ngit(Natural git) command like:
    • ngit "Add all files to staging area" >> this is just translate the command, and provide the command for edit
    • ngit "Add all files to staging area" -e >> this will execute the command without asking for edit
  • You can run the mgit(Machine git) command like:
    • mgit git for example: mgit git rename_branch develop development
    • You can see all available commands by
      • mgit --help
      • mgit git --help
    • Available commands:
      • add Add files to staging
      • add_remote Add a new remote
      • checkout Checkout to a branch
      • clone Clone a git repo
      • commit Commit with a message
      • config_email Configure Git global email
      • config_username Configure Git global username
      • create_branch Create a new branch
      • delete_branch Delete a branch
      • init Initialize a new git repo
      • list_remotes List all remotes
      • pull Pull changes from remote
      • push Push changes to remote
      • remove_remote Remove a remote
      • rename_branch Rename a branch
      • reset_last_commit Remove the last commit (soft/mixed/hard)
      • status Show git status
      • unstage Remove files from staging

Installation

You can install the package via PyPI or from source.

Install from PyPI

pip install ngit-cli

for local installation of the package just run following from root directory pip install .

Install from Source (GitHub)

git clone https://github.com/faerber-lab/ngit-cli.git
cd ngit-cli
pip install .

Usage

After installation, you can use ngit-cli using natural english to use git and GitHub from terminal

Example:

ngit "Change the develop branch name to development"
mgit git status

Dependencies

  1. git
  2. GitHub CLI
  3. torch
  4. click
  5. prompt_toolkit
  6. yaspin

Metadata

Release files for ngit-cli 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ngit-cli 0.0.1
File Size Uploaded Provenance Actions
ngit_cli-0.0.1.tar.gz 22.1 kB Without provenance Details for ngit_cli-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ngit-cli 0.0.1
File Interpreter ABI Platform Actions
ngit_cli-0.0.1-py3-none-any.whl Python 3 none any Details for ngit_cli-0.0.1-py3-none-any.whl

Total release size: 45.2 kB

Release files / ngit_cli-0.0.1.tar.gz

Download URL ngit_cli-0.0.1.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4bffdc41af40d626067da96e5e363828c94f8583b53f1d8c8e93e7c21fe7afe1
BLAKE2b-256 checksum
How to use checksums
652ccf25a28bb1b0a4e6a928e1cc7e899ef118b48267c8502fac5302356988eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / ngit_cli-0.0.1-py3-none-any.whl

Download URL ngit_cli-0.0.1-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c2c813f5083d9e5819cb45dba3d78ed5bbb06e651976fae87915bdd0a6bd68c
BLAKE2b-256 checksum
How to use checksums
de46721ebbd37e2f77ff8c3b0b4397ba45050cb2f83b4190d6a4043e5a4bdb78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Security for ngit-cli 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page