dryad2dataverse 0.7.11a0__py3-none-any.whl → 0.8.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dryad2dataverse/__init__.py +14 -12
- dryad2dataverse/auth.py +94 -0
- dryad2dataverse/config.py +180 -0
- dryad2dataverse/data/dryad2dataverse_config.yml +127 -0
- dryad2dataverse/handlers.py +6 -2
- dryad2dataverse/monitor.py +146 -140
- dryad2dataverse/scripts/dryadd.py +224 -291
- dryad2dataverse/serializer.py +129 -140
- dryad2dataverse/transfer.py +296 -396
- {dryad2dataverse-0.7.11a0.dist-info → dryad2dataverse-0.8.1.dist-info}/METADATA +4 -3
- dryad2dataverse-0.8.1.dist-info/RECORD +14 -0
- dryad2dataverse/constants.py +0 -45
- dryad2dataverse-0.7.11a0.dist-info/RECORD +0 -12
- {dryad2dataverse-0.7.11a0.dist-info → dryad2dataverse-0.8.1.dist-info}/WHEEL +0 -0
- {dryad2dataverse-0.7.11a0.dist-info → dryad2dataverse-0.8.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dryad2dataverse
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.1
|
|
4
4
|
Summary: Utility for copying and syncing data from a Dryad data repository to a Dataverse repository
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: Harvard Dataverse,Dataverse,research data management,data repository,Dryad,datadryad.org,dataverse.org
|
|
7
7
|
Author: Paul Lesack
|
|
8
8
|
Author-email: paul.lesack@ubc.ca
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.10, <4
|
|
10
10
|
Classifier: Development Status :: 4 - Beta
|
|
11
11
|
Classifier: Environment :: Console
|
|
12
12
|
Classifier: Intended Audience :: Education
|
|
13
13
|
Classifier: License :: OSI Approved :: MIT License
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -27,9 +26,11 @@ Requires-Dist: charset-normalizer (>=2.0.4)
|
|
|
27
26
|
Requires-Dist: idna (>=2.10.0)
|
|
28
27
|
Requires-Dist: pycryptodome (>=3.20.0)
|
|
29
28
|
Requires-Dist: pydoc-markdown (>=4.8.2,<5.0.0)
|
|
29
|
+
Requires-Dist: pyyaml (>=6.0.3,<7.0.0)
|
|
30
30
|
Requires-Dist: requests (>=2.26.0)
|
|
31
31
|
Requires-Dist: requests-toolbelt (>=0.9.1)
|
|
32
32
|
Requires-Dist: setuptools (>=80.8.0,<81.0.0)
|
|
33
|
+
Requires-Dist: tomli-w (>=1.2.0,<2.0.0)
|
|
33
34
|
Requires-Dist: urllib3 (>=2.6.3)
|
|
34
35
|
Project-URL: Bug Tracker, https://github.com/ubc-library-rc/dryad2dataverse/issues
|
|
35
36
|
Project-URL: Documentation, https://ubc-library-rc.github.io/dryad2dataverse
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
dryad2dataverse/__init__.py,sha256=e034K3LQEPO1wDDA2w539h6arIQTIqCCiw6W6hMSmGQ,915
|
|
2
|
+
dryad2dataverse/auth.py,sha256=NsM9TFTd6J29mdWBqbEsIjTcHgjPCQ8REwIO-pzeGR0,2848
|
|
3
|
+
dryad2dataverse/config.py,sha256=UiFqS1PgIP0IHtRcZbFL5T-ziC3Hqw5N8VTl_0GA0aQ,5917
|
|
4
|
+
dryad2dataverse/data/dryad2dataverse_config.yml,sha256=74M6VDdU-wToBbv0gzVU8GbIETJ6kE1uNsKrGEGN8cw,3978
|
|
5
|
+
dryad2dataverse/exceptions.py,sha256=oIP1_fSEvLF3HpK6gOYb05vUisY-IAxwXZDeNoAvCPM,1008
|
|
6
|
+
dryad2dataverse/handlers.py,sha256=9c0ksWVIBJVMP5mO0O36QRnEUg6I9e4MdQWCvdwKBo4,1569
|
|
7
|
+
dryad2dataverse/monitor.py,sha256=ctrbdNk7BglM_YCpHNV5ay-zB7XN6xbQUHJhsBwgO_E,26193
|
|
8
|
+
dryad2dataverse/scripts/dryadd.py,sha256=PkWeT4t0AN_sCttFFFyWXaQubFhOL1ZORw9KSTYdLcw,26852
|
|
9
|
+
dryad2dataverse/serializer.py,sha256=_GQBqDmZa_dJZmtf2X699WWiJWxuWdH5s1k-EafK1fI,33531
|
|
10
|
+
dryad2dataverse/transfer.py,sha256=3Uzr9N1X-muIHGqmWacO4mEIQ_wo4MzpkEDCEB_NWlA,34794
|
|
11
|
+
dryad2dataverse-0.8.1.dist-info/METADATA,sha256=hJD1Qix550QE02D6chCguCU9Zgf3Ej4a6kV4PvlJf3Q,3817
|
|
12
|
+
dryad2dataverse-0.8.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
13
|
+
dryad2dataverse-0.8.1.dist-info/entry_points.txt,sha256=P-Wu7phJ2dGqaZT6OzHEgy3I-TXXq_7ad67r--O8IcA,62
|
|
14
|
+
dryad2dataverse-0.8.1.dist-info/RECORD,,
|
dryad2dataverse/constants.py
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'''
|
|
2
|
-
This module contains the information that configures all the parameters
|
|
3
|
-
required to transfer data from Dryad to Dataverse.
|
|
4
|
-
|
|
5
|
-
"Constants" may be a bit strong, but the only constant is the
|
|
6
|
-
presence of change.
|
|
7
|
-
'''
|
|
8
|
-
|
|
9
|
-
import os
|
|
10
|
-
import pathlib
|
|
11
|
-
|
|
12
|
-
#from requests.packages.urllib3.util.retry import Retry
|
|
13
|
-
#Above causes Pylint error. WHY?
|
|
14
|
-
#Because it's a fake path and just a pointer. See requests source
|
|
15
|
-
from urllib3.util import Retry
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
#Requests session retry strategy in case of bad connections
|
|
19
|
-
#See :https://findwork.dev/blog/
|
|
20
|
-
#advanced-usage-python-requests-timeouts-retries-hooks/#retry-on-failure
|
|
21
|
-
#also
|
|
22
|
-
#https://stackoverflow.com/questions/15431044/
|
|
23
|
-
#can-i-set-max-retries-for-requests-request
|
|
24
|
-
RETRY_STRATEGY = Retry(total=10,
|
|
25
|
-
status_forcelist=[429, 500, 502, 503, 504],
|
|
26
|
-
allowed_methods=['HEAD', 'GET', 'OPTIONS',
|
|
27
|
-
'POST', 'PUT'],
|
|
28
|
-
backoff_factor=1)
|
|
29
|
-
|
|
30
|
-
#used in dryad2dataverse.serializer
|
|
31
|
-
DRYURL = 'https://datadryad.org'
|
|
32
|
-
TMP = '/tmp'
|
|
33
|
-
|
|
34
|
-
#used in dryad2dataverse.transfer
|
|
35
|
-
DVURL = 'https://borealisdata.ca'
|
|
36
|
-
APIKEY = None
|
|
37
|
-
MAX_UPLOAD = 3221225472 #Max 3GB upload
|
|
38
|
-
DV_CONTACT_EMAIL = None
|
|
39
|
-
DV_CONTACT_NAME = None
|
|
40
|
-
NOTAB = ['.sav', '.por', '.zip', '.csv', '.tsv', '.dta',
|
|
41
|
-
'.rdata', '.xslx', '.xls']
|
|
42
|
-
|
|
43
|
-
#used in dryad2dataverse.monitor
|
|
44
|
-
HOME = os.path.expanduser('~')
|
|
45
|
-
DBASE = pathlib.Path(HOME, 'dryad_dataverse_monitor.sqlite3')
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
dryad2dataverse/__init__.py,sha256=p78O_xsJLb9xf82PKaQUc1FTp07MZQ51DjDy1nxNaHg,870
|
|
2
|
-
dryad2dataverse/constants.py,sha256=ZfD2N0f742nnP8NPUV0QsDdVVAbrW-3Py8Lg9al1Z5c,1429
|
|
3
|
-
dryad2dataverse/exceptions.py,sha256=oIP1_fSEvLF3HpK6gOYb05vUisY-IAxwXZDeNoAvCPM,1008
|
|
4
|
-
dryad2dataverse/handlers.py,sha256=Xb0vvs1HE92qaK6g-Gu3eyHkLrSwU0-RQjLcl6FZPUY,1487
|
|
5
|
-
dryad2dataverse/monitor.py,sha256=KOyWCpPTZLYRStB-RN0e5kgHTfbxHsByD72K1VtEPP8,26406
|
|
6
|
-
dryad2dataverse/scripts/dryadd.py,sha256=uNroXVEvE_OUqvxtw9iYaPaSXaZmGEryZ82JgfvcP10,30297
|
|
7
|
-
dryad2dataverse/serializer.py,sha256=DoIjHYKtoH047X5Gd-WUdoLpL-kvTtSAPg-lUElCx8c,33865
|
|
8
|
-
dryad2dataverse/transfer.py,sha256=83tju_o4DSgSkF7JDLsgTpAwm03b0CMb0OjcKAEACuY,37548
|
|
9
|
-
dryad2dataverse-0.7.11a0.dist-info/METADATA,sha256=HZCpgZ3MPINF-gW6kXjDvl4loOb-W_vaO1Bcz5iIRoU,3790
|
|
10
|
-
dryad2dataverse-0.7.11a0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
11
|
-
dryad2dataverse-0.7.11a0.dist-info/entry_points.txt,sha256=P-Wu7phJ2dGqaZT6OzHEgy3I-TXXq_7ad67r--O8IcA,62
|
|
12
|
-
dryad2dataverse-0.7.11a0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|