Skip to main content

Allow beginner to develop Python project like a Pro - Quickly initiate a python project from scratch.

Project description

Documentation Status 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
https://img.shields.io/badge/Link-Document-blue.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Source_Code-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to pygitrepo Documentation

pygitrepo is a tool that can initiate a professional-liked python project skeleton from scratch, JUST NEED TO ENTER THE LIBRARY NAME!

WITHOUT pygitrepo:

$ git init my_library # initiate your git repo
$ vim .gitignore # edit .gitignore file

$ virtualenv my_library_venv # create venv
$ source ./my_project_venv/bin/activate # activate venv
$ vim setup.py # edit setup.py file, DO YOU REALLY KNOW HOW TO WRITE setup.py FILE?
$ pip install . # install your library and dependencies
$ pip install pytest
$ mkdir tests # write some test
$ pip install sphinx
$ sphinx-quickstart # initiate doc
$ vim docs/source/conf.py # configure your doc settings

Now you finally read to start writing the real code. However, it could be more complicate on Windows.

After you finished your development, you want to test it before you publish:

$ vim .travis.yml # configure your continues-integration, or use .circleci
$ vim tox.ini # configure tox to test on Py2.7, 3.4, 3.5, ...
$ vim .coveragerc # configure code coverage test
$ pip install tox
$ pip install coverage

I guess it would take you at least AN HOUR to read the document for continues integration, code coverage test, and multiple python version test… Do you know how many pitfalls are in these?

But if WITH pygitrepo:

$ pip install pygitrepo
$ pygitrepo-init # call the command line tool, and enter your project name
(REQUIRED) Your Package Name (e.g. pip): pygitrepo
(REQUIRED) Your Github Username: Machu-GWU
more optional prompt, you can use the default ...

Done!

a new git repo directory my_library-project will be created. .gitignore, setup.py, requirements-dev/doc/test.txt, .travis.yml, .coveragerc, docs/source/conf.py, tests/some_test.py ..., etc, … All functions are ready to use, you don’t need to edit anything!

Create and Remove virtualenv:

$ make up # create
$ make clean # remove

Install your library and Run Test:

$ make test # unit test
$ make cov # code coverage test
$ make tox # multi python version test

Build Document with auto-generated API reference:

$ make build_doc # build your document site
$ make view_doc # open your doc in browser
$ make deploy_doc # deploy your doc website to s3

Want to publish to Python Package Index?, Let’s do:

$ make publish

Install

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

$ pip install pygitrepo

To upgrade to latest version:

$ pip install --upgrade pygitrepo

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

pygitrepo-0.0.25.tar.gz (72.9 kB view details)

Uploaded Source

Built Distribution

pygitrepo-0.0.25-py2.py3-none-any.whl (99.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pygitrepo-0.0.25.tar.gz
  • Upload date:
  • Size: 72.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.13

File hashes

Hashes for pygitrepo-0.0.25.tar.gz
Algorithm Hash digest
SHA256 d907da052d0b7031ebf49ea834ba2e7d87d5a3aafb14ca7187bda7c4787544f2
MD5 a63ff2e909a246a7f8e3dbe0c84c6cb7
BLAKE2b-256 abd3795ce160ca4912c3e9c3007235f040fb5a2c300cace7f485a43f655a380b

See more details on using hashes here.

File details

Details for the file pygitrepo-0.0.25-py2.py3-none-any.whl.

File metadata

  • Download URL: pygitrepo-0.0.25-py2.py3-none-any.whl
  • Upload date:
  • Size: 99.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.13

File hashes

Hashes for pygitrepo-0.0.25-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e0bfad7d4bff91e2bff7389318ed3bc8fb90e95fd3fec52485216632bc775383
MD5 84e10d0bf045c63820e91f27cb0c41d5
BLAKE2b-256 8d29961e9e3a698bf3f754853e7ac598bf76d24ce7b09ef619213c23e9843943

See more details on using hashes here.

Supported by

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