Boilerplate CLI application with some utilities.
Requires Python 3.8+ to run. To start the virtual environment run the following commands:
python3 -m venv venv
source venv/bin/activate
To install the required dependencies run the following command:
pip install -r requirements.txt
For development purposes, run the following command instead:
pip install -r requirements-dev.txt
This application can perform several operations, each requiring the execution of a particular command inside the virtual environment mentioned above:
python ptdata/manage.py <command>
This application allows the user to:
fetch
data from all sources and store files in thetmp/
directory.load
the data from the existing files onto a local SQLite3 database.match
ECHE List data with the corresponding entries identified in DGEEC. Interactive command.compile
data for the ECHE API, generating a verified data set. Interactive command.export
CSV file with verified data matching the ECHE API specification.
- The
fancydemo
command showcases formatted CLI output used in scripts. - The
lint
command enforces style guide and sorts imports in scripts. - The
shell
command provides an interactive Python shell.