Skip to main content

A high-level CLI for Slims REST API

Project description

Slims-lisp is a small python package that provides a CLI for Slims REST API.

Features:

  • Download a file from a slims experiment attachment step.

Resources

Installation

Slims-lisp can be installed from PyPI using any pip tools.

The simplest way is to install slims-lisp with pipx:

$ pipx install slims-lisp

Usage

slims-lisp get

Usage: slims-lisp get [OPTIONS]

  Download a file and its associated metadata from a slims experiment
  attachment step.

Options:
  --url TEXT                      Slims REST URL. ex:
                                  https://<your_slims_address>/rest/rest
                                  [required]
  --proj TEXT                     Project name (if any).
  -e, --exp TEXT                  Experiment name.  [required]
  -s, --step TEXT                 Experiment step name.  [default:
                                  data_collection; required]
  -a, --attm TEXT                 Attachment name.  [required]
  --active [true|false|both]      Search only in active or inactive steps (or
                                  in both).  [default: true]
  -l, --linked [true|false|both]  Search only linked or unlinked attachments
                                  (or both).  [default: true]
  -o, --output TEXT               Output file name. [default: same as --attm]
  -u, --username TEXT             User name (prompted).  [required]
  -p, --pwd TEXT                  Password (prompted).  [required]
  --help                          Show this message and exit.

Output:

<your_working_directory>
|── <output_file>               The requested file
└── <output_file>_metadata.txt  Associated metadata in a JSON format

Example:

$ slims-lisp get --url <your_url> --proj <your_project> -e <your_experiment> -s <your_attachment_step> -a <your_attachment_name>

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

slims-lisp-0.0.7.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

slims_lisp-0.0.7-py2-none-any.whl (6.6 kB view hashes)

Uploaded Python 2

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