morphic-util
CLI tool for uploading data to the Morphic AWS S3 buckets.
Users
Prerequisites
Users need to have
- Basic command-line knowledge
- Python3.x installed on their machine
- AWS Cognito username and password
Install
The morphic-util tool is available to install from PyPi.
$ pip install morphic-util
Usage
Display help and list of commands.
$ morphic-util -h
usage: morphic-util [-h] [--version] [--profile PROFILE] {config,create,select,list,upload,download,delete} ...
morphic-util
optional arguments:
-h, --help show this help message and exit
--version, -v show program's version number and exit
command:
{config,create,select,list,upload,download,delete}
config configure AWS credentials
create create an upload area (authorised users only)
select select or show the active upload area
list list contents of the area
upload upload files to the area
download download files from the area
delete delete files from the area
In the above, optional arguments are between [] and choices between {}.
The basic usage is as follows:
$ morphic-util cmd ARG1 ARG2 -o1 -o2
Use the tool by specifying a command (cmd - see list below) to run, any mandatory (positional) arguments (e.g. ARG1
and ARG2 - see positional args for each command), and any optional arguments (e.g. -o1 and o2 - see options for
each command).
Commands
Help with specific command:
$ morphic-util <cmd> -h
Some commands or options/flags are restricted to authorised users (admin) only.
config command
Configure AWS credentials
$ morphic-util config username password
positional arguments:
username AWS Cognito username
password AWS Cognito password
The tool uses the profile name hca-util in local AWS config files.
create command
Create an upload area/ project folder (authorised users only)
$ morphic-util create NAME DPC [-p {u,ud,ux,udx}]
positional arguments:
NAME name for the new area/ project folder
DPC center name of the submitter
optional arguments:
-p {u,ud,ux,udx} allowed actions (permissions) on new area. u for
upload, x for delete and d for download. Default is ux
select command
Show or select the active upload area/ project folder
$ morphic-util select AREA
positional arguments:
AREA area name/ folder name.
If AREA is not specified, the selected area is shown.
list command
List contents of selected area
$ morphic-util list [-b]
optional arguments:
-b list all areas in bucket **(authorised users only)**
upload command
Upload files to the selected area
$ morphic-util upload PATH [PATH ...] [-o]
positional arguments:
PATH valid file or directory
optional arguments:
-o overwrite files with same names
download command
Download files from the selected area (authorised users only)
$ morphic-util download (-a | -f file [file ...])
optional arguments:
-a download all files from selected area
-f file [file ...] download specified file(s) only
delete command
Delete files from the selected area
$ morphic-util delete [-a | -d] [PATH [PATH ...]]
positional arguments:
PATH path to file or directory to delete
optional arguments:
-a delete all files from the area
-d delete upload area and contents (authorised users only)
Developers
Download dependencies
pip install -r requirements.txt
Run tests
nosetests
Metadata
Release files for morphic-util 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| morphic-util-0.0.9.tar.gz | 27.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| morphic_util-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.4 kB
Release files / morphic-util-0.0.9.tar.gz
| Download URL | morphic-util-0.0.9.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
548f151723477b2d088afc4a54d103c48257670dbf714ce97a9b30516d8e9a77
|
|
BLAKE2b-256 checksum How to use checksums |
07e5a4b845730bbf0580509e13582d18c40a2198f68599832dd0a18ae3b36a52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / morphic_util-0.0.9-py3-none-any.whl
| Download URL | morphic_util-0.0.9-py3-none-any.whl |
|---|---|
| Size | 34.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a1d7ca698cd151d69ee1496b00f39a131da8629e528c58c339e124be03ac2ce
|
|
BLAKE2b-256 checksum How to use checksums |
429c50970dabe0e31442c5a5508ad647c03f7d5eca8a65764d9aee8a78f7e427
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|