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
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
Release history Release notifications | RSS feed
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)
Built Distribution
File details
Details for the file biomaj_download-3.0.6.tar.gz
.
File metadata
- Download URL: biomaj_download-3.0.6.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8908013b55c06bd6e08c2f7c7c1e7040a4e8563ab583b52d4a06a2e95d66710 |
|
MD5 | aae6b58b9d2fe593dd1aa6b34eb4448a |
|
BLAKE2b-256 | bcd8e5f23117355c85b7c681450ce657278b7d517f374329db39c81f56ff2cc4 |
File details
Details for the file biomaj_download-3.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: biomaj_download-3.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5cab736f2e27f3f79f88963848413ea5f445ebefd566026b0ab09299d69412 |
|
MD5 | 16c9fa4173e72b7239d1ff5f7a729147 |
|
BLAKE2b-256 | 8bf117d4f4bca61fd58e5f241522b712eace9e50d16b559624113f5ac4775e53 |