/gslab_python

Python tools for GSLab

Primary LanguagePythonMIT LicenseMIT

GSLab Python Library Collection 4.1.0

Overview

This repository contains the following GSLab Python libraries:

  • gslab_make
  • gslab_fill
  • gslab_scons
  • gencat

Information about each of these packages is available in its internal documentation.

Requirements

Installation

The preferred installation method is to use pip:

pip install git+ssh://git@github.com/gslab-econ/gslab_python.git@master

or

pip install git+https://git@github.com/gslab-econ/gslab_python.git@master

which are the SSH and HTTPS protocol versions.

The package at any tagged release, branch, or commit can be installed with the same commands, just changing master to the desirved target e.g.,

pip install git+ssh://git@github.com/gslab-econ/gslab_python.git@<tagg, branch name, or commit hash>

Note that this installation procedure may require obtaining machine privileges through, say, a sudo command.

Alternatively, one may install the local version of gslab_python by running (from the root of the repository)

python setup.py install clean

However, this installation method may not remove previous versions of gslab_tools.

Testing

We recommend that users use coverage to run this repository's unit tests. Upon installing coverage (this can be done with pip using the command pip install coverage), one may test gslab_python's contents and then produce a code coverage report the commands:

python setup.py test [--include=<paths>]

Here, the optional --include= argument specifies the files whose test results should be included in the coverage report produced by the command. It works as coverage's argument of the same name does. The command should be run without this option before committing to gslab_python.

License

See here.

FAQs

Q: What if I want to install a different branch called dev of gslab_python rather than master? A: Either git checkout dev that branch of the repo before installing, or change @master to @dev in the pip install instruction.