Skip to content

Repository for deeper integration between iSamples and SESAR

License

Notifications You must be signed in to change notification settings

isamplesorg/isamples_sesar

Repository files navigation

iSamples SESAR

Deep integration between the SESAR Postgresql schema and the iSamples data model.

Environment setup

To set up python, follow the instructions in the python setup guide.

Poetry setup

Follow the installation instructions in the poetry documentation.

Activate the python virtual environment

poetry shell, then once it's activated poetry install

Setup the database

Create the database

psql postgres
CREATE DATABASE isb_sesar;
CREATE USER isb_sesar WITH ENCRYPTED PASSWORD 'some_password';
GRANT ALL PRIVILEGES ON DATABASE isb_sesar TO isb_sesar;

Import the dump file into the newly created database

pg_restore -d isb_sesar ./sesardb-schemaonly.dump

Run the main script

python main.py -d ��"postgresql+psycopg2://isb_writer:password@localhost/isb_sesar"

Run the test script

pytest --db-url=��"postgresql+psycopg2://username:password@DB_HOST/DB_NAME"

About

Repository for deeper integration between iSamples and SESAR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published