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.0.tar.gz (141.9 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.0-py3-none-any.whl (178.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deseasion_backend-0.1.0.tar.gz
  • Upload date:
  • Size: 141.9 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.0.tar.gz
Algorithm Hash digest
SHA256 a891c4a1532c38cfe8f19534be8a8207a98d0b48a7fbca8d51395cdb7f96f1f7
MD5 76d900f782ad353820e658ee041c966a
BLAKE2b-256 8f4af112be8b0151eec0e95d8e3619e73cd454ba7b59ad0c943e517586289836

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deseasion_backend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 801dd42e6d34b216315cfbcaffb8c15f45183f040d75fe16aa2d671c01e14459
MD5 70dd29a5d0dbb847fa02c8deae3d8827
BLAKE2b-256 a13659c16fb2e1331cc4a33e82eb00ad6dcfbb85326c3a4f539455dbc7171fd7

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