Skip to main content

BioMAJ download service

Project description

# About

Experimental (in progress) microservice to manage the downloads of biomaj.

A protobuf interface is available in biomaj_download/message/message_pb2.py to exchange messages between BioMAJ and the download service.
Messages go through RabbitMQ (to be installed).

# Protobuf

To compile protobuf, in biomaj_download/message:

protoc --python_out=. message.proto

# Development

flake8 biomaj_download/*.py biomaj_download/download

# Prometheus metrics

Endpoint: /api/download/metrics


# Run

## Message consumer:
export BIOMAJ_CONFIG=path_to_config.yml
python bin/biomaj_download_consumer.py

## Web server

export BIOMAJ_CONFIG=path_to_config.yml
gunicorn biomaj_download.biomaj_download_web:app

Web processes should be behind a proxy/load balancer, API base url /api/download


3.0.6:
Fix download_or_copy to avoid downloading a file existing in a previous production directory
3.0.4:
Fixes on messages
3.0.3:
Fix management of timeout leading to a crash when using biomaj.download parameter.
3.0.2:
set rabbitmq parameter optional
3.0.1:
add missing README etc.. in package
3.0.0:
move download management out of biomaj main package

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

biomaj_download-3.0.6.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

biomaj_download-3.0.6-py2.py3-none-any.whl (34.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file biomaj_download-3.0.6.tar.gz.

File metadata

File hashes

Hashes for biomaj_download-3.0.6.tar.gz
Algorithm Hash digest
SHA256 f8908013b55c06bd6e08c2f7c7c1e7040a4e8563ab583b52d4a06a2e95d66710
MD5 aae6b58b9d2fe593dd1aa6b34eb4448a
BLAKE2b-256 bcd8e5f23117355c85b7c681450ce657278b7d517f374329db39c81f56ff2cc4

See more details on using hashes here.

File details

Details for the file biomaj_download-3.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for biomaj_download-3.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6f5cab736f2e27f3f79f88963848413ea5f445ebefd566026b0ab09299d69412
MD5 16c9fa4173e72b7239d1ff5f7a729147
BLAKE2b-256 8bf117d4f4bca61fd58e5f241522b712eace9e50d16b559624113f5ac4775e53

See more details on using hashes here.

Supported by

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