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
Git clone URL: https://github.com/auwerxlab/slims-lisp-python-api.git
Documentation: https://github.com/auwerxlab/slims-lisp-python-api
PyPI repository: https://pypi.org/project/slims-lisp
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for slims_lisp-0.0.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dde057b955f6a1cfd7b15dee8273c3d8ca94e0139e6ba9b6f48406135bfb651 |
|
MD5 | d7435e26409ba70819eac79b7a0c0103 |
|
BLAKE2b-256 | c51ce7b99d95702e9e95957661084842c74d361f90a3ac2bf5842f310f77c125 |