Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2010-03-29 10:10:48
Size: 35
Editor: root
Comment:
Revision 3 as of 2010-03-29 22:45:54
Size: 2488
Editor: root
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Coming soon 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
}}}

emen2client.py

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)