Giter VIP home page Giter VIP logo

pyautogit's Introduction

pyautogit Downloads PyPI version

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. You will also require python 3.4+, and python3 and python must be reachable on your system PATH for operations that require git credentials. 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.

Demo

Below is a quick demo of using pyautogit to do some common git actions.

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.

Use the keyboard shortcut descriptions listed in the status bar at the bottom of the window to navigate the interface and menus.

License

BSD 3-Clause License

Copyright (c) 2020, Jakub Wlodek All rights reserved.

pyautogit's People

Contributors

jwlodek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyautogit's Issues

Add compact mode

It would be worthwhile to have a compact mode for using pyautogit in smaller terminal windows:
#2

Errors out on Linux x64 with Miniconda

Not sure if this is an MiniConda specific issue, but

Traceback (most recent call last):
  File "/home/codic/.local/bin/pyautogit", line 8, in <module>
    sys.exit(main())
  File "/home/codic/.local/lib/python3.7/site-packages/pyautogit/__init__.py", line 182, in main
    manager = PyAutogitManager(root, target, input_type, save_metadata, credentials)
  File "/home/codic/.local/lib/python3.7/site-packages/pyautogit/__init__.py", line 342, in __init__
    self.open_repo_select_window()
  File "/home/codic/.local/lib/python3.7/site-packages/pyautogit/__init__.py", line 425, in open_repo_select_window
    self.root.apply_widget_set(self.repo_select_widget_set)
  File "/home/codic/.local/lib/python3.7/site-packages/py_cui/__init__.py", line 278, in apply_widget_set
    self.refresh_height_width(height, width)
  File "/home/codic/.local/lib/python3.7/site-packages/py_cui/__init__.py", line 925, in refresh_height_width
    self.grid.update_grid_height_width(self.height, self.width)
  File "/home/codic/.local/lib/python3.7/site-packages/py_cui/grid.py", line 132, in update_grid_height_width
    raise py_cui.errors.PyCUIOutOfBoundsError
py_cui.errors.PyCUIOutOfBoundsError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.