Installation¶
Verification¶
Quick check that it works
python
>>> from nutsflow import *
>>> Range(5) >> Square() >> Collect()
[0, 1, 4, 9, 16]
You can also run the entire unit test suite using pytest
:
cd my_python_path/site-packages/nutflow
pytest
Note
If you don’t know where your site-packages
are, run the following code
python -c "import site; print(site.getsitepackages())"
['C:\\Maet\\Software\\Anaconda', 'C:\\Maet\\Software\\Anaconda\\lib\\site-packages']
Bleeding-edge¶
If you want the bleeding-edge version, install via
git clone
from GitHub
git clone https://github.com/maet3608/nuts-flow.git
cd nuts-flow
python setup.py install
pytest
Upgrade¶
For upgrading an existing installation
pip install nutsflow --upgrade
or if installed via git clone
and setup.py
cd nuts-flow
python setup.py install --force
Virtual environment¶
Create virtual environment:
pip install virtualenv
cd my_projects
virtualenv vnuts
Activate/deactivate environment:
Linux, Mac
$ source vnuts/bin/activate
$ deactivate
Windows
> vnuts\Scripts\activate.bat
> vnuts\Scripts\deactivate.bat
Install nuts-flow in virtual environment (here for Linux, Mac)
source vnuts/bin/activate
pip install nutsflow