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.
Release files for pysrim-docker 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysrim-docker-0.1.3.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysrim_docker-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / pysrim-docker-0.1.3.tar.gz
| Download URL | pysrim-docker-0.1.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2c4e18b55bbcda2c582854005d76692385b4dbb7cd8908abf38a0277367633f
|
|
BLAKE2b-256 checksum How to use checksums |
f160bb28ccf06191fc3b33b795930eaa23cd203f2d4a67d5fff7f64bdc6d4778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-53-generic
|
Release files / pysrim_docker-0.1.3-py3-none-any.whl
| Download URL | pysrim_docker-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c221e603b4279a52d4bf23946e721a23a66f3454b201e3e65520fbae9738244
|
|
BLAKE2b-256 checksum How to use checksums |
8136c34f77a90c490cc77231b657f12bcf1f2705ef32fc1b30dc58d416505a84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-53-generic
|