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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysrim-docker-0.1.3.tar.gz.
File metadata
- Download URL: pysrim-docker-0.1.3.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 |
e2c4e18b55bbcda2c582854005d76692385b4dbb7cd8908abf38a0277367633f
|
|
| MD5 |
7835c74e4fd1b84a331c33c4143edb73
|
|
| BLAKE2b-256 |
f160bb28ccf06191fc3b33b795930eaa23cd203f2d4a67d5fff7f64bdc6d4778
|
File details
Details for the file pysrim_docker-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pysrim_docker-0.1.3-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 |
6c221e603b4279a52d4bf23946e721a23a66f3454b201e3e65520fbae9738244
|
|
| MD5 |
40d45bfd9a598c53ae896aefb44330bc
|
|
| BLAKE2b-256 |
8136c34f77a90c490cc77231b657f12bcf1f2705ef32fc1b30dc58d416505a84
|