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

Abstract

pacscopy is a simple plugin that copies data from open storage to create a new top level ChRIS Feed. It’s core utility is in demonstrating how to create a largely trivial FS plugin/app for the ChRIS system.

Synopsis

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

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 pacscopy

and run with

pacscopy.py --man /tmp /tmp

to get inline help. To copy from one directory to another, simply do

pacscopy.py --dir /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-pacscopy pacscopy.py                              \

Thus, getting inline help is:

docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing      \
        fnndsc/pl-pacscopy pacscopy.py                              \
        --man                                                       \
        /outgoing

Examples

Copy a directory dataset/MPRAGE to the output directory. If called from ChRIS, the input directory spec refers to a location in openstorage, otherwise it is interpreted as a system directory spec.

mkdir out
docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing      \
        fnndsc/pl-pacscopy pacscopy.py                              \
        --dir dataset/MPRAGE                                        \
        /outgoing

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pacscopy-1.0.4.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file pacscopy-1.0.4.tar.gz.

File metadata

  • Download URL: pacscopy-1.0.4.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pacscopy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 aca9d17553e083ed9d7686a66b0c4b005963dcec0ccafe6e5a443bd9f15b0484
MD5 cdfab92a60856e6a004757812bed0408
BLAKE2b-256 d8c9b1187c93d81f677a274a8f742065caaf16da92ee50e514723455243454b2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page