This is a python class with utilities createdd to interact with Git and GitHub APIs.
pip install gitator
First, import the class:
from gitator import Gitator
Then create an object and use whatever method you need:
gitator = Gitator()
gitator.create_github_connection(github_token)
This script uses the pytest framework in order to run unit tests.
In order to run tests, firt clone the repo and create a virtualenv
:
git clone [email protected]:enkelbr/gitator.git
virtualenv -p python3 gitator
cd gitator
source bin/activate
Then install the deps. For example (on Enterprise Linux):
sudo yum install python pip
cd gitator
pip install -r requirements.txt
To run tests, just run pytest:
pytest