Skip to content

ma-al/weeker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

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 ...

Code Quality

Build Status

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.

Setup

First create an isolated environment, using either of:

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

Testing

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

Releases

No releases published

Packages

No packages published