Skip to main content
https://travis-ci.org/MacHu-GWU/pygitrepo-project.svg?branch=master https://codecov.io/gh/MacHu-GWU/pygitrepo-project/branch/master/graph/badge.svg https://img.shields.io/pypi/v/pygitrepo.svg https://img.shields.io/pypi/l/pygitrepo.svg https://img.shields.io/pypi/pyversions/pygitrepo.svg https://img.shields.io/badge/Star_Me_on_GitHub!--None.svg?style=social

Welcome to pygitrepo Documentation

pygitrepo can quickly initiate a python project from scratch, and you get these development tools ready to use and configured:

  • virtual environment management, up, clean, switch.

  • continues integration for unit test and code coverage on your local machine and also cloud.

  • document site management, write, build, view and deploy.

  • publish your package to PyPI, make it installable everywhere.

Features

If you initiate your project with pygitrepo, you are with these powerful tools out-of-the-box:

  • make up: single command to create / clean virtual environment.

  • make reformat: command to Google stylize your code.

  • make install: (For end user) install your package (setup.py file is out-of-the-box).

  • make dev_install: (For package developer) install your package in dev mode (setup.py file is out-of-the-box).

  • make test: unittest with pytest (tests folder and scripts is out-of-the-box, just follow the pattern and create more).

  • make cov: code coverage test with coverage, the default .coveragerc fit most of the case).

  • make tox: multi python version test with tox, the default tox.ini fit most of the case.

  • built-in integration with https://travis-ci.org/.

  • built-in integration with https://codecov.io/.

  • make build_doc / view_doc: easy sphinx document writing, no need to run sphinx-quickstart, and write conf.py file.

  • make deploy_doc: deploy document to AWS S3.

  • make publish: publish your project to PyPI

pygitrepo is compatible with Windows / MacOS / Linux, which means you can enjoy same patterns / commands you use in development everywhere without and file changes.

Usage

Command Line Tool

  1. Install: $ pip install pygitrepo.

  2. Run command line tool: $ pygitrepo-init, entry your settings following the instruction.

  3. A <repo-name> directory will be created, you can use this as your github repo directory.

  4. Take a look at Makefile, all magic happens here!

Python Script Initializer

If you want to programmatically initialize your repository, you can do:

import pygitrepo

package_name = "obama_care" # import obama_care
github_username = "Obama"
supported_py_ver = ["2.7.13", "3.4.6", "3.5.3", "3.6.2"]
author_name = "Obama"
author_email = "example@email.com"
license="MIT"
s3_bucket = "doc-host"
doc_service = "s3" # "none", "rtd", "s3"


if __name__ == "__main__":
    pygitrepo.init(
        package_name=package_name,
        github_username=github_username,
        supported_py_ver=supported_py_ver,
        author_name=author_name,
        author_email=author_email,
        license=license,
        s3_bucket=s3_bucket,
        doc_service=doc_service,
    )

All available options and its definition can be found Here or Here.

Install

pygitrepo is released on PyPI, so all you need is:

$ pip install pygitrepo

To upgrade to latest version:

$ pip install --upgrade pygitrepo

Download files

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

Source Distribution

pygitrepo-0.0.14.tar.gz (61.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygitrepo-0.0.14-py2-none-any.whl (86.6 kB view details)

Uploaded Python 2

File details

Details for the file pygitrepo-0.0.14.tar.gz.

File metadata

  • Download URL: pygitrepo-0.0.14.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygitrepo-0.0.14.tar.gz
Algorithm Hash digest
SHA256 c9517e2e22932fd34dd74a71ee8ede84b7e02bfb1ec4852b15f9cdb8da52445c
MD5 b145409331279d5cc6f0cdff277268f9
BLAKE2b-256 b1a785e7181f057ea3f4cfbc38219e7ac87e038bdfa4aea278bb06cf6a4d56cb

See more details on using hashes here.

File details

Details for the file pygitrepo-0.0.14-py2-none-any.whl.

File metadata

File hashes

Hashes for pygitrepo-0.0.14-py2-none-any.whl
Algorithm Hash digest
SHA256 6c1d346146a3ab7630128433b8def82a2f69d17de8366c3e09e3fd7de797386c
MD5 548b1d62a78594ac602c634e155eac37
BLAKE2b-256 0f92e1a164c778b2f5fb3111ff7955b0b35c421680d3d9b6884958771fa8ac9b

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

This release

0.0.14 This release

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page