A command line to assist McCloud users.
Project description
Intro
mccloud_cli
is a command line interface to the McCloud service. McCloud provides
a simple means to start a Shasta assembly
in the cloud.
mccloud_cli
currently provides an easy means to generate presigned URLs to use with the
McCloud. Eventually it will also provide a means to submit jobs directly from the command
line.
Quick start
- [optional] we highly suggest you run all python programs in a virtual environment.
pip install mccloud-cli
mccloud_cli --help
Presigned URLs example
mccloud_cli
will generate AWS presigned URLs. This is useful when you want to store your
data in your own AWS S3 bucket (ie, privately), but want to temporarily grant McCloud
access to read input data, and write results back to your bucket.
Usage:
$ mccloud_cli generate-s3-presigned-url --help
Usage: mccloud_cli generate-s3-presigned-url [OPTIONS]
Options:
--profile TEXT Use a specific profile from your AWS credential file.
--no-confirmation BOOLEAN Perform requested actions without user confirmation.
-i, --input-url TEXT S3 URL which will be presigned to allow READ (input) access.
-o, --output-url TEXT S3 URL which will be presigned to allow WRITE (output) access.
--expires-in INTEGER Number of seconds until the pre-signed URLs expire. [default: 28800]
--help Show this message and exit.
For example:
$ mccloud_cli generate-s3-presigned-url --profile my-aws-profile -i s3://my-bucket/reads.fasta.gz -o s3://my-bucket/results.tar.gz
This action will generate AWS S3 presigned URLs for the input and output URLs you have specified, with an expiration time 28800 seconds [8 hours] from now.
Read (input) URLs:
------------------
s3://my-bucket/reads.fasta.gz
Write (output) URLs:
--------------------
s3://my-bucket/results.tar.gz
Do you wish to proceed? [y/N]: Y
Your presigned URLs will expire in 8 hours.
Please launch the McCloud job with these URLs.
Presigned INPUT URLs:
---------------------
https://s3.amazonaws.com/my-bucket/reads.fasta.gz?AWSAccessKeyId=...
Presigned OUTPUT URLs:
----------------------
https://s3.amazonaws.com/my-bucket/results.tar.gz?AWSAccessKeyId=...
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
Built Distribution
File details
Details for the file mccloud_cli-0.0.3.tar.gz
.
File metadata
- Download URL: mccloud_cli-0.0.3.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e11d73a04587850b426354925afe4d180fb02f148639cd9f5fb8e275df4c5594 |
|
MD5 | d67ff18de22b0ac82bedc66dbd7b03f1 |
|
BLAKE2b-256 | e73e978b2a3ae9fa525655de4dc92b5ba213c29b38667e2ec7df1be0676bd23c |
Provenance
File details
Details for the file mccloud_cli-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: mccloud_cli-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e3ac26ec0950baeeb1cfec9dac6083300a722357344b4b8ea919d1e15934038 |
|
MD5 | 3504ec4b078226691279afcbe0a460fe |
|
BLAKE2b-256 | 0b92a06929e9dc2839743d1e46c3524b7fa5f1d9019672e9c0556e8d842c4d43 |