pl-simpledsapp_moc
Abstract
A simple DS type ChRIS application specifically created for the Massachusetts Open Cloud remote computing environment.
Synopsis
python simpledsapp_moc.py \
[--prefix <filePrefixString>] \
[--sleepLength <sleepLength>] \
[--ignoreInputDir] \
[-v <level>] [--verbosity <level>] \
[--version] \
[--man] \
[--meta] \
<inputDir>
<outputDir>
Description
simpledsapp_moc.py is a ChRIS-based application that basically does an explicit copy of each file in an input directory to the output directory, prefixing an optional string to each filename.
Agruments
[--prefix <prefixString>]
If specified, a prefix string to append to each file copied.
[--sleepLength <sleepLength>]
If specified, sleep for <sleepLength> seconds before starting script processing. This is to simulate a possibly long running process.
[--ignoreInputDir]
If specified, ignore the input directory. Simply write a single json file to the output dir that is a timestamp. Useful if the input directory contains large nested file trees.
[-v <level>] [--verbosity <level>]
Verbosity level for app. Not used currently.
[--version]
If specified, print version number.
[--man]
If specified, print (this) man page.
[--meta]
If specified, print plugin meta data.
Run
This plugin can be run in two modes: natively as a python package or as a containerized docker image.
Using PyPI
To run from PyPI, simply do a
pip install simpledsapp_moc
and run with
simpledsapp_moc.py --man /tmp /tmp
to get inline help. The app should also understand being called with only two positional arguments
simpledsapp_moc.py /some/input/directory /destination/directory
Using docker run
To run using docker, be sure to assign an “input” directory to /incoming and an output directory to /outgoing. Make sure that the $(pwd)/out directory is world writable!
Now, prefix all calls with
docker run --rm -v $(pwd)/out:/outgoing \
fnndsc/pl-simpledsapp_moc simpledsapp_moc.py \
Thus, getting inline help is:
mkdir in out && chmod 777 out
docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \
fnndsc/pl-simpledsapp_moc simpledsapp_moc.py \
--man \
/incoming /outgoing
Examples
Metadata
Release files for simpledsapp-moc 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simpledsapp_moc-1.0.0.tar.gz | 5.0 kB | Without provenance | Details for simpledsapp_moc-1.0.0.tar.gz |
Release files / simpledsapp_moc-1.0.0.tar.gz
| Download URL | simpledsapp_moc-1.0.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cb5272eca3140bbf046410cbb00be03c7abbac1ee5d725da63b99ee2063179e
|
|
BLAKE2b-256 checksum How to use checksums |
820c20c3b1f9f86e1a24df33c2c2c026730316abfa198d2535271d0ec4a35e1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Security for simpledsapp-moc 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.