caltechdata-api 2.2.1__tar.gz → 2.2.2__tar.gz
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.
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/PKG-INFO +1 -1
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/caltechdata_edit.py +6 -6
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/caltechdata_write.py +6 -6
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api.egg-info/PKG-INFO +1 -1
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/pyproject.toml +1 -1
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/LICENSE +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/README.md +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/__init__.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/cli.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/customize_schema.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/download_file.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/download_from_record.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/get_metadata.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/md_to_json.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/utils.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/date_types.yaml +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/description_types.yaml +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/identifier_types.yaml +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/licenses.csv +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/relation_types.yaml +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/resource_types.yaml +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/roles.yaml +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/title_types.yaml +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies.yaml +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api.egg-info/SOURCES.txt +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api.egg-info/dependency_links.txt +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api.egg-info/entry_points.txt +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api.egg-info/requires.txt +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api.egg-info/top_level.txt +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/setup.cfg +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/tests/test_download.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/tests/test_rdm.py +0 -0
- {caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/tests/test_unit.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: caltechdata_api
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: Python wrapper for CaltechDATA API.
|
|
5
5
|
Author: Rohan Bhattarai, Elizabeth Won
|
|
6
6
|
Author-email: Thomas E Morrell <tmorrell@caltech.edu>, Alexander A Abakah <aabakah@caltech.edu>, Kshemaahna Nagi <knagi@caltech.edu>
|
|
@@ -131,18 +131,18 @@ def caltechdata_edit(
|
|
|
131
131
|
|
|
132
132
|
if authors == False:
|
|
133
133
|
if production == True:
|
|
134
|
-
url = "https://data.caltech.edu
|
|
134
|
+
url = "https://data.caltech.edu"
|
|
135
135
|
elif local == True:
|
|
136
|
-
url = "https://127.0.0.1:5000
|
|
136
|
+
url = "https://127.0.0.1:5000"
|
|
137
137
|
else:
|
|
138
|
-
url = "https://data.caltechlibrary.dev
|
|
138
|
+
url = "https://data.caltechlibrary.dev"
|
|
139
139
|
else:
|
|
140
140
|
if production == True:
|
|
141
|
-
url = "https://authors.library.caltech.edu
|
|
141
|
+
url = "https://authors.library.caltech.edu"
|
|
142
142
|
elif local == True:
|
|
143
|
-
url = "https://127.0.0.1:5000
|
|
143
|
+
url = "https://127.0.0.1:5000"
|
|
144
144
|
else:
|
|
145
|
-
url = "https://authors.caltechlibrary.dev
|
|
145
|
+
url = "https://authors.caltechlibrary.dev"
|
|
146
146
|
|
|
147
147
|
headers = {
|
|
148
148
|
"Authorization": "Bearer %s" % token,
|
|
@@ -177,18 +177,18 @@ def caltechdata_write(
|
|
|
177
177
|
|
|
178
178
|
if authors == False:
|
|
179
179
|
if production == True:
|
|
180
|
-
url = "https://data.caltech.edu
|
|
180
|
+
url = "https://data.caltech.edu"
|
|
181
181
|
elif local == True:
|
|
182
|
-
url = "https://127.0.0.1:5000
|
|
182
|
+
url = "https://127.0.0.1:5000"
|
|
183
183
|
else:
|
|
184
|
-
url = "https://data.caltechlibrary.dev
|
|
184
|
+
url = "https://data.caltechlibrary.dev"
|
|
185
185
|
else:
|
|
186
186
|
if production == True:
|
|
187
|
-
url = "https://authors.library.caltech.edu
|
|
187
|
+
url = "https://authors.library.caltech.edu"
|
|
188
188
|
elif local == True:
|
|
189
|
-
url = "https://127.0.0.1:5000
|
|
189
|
+
url = "https://127.0.0.1:5000"
|
|
190
190
|
else:
|
|
191
|
-
url = "https://authors.caltechlibrary.dev
|
|
191
|
+
url = "https://authors.caltechlibrary.dev"
|
|
192
192
|
|
|
193
193
|
# If files is a string - change to single value array
|
|
194
194
|
if isinstance(files, str) == True:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: caltechdata_api
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: Python wrapper for CaltechDATA API.
|
|
5
5
|
Author: Rohan Bhattarai, Elizabeth Won
|
|
6
6
|
Author-email: Thomas E Morrell <tmorrell@caltech.edu>, Alexander A Abakah <aabakah@caltech.edu>, Kshemaahna Nagi <knagi@caltech.edu>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/date_types.yaml
RENAMED
|
File without changes
|
{caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/description_types.yaml
RENAMED
|
File without changes
|
{caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/identifier_types.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/relation_types.yaml
RENAMED
|
File without changes
|
{caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/resource_types.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api/vocabularies/title_types.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{caltechdata_api-2.2.1 → caltechdata_api-2.2.2}/caltechdata_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|