Requirement: Python 3.8+
Setup:
git clone git@github.com:oslokommune/okdata-cli.git
cd okdata-cli
python3 -m venv .venv
source .venv/bin/activate
make init
When developing towards the okdata-sdk library:
cd okdata-cli
python3 -m venv .venv
. .venv/bin/activate
export PYTHONPATH=$PYTHONPATH:/<path-to-sdk>/okdata-sdk-python/
python3 bin/cli.py datasets ls
okdata
can be run in either dev
or prod
.
When determining in which environment to run a command, the application loads the environment in the following order, and chooses the first it encounters:
--env=prod|dev
option for every commandOKDATA_ENVIRONMENT
from the current environment- Default:
prod
$ make test
Documentation is written in Markdown and is located in the doc
directory.
Okdata CLI releases are hosted at PyPI,
making it easy to install using pip install okdata-cli
.
Use the following recipe when uploading a new release to PyPI:
python3 setup.py sdist bdist_wheel
twine upload dist/*
This depends on having the packages setuptools
, wheel
, and twine
installed.