caltechdata-api 1.10.4__tar.gz → 1.10.5__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-1.10.4 → caltechdata_api-1.10.5}/PKG-INFO +1 -1
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/caltechdata_edit.py +5 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/caltechdata_write.py +6 -1
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api.egg-info/PKG-INFO +1 -1
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/setup.cfg +1 -1
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/LICENSE +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/README.md +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/__init__.py +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/cli.py +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/customize_schema.py +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/download_file.py +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/get_files.py +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/get_metadata.py +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/md_to_json.py +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api/utils.py +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api.egg-info/SOURCES.txt +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api.egg-info/dependency_links.txt +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api.egg-info/entry_points.txt +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api.egg-info/requires.txt +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/caltechdata_api.egg-info/top_level.txt +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/pyproject.toml +0 -0
- {caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: caltechdata_api
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.5
|
|
4
4
|
Summary: Python wrapper for CaltechDATA API.
|
|
5
5
|
Home-page: https://github.com/caltechlibrary/caltechdata_api
|
|
6
6
|
Author: Thomas E Morrell, Rohan Bhattarai, Elizabeth Won, Alexander A Abakah, Kshemaahna Nagi
|
|
@@ -109,6 +109,7 @@ def caltechdata_edit(
|
|
|
109
109
|
authors=False,
|
|
110
110
|
keepfiles=False,
|
|
111
111
|
return_id=False,
|
|
112
|
+
local=False,
|
|
112
113
|
):
|
|
113
114
|
# Make a copy of the metadata to make sure our local changes don't leak
|
|
114
115
|
metadata = copy.deepcopy(metadata)
|
|
@@ -159,11 +160,15 @@ def caltechdata_edit(
|
|
|
159
160
|
if authors == False:
|
|
160
161
|
if production == True:
|
|
161
162
|
url = "https://data.caltech.edu/"
|
|
163
|
+
elif local == True:
|
|
164
|
+
url = "https://127.0.0.1:5000/"
|
|
162
165
|
else:
|
|
163
166
|
url = "https://data.caltechlibrary.dev/"
|
|
164
167
|
else:
|
|
165
168
|
if production == True:
|
|
166
169
|
url = "https://authors.library.caltech.edu/"
|
|
170
|
+
elif local == True:
|
|
171
|
+
url = "https://127.0.0.1:5000/"
|
|
167
172
|
else:
|
|
168
173
|
url = "https://authors.caltechlibrary.dev/"
|
|
169
174
|
|
|
@@ -161,6 +161,7 @@ def caltechdata_write(
|
|
|
161
161
|
default_preview=None,
|
|
162
162
|
review_message=None,
|
|
163
163
|
verify=True,
|
|
164
|
+
local=False,
|
|
164
165
|
):
|
|
165
166
|
"""
|
|
166
167
|
File links are links to files existing in external systems that will
|
|
@@ -233,14 +234,18 @@ def caltechdata_write(
|
|
|
233
234
|
data = customize_schema.customize_schema(metadata, schema=schema)
|
|
234
235
|
if production == True:
|
|
235
236
|
url = "https://data.caltech.edu/"
|
|
237
|
+
elif local == True:
|
|
238
|
+
url = "https://127.0.0.1:5000/"
|
|
236
239
|
else:
|
|
237
240
|
url = "https://data.caltechlibrary.dev/"
|
|
238
241
|
else:
|
|
239
242
|
data = metadata
|
|
240
243
|
if production == True:
|
|
241
244
|
url = "https://authors.library.caltech.edu/"
|
|
242
|
-
|
|
245
|
+
elif local == True:
|
|
243
246
|
url = "https://127.0.0.1:5000/"
|
|
247
|
+
else:
|
|
248
|
+
url = "https://authors.caltechlibrary.dev/"
|
|
244
249
|
|
|
245
250
|
headers = {
|
|
246
251
|
"Authorization": "Bearer %s" % token,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: caltechdata-api
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.5
|
|
4
4
|
Summary: Python wrapper for CaltechDATA API.
|
|
5
5
|
Home-page: https://github.com/caltechlibrary/caltechdata_api
|
|
6
6
|
Author: Thomas E Morrell, Rohan Bhattarai, Elizabeth Won, Alexander A Abakah, Kshemaahna Nagi
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[metadata]
|
|
6
6
|
name = caltechdata_api
|
|
7
|
-
version = 1.10.
|
|
7
|
+
version = 1.10.5
|
|
8
8
|
author = Thomas E Morrell, Rohan Bhattarai, Elizabeth Won, Alexander A Abakah, Kshemaahna Nagi
|
|
9
9
|
author_email = tmorrell@caltech.edu, aabakah@caltech.edu, knagi@caltech.edu
|
|
10
10
|
description = Python wrapper for CaltechDATA API.
|
|
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
|
|
File without changes
|
{caltechdata_api-1.10.4 → caltechdata_api-1.10.5}/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
|