Converts a tabbed CSV file into list of lists chunked by weeks.
Eventually, this will be installable via python setup.py install
and
pip install ...
This repo uses Travis for code quality checks.
py.test
coverage
(only 70% for now)pylint
flake8
Use the included local-cqa.sh
script to run the above checks locally on your
machine before code-pushes.
First create an isolated environment, using either of:
- virtualenv, or
- miniconda.
I like conda
as sometimes it has packages missing in PyPI (e.g., OpenCV
).
Plus pip
works just fine inside a conda
environment.
Note that the instructions here work on Mac and Linux. If you're on Windows, seek help.
# create a new environment with latest pip and go into it
conda create -n week pip
source activate week
cd $CONDA_PREFIX
# should be something like: /Users/<username>/miniconda2/envs/week/
pwd
# now clone this repo
git clone https://github.com/ma-al/weeker.git
If developing, you'll need to install packages that allow you to do the tests above.
cd weeker
pip install -r reqs/dev.txt
Work In Progress
Run the code and see output chunked into weeks using:
python weeker/weeker_class.py tests/data/example.csv
# same but saving all output
python weeker/weeker_class.py tests/data/example.csv -s