/greenart

Greenart draws image on your github green panel

Primary LanguagePython

Greenart

Build Status

Screenshot

Greenart draws image on your github green panel

Installation

pip3 install greenart

Usage

  1. Clone this repo
git clone https://github.com/seregayoga/greenart.git
  1. Change dir to repo
cd ./greenart
  1. Create your own repo with any name, for example yourrepo

  2. Change origin

git remote set-url origin git@github.com:yourname/yourrepo.git
  1. Run
greenart examples/greenart.png | bash

Instead of examples/greenart.png can be any image that scales to github activity panel

Testing

$ pip install -r requirements-dev.txt
$ nosetests -v

Test Image.get_commands method ... ok
Test Image._get_commit_from_past method ... ok
Test Image._get_days_ago_when_was_first_sunday method ... ok
Test Image._get_github_color_from_grey method ... ok

----------------------------------------------------------------------
Ran 4 tests in 0.038s

OK