Mercurial > hg > sworduploader
comparison sworduploader.py @ 11:4206512d8ae2
Added correct license
author | Marco Fabiani <marco.fabiani@eecs.qmul.ac.uk> |
---|---|
date | Wed, 18 Apr 2012 10:53:19 +0100 |
parents | af2a645f63a2 |
children | ed98a232e4a5 |
comparison
equal
deleted
inserted
replaced
10:af2a645f63a2 | 11:4206512d8ae2 |
---|---|
1 #!usr/bin/env/ python | 1 #!usr/bin/env/ python |
2 | 2 |
3 """ SWORD2 DSpace bulk uploader - v0.3 | 3 """ SWORD2 DSpace bulk uploader - v0.4 |
4 | 4 |
5 A python script to submit large numbers of files to a SWORD2-compatible repository, specifically DSpace 1.8x. | 5 A python script to submit large numbers of files to a SWORD2-compatible repository, specifically DSpace 1.8x. |
6 Built on the SWORD2 python client library: https://bitbucket.org/beno/python-sword2/overview | 6 Built on the SWORD2 python client library: https://bitbucket.org/beno/python-sword2/overview |
7 | 7 |
8 Dependencies: | 8 Dependencies: |
9 | 9 |
10 - python 2.X | 10 - python 2.X |
11 | 11 |
12 - sword2 library, with modifications: | 12 - sword2 library, with modifications: |
13 (original) https://bitbucket.org/beno/python-sword2/src | 13 (original) https://bitbucket.org/beno/python-sword2/src |
14 (modified) https://code.soundsoftware.ac.uk/hg/sworduploader | 14 (modified) https://bitbucket.org/marcofabiani/python-sword2/src |
15 | 15 |
16 ----------------------------------- | 16 ----------------------------------- |
17 Copyright 2012 Marco Fabiani | 17 Centre for Digital Music, Queen Mary, University of London |
18 Copyright 2012 Queen Mary, University of London | 18 Copyright (c) 2012 Marco Fabiani |
19 | |
20 Permission is hereby granted, free of charge, to any person | |
21 obtaining a copy of this software and associated documentation | |
22 files (the "Software"), to deal in the Software without | |
23 restriction, including without limitation the rights to use, copy, | |
24 modify, merge, publish, distribute, sublicense, and/or sell copies | |
25 of the Software, and to permit persons to whom the Software is | |
26 furnished to do so, subject to the following conditions: | |
27 | |
28 The above copyright notice and this permission notice shall be | |
29 included in all copies or substantial portions of the Software. | |
30 | |
31 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
32 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
33 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
34 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
35 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
36 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
37 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
38 OTHER DEALINGS IN THE SOFTWARE. | |
19 ----------------------------------- | 39 ----------------------------------- |
40 A copy of this License can also be found in the COPYING file distributed with the source code. | |
20 """ | 41 """ |
21 | 42 |
22 import argparse, getpass, zipfile, os, sys | 43 import argparse, getpass, zipfile, os, sys |
23 from sword2 import * | 44 from sword2 import * |
24 | 45 |