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.1.tar.gz
.
File metadata
- Download URL: pysrim-docker-0.1.1.tar.gz
- Upload date:
- Size: 3.4 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 | c63270dc74a6743688f18fdeba582bd65f39fb903b0a1cfcec44377f86630a73 |
|
MD5 | 2eeeaba3a063c1a24d25454016468fe0 |
|
BLAKE2b-256 | 139d080e6accb04b0fd392d5383ccdef106d928dbb810933dfebef78bb69ab14 |
File details
Details for the file pysrim_docker-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pysrim_docker-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | e5f57a6dacf0ff19e7ecd4ca5065bb81cd879bb7c416f5f7dbb7c7245eefbf7b |
|
MD5 | fa012b1a944b11e0ebc6d01f83829b18 |
|
BLAKE2b-256 | 4c2b08a92452b60957bfc1015eaeeceab967bec8a399dabe4fa2593879c796a9 |