emen2client.py

mbp:clients irees$ python ./emen2client.py --help
./emen2client.py <action>
Actions available: upload, download
For detailed help: ./emen2client.py <action> --help

mbp:clients irees$ python ./emen2client.py download --help
Usage: emen2client.py download [options] <recid> [filename-pattern]

Options:
  -h, --help            show this help message and exit
  -U USERNAME, --username=USERNAME
                        Username
  -P PASSWORD, --password=PASSWORD
                        Password (Note: specifying passwords in shell commands
                        is not secure)
  -H HOST, --host=HOST  Host endpoint URI
  -C CTXID, --ctxid=CTXID
                        Valid Context ID
  --recurse=RECURSE     Recursion level
  -o, --overwrite       Overwrite existing files (default is to skip)
  -r, --rename          If a file already exists, save with format
                        'duplicate.recid:original_filename.dm3'
  -s, --sidecar         Include sidecar file with EMEN2 metadata in JSON
                        format
  --gzip                Decompress gzip'd files. Requires gzip in path
                        (default)
  --no-gzip             Do not decompress gzip'd files.

mbp:clients irees$ python ./emen2client.py upload --help
Usage: emen2client.py upload [options] <record type> <recid> <files to upload>

                Record type can be any valid database protocol.
                Some record types have special, application-specific handlers, e.g.:
                
                        ccd                     CCD Frames
                        scan            Scanned micrographs
                        stack           Tomograms

                Other values, e.g. "volume", will create child records of that type, with 1 file per child record.

                Alternatively, you can use "none" for record type and the files will be attached directly to the specified record ID.
                
                

Options:
  -h, --help            show this help message and exit
  -U USERNAME, --username=USERNAME
                        Username
  -P PASSWORD, --password=PASSWORD
                        Password (Note: specifying passwords in shell commands
                        is not secure)
  -H HOST, --host=HOST  Host endpoint URI
  -C CTXID, --ctxid=CTXID
                        Valid Context ID
  -q, --noninteractive  Do not prompt for parameter values
  -s, --sidecar         Write sidecar file after upload
  -f, --force           Force re-upload even if a sidecar is found
  --metafile            Attempt to read JAMES/JADAS metadata files (default)
  --no-metafile         Ignore metadata files