Skip to main content

Docker executor for PySRIM

Project description

pysrim-docker

pypi-badge

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

pysrim-docker-0.1.3.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

pysrim_docker-0.1.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page