A command line interface for working with git written in python with the help of py_cui.
Project description
pyautogit
A command line interface for working with git written in python with the help of py_cui.
Installation
An obvious prerequisit to installing pyautogit
is to have git
installed and in your system path. Once this is done, you may install the module.
To install pyautogit
, it is recommended to use pip
:
pip install pyautogit
This will also install py_cui
, the Command Line UI builder library upon which the project is based, and windows-curses
if running on windows, which is a curses
emulator for the win32 platform.
Alternatively, you can install from source. Clone this repository and use pip
to install:
git clone https://github.com/jwlodek/pyautogit
cd pyautogit
pip install .
If pyautogit
is already installed and you would like to update it, use:
pip install --upgrade pyautogit
or
cd pyautogit
git pull
pip install --upgrade .
if updating a local version.
Note that you may require root access for installing with pip
depending on your system's python configuration.
Usage
Once pyautogit
is installed, open a command line client (note that Windows Terminal is not yet supported), then navigate to a directory and type:
pyautogit
You can also specify an external directory:
pyautogit -w /home/jwlodek/repos
If you open pyautogit
in a directory that contains a .git
folder, it will treat it as a repository, while if it cannot find said folder, the target location will be treated as a workspace.
Repository Screen
From the repository screen, you manage the local opened repository. You may create commits, tags, push and pull, and manage branches. For more detailed information on using the Repository Screen, please check the documentation.
Workspace Screen
The workspace screen allows for managing multiple git
repositories at once. From here, all subdirectories that are identified as git repositories are listed, and you may open their respectiver repository screens. Also, you may clone new repositories, as well as create new blank repositories.
Credential Management
When an action is performed that requires credentials (ex. git push), pyautogit
will ask for your git remote username and password. These are then stored as environment variables for the running process, and are used with git askpass
to perform operations. As a result, if you open an editor after credentials are entered (ex. VSCode), and use the integrated terminal to process git
commands, you will not have to enter credentials again. Credentials are stored only for the duration the window is open, and must be re-entered after each restart.
License
BSD 3-Clause License
Copyright (c) 2020, Jakub Wlodek All rights reserved.
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
Built Distribution
Hashes for pyautogit-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8433f432f66d33c94e2597f430afb1e5c68fe9949139aaa08b51f3446da6701f |
|
MD5 | 54a2da8242c9584851cba790d7d1b29c |
|
BLAKE2b-256 | a95898be0b6a9353c1b94fd656fac2fc8239e918f50ad8e6f0a40753277bb684 |