cedadev / swallow

Swallow - a Birdhouse WPS for running the NAME Trajectory code.
Other
0 stars 1 forks source link

Create command-line tool for object store interactions #24

Closed agstephens closed 2 years ago

agstephens commented 2 years ago

Initial thoughts:

create bucket(bucket_id, policy="open")
list buckets()
delete bucket(bucket_id)
put file(bucket_id, file_id)
get file(bucket_id, file_id)
list bucket contents(bucket_id)
async get files(bucket_id, file_ids, parallel_count=10)

Fortran could call out to a command-line script

Needs auth connected to it (probably use a class to keep state). Might use click to wrap methods in command-line. Needs test suite.

agstephens commented 2 years ago

First draft of library and command-line tool now available at:

https://github.com/cedadev/jos/

@alaniwi please review this, by following the instructions, and copying the README. Please branch and make suggestions for improvements, including better documentation.

agstephens commented 2 years ago

Done.