Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2010-03-29 22:45:18
Size: 2568
Editor: root
Comment:
Revision 4 as of 2010-03-31 20:27:43
Size: 2554
Editor: root
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
== Download ==

[[attachment:emen2client.py]]

== Usage ==

emen2client.py --help
Line 4: Line 12:
mbp:clients irees$ python ./emen2client.py --help
Line 10: Line 17:
emen2client.py download --help
Line 11: Line 20:
mbp:clients irees$ python ./emen2client.py download --help
Line 35: Line 43:
emen2client.py upload --help
Line 37: Line 46:
mbp:clients irees$ python ./emen2client.py upload --help

emen2client.py

Download

emen2client.py

Usage

emen2client.py --help

./emen2client.py <action>
Actions available: upload, download
For detailed help: ./emen2client.py <action> --help

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.

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

EMEN2/emen2client.py (last edited 2011-05-20 15:58:47 by IanRees)