osmo data#
usage: osmo data [-h] {upload,download,list,delete,check} ...
Positional Arguments#
commandPossible choices: upload, download, list, delete, check
Sub-commands#
upload#
Upload data to a backend URI
osmo data upload [-h] [--regex REGEX] [--processes PROCESSES]
[--threads THREADS]
[--benchmark-out BENCHMARK_OUT]
remote_uri local_path [local_path ...]
Positional Arguments#
remote_uriLocation where data will be uploaded to.
local_pathPath(s) where the data lies.
Named Arguments#
--regex, -xRegex to filter which types of files to upload
--processes, -pNumber of processes. Defaults to 10
Default:
10--threads, -TNumber of threads per process. Defaults to 20
Default:
20--benchmark-out, -bPath to folder where benchmark data will be written to.
Ex. osmo data upload s3://bucket/ /path/to/file
download#
Download a data from a backend URI
osmo data download [-h] [--regex REGEX] [--resume]
[--processes PROCESSES] [--threads THREADS]
[--benchmark-out BENCHMARK_OUT]
remote_uri local_path
Positional Arguments#
remote_uriURI where data will be downloaded from.
local_pathPath where data will be downloaded to.
Named Arguments#
--regex, -xRegex to filter which types of files to download
--resume, -rResume a download.
Default:
False--processes, -pNumber of processes. Defaults to 10
Default:
10--threads, -TNumber of threads per process. Defaults to 20
Default:
20--benchmark-out, -bPath to folder where benchmark data will be written to.
Ex. osmo data download s3://bucket/ /path/to/folder
list#
List a data from a backend URI
osmo data list [-h] [--regex REGEX] [--prefix PREFIX]
[--recursive] [--no-pager]
remote_uri [local_path]
Positional Arguments#
remote_uriURI where data will be listed for.
local_pathPath where list data will be written to.
Named Arguments#
--regex, -xRegex to filter which types of files to list
--prefix, -pPrefix/directory to list from the remote URI.
Default:
''--recursive, -rList recursively.
Default:
False--no-pagerDo not use a pager to display the list results, print directly to stdout.
Default:
False
Ex. osmo data list s3://bucket/ /path/with/file_name
delete#
Delete a data from a backend URI
osmo data delete [-h] [--regex REGEX] remote_uri
Positional Arguments#
remote_uriURI where data will be delete from.
Named Arguments#
--regex, -xRegex to filter which types of files to delete
Ex. osmo data delete s3://bucket/
check#
Check the access to a backend URI
osmo data check [-h] [--access-type {READ,WRITE,DELETE}]
[--config-file CONFIG_FILE]
remote_uri
Positional Arguments#
remote_uriURI where access will be checked to.
Named Arguments#
--access-type, -aPossible choices: READ, WRITE, DELETE
Access type to check access to the backend URI.
--config-file, -cPath to the config file to use for the access check.