annotate README @ 22:d1752c7031e4 timeouts tip

Updated .hgignore to ignore sword2_logging.conf and anything in .cache
author Steve Welburn <stephen.welburn@eecs.qmul.ac.uk>
date Tue, 22 Jan 2013 14:43:42 +0000
parents e24aea2d14a4
children
rev   line source
marco@1 1 SWORD2 DSpace bulk uploader
marco@1 2 --------------------
marco@1 3
marco@1 4 A python script to submit large numbers of files to a SWORD2-compatible repository, specifically DSpace 1.8x.
marco@14 5 Built on the SWORD2 python client library: https://github.com/swordapp/python-client-sword2
marco@1 6
marco@12 7 -----------------------------------------------
marco@12 8 Source:
marco@12 9
marco@12 10 https://code.soundsoftware.ac.uk/projects/sworduploader/repository
marco@12 11
marco@12 12 -----------------------------------------------
marco@1 13 Dependencies:
marco@1 14
marco@1 15 - python 2.X
marco@1 16
marco@14 17 - sword2 library: https://github.com/swordapp/python-client-sword2
marco@1 18
marco@12 19 -----------------------------------------------
marco@1 20 Installation:
marco@1 21
marco@1 22 - no installation required, simply copy the script sworduploader.py to a suitable location. The first time you run the script, it will create the sword2_logging.conf file.
marco@15 23 - a server.cfg file is also available. If the --servicedoc option is not used, sworduploader will read the first line of server.cfg and use it as the server's URL. If the server.cfg is missing, it will default to C4DM's server.
marco@1 24
marco@12 25 -----------------------------------------------
marco@1 26 Usage:
marco@1 27
marco@3 28 sworduploader[-h] [--username USER_NAME] [--title TITLE]
marco@1 29 [--author AUTHOR [AUTHOR ...]] [--date DATE]
marco@1 30 [--servicedoc DSPACEURL]
marco@1 31 data
marco@1 32
marco@1 33 Bulk upload to DSpace using SWORDv2.
marco@1 34
marco@1 35 positional arguments:
marco@12 36 data Accepts: METSDSpaceSIP and BagIt packages, simple zip
marco@12 37 files, directories, single files. NOTE: METSDSpaceSIP
marco@12 38 packages are only accepted by Collections with a
marco@12 39 workflow!
marco@1 40
marco@1 41 optional arguments:
marco@1 42 -h, --help show this help message and exit
marco@1 43 --username USER_NAME DSpace username.
marco@1 44 --title TITLE Title (ignored for METS packages).
marco@1 45 --author AUTHOR [AUTHOR ...]
marco@1 46 Author(s) (ignored for METS packages). Accepts
marco@1 47 multiple entries in the format "Surname, Name"
marco@1 48 --date DATE Date of creation (string) (ignored for METS packages).
marco@15 49 --zip If "data" is a directory, compress it and post it as a
marco@15 50 single file. The zip file will be saved along with the
marco@15 51 individual files.
marco@15 52 --servicedoc SD Url of the SWORDv2 service document (default: use
marco@15 53 server.cfg if available, otherwise http://c4dm.eecs.qm
marco@15 54 ul.ac.uk/rdr/swordv2/servicedocument
marco@1 55
marco@1 56 If the submission is created successfully, it will remain open to be completed
marco@1 57 with the necessary metadata and licenses, using the DSpace web interface. The
marco@1 58 submission can be found in the "My Account -> Submissions" section of the
marco@1 59 user's area.
marco@1 60