This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# simplegit A python module for simple interaction with git via subprocess.

### How? ` # pip install simplegit ` (note: this doesn’t work via pip yet. Working on that.) `python from simplegit import Git git = Git() output_lines, returncode, error_lines = git.status() `

### Why? In personal projects, I always find myself writing scripts to automate parts of the development process. One example is checking out a gh-pages branch for a Github Pages website, pushing to gh-pages, then checking out master again - usually I have a script called which automates this. If you’re conditionally ignoring files based on the branch, you have even more processing to do (including extra commits). It’s kind of clumsy to execute these git commands using python’s subprocess, so simplegit provides a nice wrapper.

### How does it work? The Git class form simplegit simply takes a call to it (for example Git().status("-s")), builds a subprocess command, executes it, and returns the relevant information. Any git command (e.g. status, commit, push, pull) is available, since the python object blindly proxies the function name to build the command (e.g. git.add("-A") -> git add -A). Some examples:

`python lines, rtncode, err_lines = git.status("-s") lines, rtncode, err_lines = git.commit("-m 'A fun message'") `

If you need to call a git command that would produce a python syntax error, like ls-files, you can use Git().call:

`python"ls-files", "--others --exclude-standard") `

### Contributing Right now, this is just a one-off side project that I started. If you’d like to contribute or have ideas, pull requests are welcome!

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
simplegit-0.0.1-py2.py3-none-any.whl (4.6 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jan 18, 2016
simplegit-0.0.1.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Jan 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting