Skip to content

Higher Education Institution data aggregator - Portugal

Notifications You must be signed in to change notification settings

tiagosimoes-euf/hei_data_pt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Higher Education Institution data aggregator - Portugal

Boilerplate CLI application with some utilities.

Installation

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

Usage

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>

List of commands

This application allows the user to:

  • fetch data from all sources and store files in the tmp/ 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.

Helper commands for development

  • 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.

About

Higher Education Institution data aggregator - Portugal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages