Skip to main content

pl-simplefsapp_moc

https://badge.fury.io/py/simplefsapp_moc.svg https://travis-ci.org/FNNDSC/simplefsapp_moc.svg?branch=master https://img.shields.io/badge/python-3.5%2B-blue.svg

Abstract

A demo/testing simplefsapp for the MOC compute environment.

Synopsis

python simplefsapp_moc.py                                       \
    [-v <level>] [--verbosity <level>]                          \
    [--version]                                                 \
    [--man]                                                     \
    [--meta]                                                    \
    <outputDir>

Description

simplefsapp_moc.py is a testing/demo application for an FS-type application on the Massachusetts Open Cloud (MOC) remote computing environment.

The application simply “touches” new files in its output directory which are the names of the files in the ‘–dir <path>’ target directory.

Arguments

[-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.

[--dir <path>]
A directory on the process filesystem (if run outside ChRIS) or a
path inside openstorage (if run within ChRIS) to examine.

[--sleepLength <sleepLength>]
If specified, sleep for <sleepLength> seconds before starting
script processing. This is to simulate a possibly long running
process.

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 simplefsapp_moc

and run with

simplefsapp_moc.py --man /tmp

to get inline help. The app should also understand being called with only two positional arguments

simplefsapp_moc.py /destination/directory

Using docker run

To run using docker, be sure to assign 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-simplefsapp_moc simplefsapp_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-simplefsapp_moc simplefsapp_moc.py                        \
        --man                                                       \
        /outgoing

Examples

Metadata

Release files for simplefsapp-moc 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplefsapp-moc 1.0.2
File Size Uploaded Provenance
simplefsapp_moc-1.0.2.tar.gz 4.7 kB Without provenance Details

Release files / simplefsapp_moc-1.0.2.tar.gz

Download URL simplefsapp_moc-1.0.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9ea3f187fa4fdc9cca63b66aae50136f58ccedaac1afee4dee9f97c1f45fd90d
BLAKE2b-256 checksum
How to use checksums
2ac46b9b860f477746dc1a1efc3422d687d9d26d760cdab9b28986f4c2b895bb
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 simplefsapp-moc 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page