Skip to main content

A shell command wrapper for hg, git, bzr, svn

Project description

pyrpo

GitHub | PyPi | Warehouse | Documentation | Travis-CI

http://img.shields.io/pypi/v/pyrpo.svg http://img.shields.io/pypi/dm/pyrpo.svg http://img.shields.io/github/release/westurner/pyrpo.svg http://img.shields.io/travis/westurner/pyrpo/master.svg

pyrpo: a shell command wrapper for hg, git, bzr, svn

Features

  • Wrap and parse shell commands (largely as a reference)

  • Walk for repository directories

  • Generate reports for one or more repositories

  • Call hg status, git status, etc.

  • Generate mercurial .hgsubs

  • Generate git .gitsubmodule

  • Generate pip requirements.txt

  • Generate shell script (to rebuild environment)

    • TODO: replicate branches/tags/revisions

  • Functional namedtuples, iterators yield -ing generators

  • optparse argument parsing (-h, --help)

  • cookiecutter-pypackage project templating

Installing

Install from PyPi:

pip install pyrpo

Install from GitHub as editable (add a pyrpo.pth in site-packages):

pip install -e git+https://github.com/westurner/pyrpo#egg=pyrpo

Usage

Print help:

pyrpo --help

Scan for files:

# Scan and print a shell report
pyrpo -s . -r sh
pyrpo

Generate a TortoiseHG thg-reporegistry.xml file:

pyrpo -s . --thg

Generate a pip report:

pyrpo -r pip

Generate a status report:

pyrpo -r status

Generate an .hgsubs file:

pyrpo -r hgsub

Generate a .gitmodules file:

pyrpo -r gitmodule

Generate an origin report:

pyrpo -r origin

Generate a string report:

pyrpo -r str

License

BSD Software License

.

History

0.2.0 (2015-04-25)

0.1.0 (2014-05-12)

Credits

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

pyrpo-0.2.0.tar.gz (27.0 kB view hashes)

Uploaded Source

Built Distribution

pyrpo-0.2.0-py2.py3-none-any.whl (18.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page