Convert data from hotels.csv in a given format. The output is based on the format and it can be output.yml (for YAML) or output.db (for sqlite).
- Python 3.x
- Virtualenv
-
Create a virtualenv with python3:
virtualenv venv -p python3
-
Activate the virtualenv:
. venv/bin/activate
-
Install python requirements with pip
pip install -r requirements.txt
python manage.py convert hotels.csv --output_format=yaml
python manage.py convert hotels.csv --output_format=sqlite
python -m unittest hotels.tests