Skip to main content

Backend for the DeSEAsion application stack

Project description

deSEAsion

deSEAsion is a collaborative support tool for maritime decision making.

deseasion-backend

This package contains its backend, as the namespace package deseasion.backend. It can be installed simply:

pip install deseasion-backend

Alternatively, you can install it from its source repository:

git clone https://gitlab.com/decide.imt-atlantique/deseasion.git
cd deseasion/backend
pip install .

It is not meant to be used outside a docker container with the whole application stack. We are only distributing this package so the backend can be easily expanded by users with specific needs for which the generic deSEAsion backend is not enough.

However, you can test the backend easily. It needs an instance/config.py file in the directory in which you will run it which you can either copy from deseasion/backend/instance-example or generate from the deseasion/backend directory using the bash script configure-backend.sh. In the latter case, you will need to supply at least the following environment variables:

DB_URI             # URI of the Postgresql/PostGIS database
CELERY_BROKER_URL  # URL of the Redis broker used by celery to communicate with the backend

Once setup, you can run the backend with:

python -m deseasion.backend.app
# or
ENV FLASK_APP=deseasion.backend.app
flask run

You can run a celery worker from the same directory (sharing the same instance/config.py file) with:

celery -A deseasion.backend.app.celery worker

Copyright and licence

deSEAsion is copyrighted (C) 2016-2025 by IMT Atlantique Bretagne Pays de la Loire and Service hydrographique et océanographique de la marine (Shom). Licensed under the European Union Public Licence (EUPL) v1.2.

Please refer to the file LICENCE containing the text of the EUPL v1.2.

You may also obtain a copy of the license at: https://joinup.ec.europa.eu/software/page/eupl

For more information on this license, please refer to:

Documentation

See the documentation if you need any information about the project, how to install or contribute to it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deseasion_backend-0.3.0.tar.gz (142.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deseasion_backend-0.3.0-py3-none-any.whl (179.4 kB view details)

Uploaded Python 3

File details

Details for the file deseasion_backend-0.3.0.tar.gz.

File metadata

  • Download URL: deseasion_backend-0.3.0.tar.gz
  • Upload date:
  • Size: 142.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for deseasion_backend-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e14fde70847e398524a69fd05a54bebad1178eefd327701276694d20294b9181
MD5 e012768a9396f86ebc5e78e13d872283
BLAKE2b-256 724d57f5471b17918659726d0d543f1a948829493440d7ca7ea572e477bc57f1

See more details on using hashes here.

File details

Details for the file deseasion_backend-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deseasion_backend-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5b3778b1458511a74f6a22dd898f13bcc3574bed23461c7f896cc56f86c3979
MD5 1b4ce714ac1d8b49024faca222212569
BLAKE2b-256 0a3e3d96bcbbb9a0e9777df1ce00253a7379e2977db0d4b6db723333d64ad662

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page