{ "info": { "author": "FNNDSC", "author_email": "dev@babyMRI.org", "bugtrack_url": null, "classifiers": [], "description": "pl-simpledsapp_moc\n================================\n\n.. image:: https://badge.fury.io/py/simpledsapp_moc.svg\n :target: https://badge.fury.io/py/simpledsapp_moc\n\n.. image:: https://travis-ci.org/FNNDSC/simpledsapp_moc.svg?branch=master\n :target: https://travis-ci.org/FNNDSC/simpledsapp_moc\n\n.. image:: https://img.shields.io/badge/python-3.5%2B-blue.svg\n :target: https://badge.fury.io/py/pl-simpledsapp_moc\n\n.. contents:: Table of Contents\n\n\nAbstract\n--------\n\nA simple DS type ChRIS application specifically created for the Massachusetts Open Cloud remote computing environment.\n\n\nSynopsis\n--------\n\n.. code::\n\n python simpledsapp_moc.py \\\n [--prefix ] \\\n [--sleepLength ] \\\n [--ignoreInputDir] \\\n [-v ] [--verbosity ] \\\n [--version] \\\n [--man] \\\n [--meta] \\\n \n \n\nDescription\n-----------\n\n``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.\n\nAgruments\n---------\n\n.. code::\n\n [--prefix ]\n If specified, a prefix string to append to each file copied.\n\n [--sleepLength ]\n If specified, sleep for seconds before starting script processing. This is to simulate a possibly long running process.\n\n [--ignoreInputDir] \n 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.\n\n [-v ] [--verbosity ]\n Verbosity level for app. Not used currently.\n\n [--version]\n If specified, print version number. \n \n [--man]\n If specified, print (this) man page.\n\n [--meta]\n If specified, print plugin meta data.\n\n\nRun\n----\n\nThis ``plugin`` can be run in two modes: natively as a python package or as a containerized docker image.\n\nUsing PyPI\n~~~~~~~~~~\n\nTo run from PyPI, simply do a \n\n.. code:: bash\n\n pip install simpledsapp_moc\n\nand run with\n\n.. code:: bash\n\n simpledsapp_moc.py --man /tmp /tmp\n\nto get inline help. The app should also understand being called with only two positional arguments\n\n.. code:: bash\n\n simpledsapp_moc.py /some/input/directory /destination/directory\n\n\nUsing ``docker run``\n~~~~~~~~~~~~~~~~~~~~\n\nTo 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!*\n\nNow, prefix all calls with \n\n.. code:: bash\n\n docker run --rm -v $(pwd)/out:/outgoing \\\n fnndsc/pl-simpledsapp_moc simpledsapp_moc.py \\\n\nThus, getting inline help is:\n\n.. code:: bash\n\n mkdir in out && chmod 777 out\n docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \\\n fnndsc/pl-simpledsapp_moc simpledsapp_moc.py \\\n --man \\\n /incoming /outgoing\n\nExamples\n--------", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://wiki", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "simpledsapp-moc", "package_url": "https://pypi.org/project/simpledsapp-moc/", "platform": "", "project_url": "https://pypi.org/project/simpledsapp-moc/", "project_urls": { "Homepage": "http://wiki" }, "release_url": "https://pypi.org/project/simpledsapp-moc/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "A simple DS type ChRIS application specifically created for the Massachusetts Open Cloud remote computing environment.", "version": "1.0.0" }, "last_serial": 5146176, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "3d778863dc0155468f81f29de2742e42", "sha256": "1cb5272eca3140bbf046410cbb00be03c7abbac1ee5d725da63b99ee2063179e" }, "downloads": -1, "filename": "simpledsapp_moc-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3d778863dc0155468f81f29de2742e42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5049, "upload_time": "2019-04-15T18:29:27", "url": "https://files.pythonhosted.org/packages/82/0c/20c3b1f9f86e1a24df33c2c2c026730316abfa198d2535271d0ec4a35e1c/simpledsapp_moc-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3d778863dc0155468f81f29de2742e42", "sha256": "1cb5272eca3140bbf046410cbb00be03c7abbac1ee5d725da63b99ee2063179e" }, "downloads": -1, "filename": "simpledsapp_moc-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3d778863dc0155468f81f29de2742e42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5049, "upload_time": "2019-04-15T18:29:27", "url": "https://files.pythonhosted.org/packages/82/0c/20c3b1f9f86e1a24df33c2c2c026730316abfa198d2535271d0ec4a35e1c/simpledsapp_moc-1.0.0.tar.gz" } ] }