Docker executor for PySRIM
Project description
pysrim-docker
Docker executor for PySRIM
Getting Started
To use this package, simply replace your SR
or TRIM
imports with those from srim.docker
, e.g.
from srim.docker import TRIM
trim = TRIM(...)
Out of the box, pysrim-docker
uses the costrouc/srim
Docker image, and writes the input and output files to a temporary directory.
How Does it Work?
pysrim-docker
overrides the run()
method of the SR
and TRIM
classes with one that executes a bash script in a particular Docker image.
This script simply copies the inputs to the appropriate directory, runs the required binary, and returns the results.
Why?
Since using Docker, I have seen its utility in hiding obscure build steps behind a simple container image.
However, I prefer to write code that might be part of an analysis pipeline, rather than standalone Python modules, and so it is prefereable to
have the input file generation peformed on the host. An additional benefit of this is that the pysrim
installation can be updated indepently of the Docker image.
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
Built Distribution
File details
Details for the file pysrim-docker-0.1.2.tar.gz
.
File metadata
- Download URL: pysrim-docker-0.1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fe901896097adb3260bd4491c05e5fc5b06573be3fa556691b804c134463d04 |
|
MD5 | 7ebd26e2db19d040f59fd9534afcc8ee |
|
BLAKE2b-256 | 67931c08f1d803381351c6e183ee51361eee0b7ae61b05d18777302b3ddb6ce5 |
File details
Details for the file pysrim_docker-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pysrim_docker-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f38d5a8273867cce28c4f332cc4c8814805cb8aaf8094d1e78fbc49ca817bb |
|
MD5 | 4128de01ee690b845d5fca2df99b8edd |
|
BLAKE2b-256 | f2aa26c547ab797896fdaffc8f8bd03ee6aff4db44755d6b5ace4c3f0fd5f05a |