- Python 3
- pip
- pyvenv
git clone https://github.com/adregan/point-grouping-test.git
cd point-grouping-test
pyvenv env
source env/bin/activate
pip install -r requirements.txt
python main.py 3 -i points.json -o groups.json
python main.py -h
to see all the available options and required arguments. By default, this program accepts input from stdin
and outputs by default to stdout
:
cat points.json | python main.py 3 > groups.json
You can pass in a file using the -i
flag and specify your output file with the -o
flag:
python main.py 3 -i points.json -o groups.json