Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

a wrapper of git command

Project Description

gitcmd

PyPI Version PyPI Monthly downloads Build Status Wheel Status Coverage report

Overview

gitcmd is a wrapper of ‘git’ command , it can interact with git command where need username and password.

Installation

The quick way:

pip install gitcmd

Usage

Clone git respositroy

from gitcmd import GitCmd
clone_to = 'mydir'
url = "https://github.com/philoprove/gitcmd.git"
ge = GitCmd(work_dir=clone_to, url=url)

if you clone with ssh, you may need config ssh key at first.

Clone gitlab with username,password

from gitcmd import GitCmd
import os
ge = GitCmd(work_dir="clone_to_where", url="", user="user",pwd="pwd")

# work dir should be either empty or not exists
ge.clone()


# after repository was cloned to local , you can execute other commands
ge.checkout()
ge.pull()
ge.execute("git diff ...")

Release history Release notifications

This version
History Node

1.1.1

History Node

1.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gitcmd-1.1.1-py2.py3-none-any.whl (4.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Oct 30, 2015
gitcmd-1.1.1.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None Oct 30, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page