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.1.2.tar.gz (141.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.1.2-py3-none-any.whl (178.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deseasion_backend-0.1.2.tar.gz
  • Upload date:
  • Size: 141.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.1.2.tar.gz
Algorithm Hash digest
SHA256 0957c8130b649b3443c1c3be690ae8da784b1aa152dafbc5d1fe7d7f53127854
MD5 0afddd30650e606f9cd39ae63f5241d9
BLAKE2b-256 63ac42c34655eb1b7d69d51510c4eac57af683687cf1324db8904af00e59ff63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deseasion_backend-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac90743df33298a2421399685408ed0e11cd400956b2b86ce226f8284447677c
MD5 2a4116eaf97018e59941182d246ef880
BLAKE2b-256 6b79e891e476313b129b75f56198f3ef70ea7877c6e2814e37cc80d41f95044b

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