rda-python-miscs 3.0.8__tar.gz → 3.0.9__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.
- {rda_python_miscs-3.0.8/src/rda_python_miscs.egg-info → rda_python_miscs-3.0.9}/PKG-INFO +1 -1
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/pyproject.toml +1 -1
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexcp.py +43 -8
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexcp.usg +8 -4
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9/src/rda_python_miscs.egg-info}/PKG-INFO +1 -1
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/LICENSE +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/MANIFEST.in +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/README.md +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/setup.cfg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/__init__.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/bash_qsub.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/bashqsub.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/bashqsub.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/decsdata_restore.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/decsdata_restore.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/decsdata_storage.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/decsdata_storage.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdex_ls.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexdrop.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexdrop.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexdrop_standalone.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexkill.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexkill.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexls.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexls.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexls_standalone.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexmod.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexmod.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexown.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexown.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexps.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexps.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexsub.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexsub.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexzip.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexzip.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/pg_docs.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/pg_rst.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/pg_rst.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/pg_wget.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/pgwget.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/pgwget.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rda_cp.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rda_kill.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rda_mod.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rda_own.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rda_ps.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rda_sub.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rda_zip.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rdals.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rdals.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rst_templates/appendix.rst.temp +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rst_templates/index.rst.temp +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rst_templates/section.rst.temp +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/tcsh_qsub.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/tcshqsub.py +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/tcshqsub.usg +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/SOURCES.txt +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/dependency_links.txt +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/entry_points.txt +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/requires.txt +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/top_level.txt +0 -0
- {rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/tests/test_miscs.py +0 -0
|
@@ -135,6 +135,28 @@ class GdexCp(PgFile):
|
|
|
135
135
|
self.dssdb_dbname()
|
|
136
136
|
self.validate_decs_group('gdexcp', self.PGLOG['CURUID'], 1)
|
|
137
137
|
if not self.RDACP['R'] and self.RDACP['r']: self.RDACP['R'] = 1000
|
|
138
|
+
# a bucket implies the Object Store host, so -tb/-fb need no -th/-fh
|
|
139
|
+
if self.RDACP['fb']:
|
|
140
|
+
self.PGLOG['OBJCTBKT'] = self.RDACP['fb']
|
|
141
|
+
if not self.RDACP['fh']:
|
|
142
|
+
self.RDACP['fh'] = self.OHOST
|
|
143
|
+
self.CINFO['fhost'] = self.OHOST + '-'
|
|
144
|
+
if self.RDACP['tb']:
|
|
145
|
+
if not self.RDACP['fb']: self.PGLOG['OBJCTBKT'] = self.RDACP['tb']
|
|
146
|
+
if not self.RDACP['th']:
|
|
147
|
+
self.RDACP['th'] = self.OHOST
|
|
148
|
+
self.CINFO['thost'] = self.OHOST + '-'
|
|
149
|
+
# a Globus endpoint implies its host, so -tp/-fp need no -th/-fh
|
|
150
|
+
if self.RDACP['fp']:
|
|
151
|
+
self.PGLOG['BACKUPEP'] = self.RDACP['fp']
|
|
152
|
+
if not self.RDACP['fh']:
|
|
153
|
+
self.RDACP['fh'] = self.endpoint_host(self.RDACP['fp'])
|
|
154
|
+
if self.RDACP['fh']: self.CINFO['fhost'] = self.RDACP['fh'] + '-'
|
|
155
|
+
if self.RDACP['tp']:
|
|
156
|
+
if not self.RDACP['fp']: self.PGLOG['BACKUPEP'] = self.RDACP['tp']
|
|
157
|
+
if not self.RDACP['th']:
|
|
158
|
+
self.RDACP['th'] = self.endpoint_host(self.RDACP['tp'])
|
|
159
|
+
if self.RDACP['th']: self.CINFO['thost'] = self.RDACP['th'] + '-'
|
|
138
160
|
if not self.RDACP['t']:
|
|
139
161
|
self.CINFO['tpath'] = self.RDACP['t'] = "."
|
|
140
162
|
else:
|
|
@@ -151,14 +173,6 @@ class GdexCp(PgFile):
|
|
|
151
173
|
self.pglog("{}{}: Cannot copy multiple files to a single file".format(self.CINFO['thost'], self.RDACP['t']), self.LGEREX)
|
|
152
174
|
if self.RDACP['th'] and self.RDACP['fh'] and self.RDACP['th'] == self.RDACP['fh'] and self.RDACP['fh'] != 'HPSS':
|
|
153
175
|
self.pglog(self.RDACP['fh'] + ": Cannot copy file onto the same host", self.LGEREX)
|
|
154
|
-
if self.RDACP['fb']:
|
|
155
|
-
self.PGLOG['OBJCTBKT'] = self.RDACP['fb']
|
|
156
|
-
elif self.RDACP['tb']:
|
|
157
|
-
self.PGLOG['OBJCTBKT'] = self.RDACP['tb']
|
|
158
|
-
if self.RDACP['fp']:
|
|
159
|
-
self.PGLOG['BACKUPEP'] = self.RDACP['fp']
|
|
160
|
-
elif self.RDACP['tp']:
|
|
161
|
-
self.PGLOG['BACKUPEP'] = self.RDACP['tp']
|
|
162
176
|
if self.RDACP['o']:
|
|
163
177
|
if not self.RDACP['fp']:
|
|
164
178
|
self.pglog("-o: works only when source Globus endpoint -fp is provided", self.LGEREX)
|
|
@@ -185,6 +199,27 @@ class GdexCp(PgFile):
|
|
|
185
199
|
self.pglog("{}: No File copied{}".format((self.CINFO['fpath'] if self.CINFO['fpath'] else self.CINFO['curdir']), hinfo), self.LOGWRN)
|
|
186
200
|
self.cmdlog()
|
|
187
201
|
|
|
202
|
+
# get the host name a Globus endpoint is reached by
|
|
203
|
+
def endpoint_host(self, endpoint):
|
|
204
|
+
"""Return the host name that copy_gdex_file() routes a Globus endpoint through.
|
|
205
|
+
|
|
206
|
+
Known endpoints map through QHOSTS: 'gdex-quasar' to the Quasar backup host,
|
|
207
|
+
'gdex-quasar-drdata' to the DRDATA host, and 'gdex-glade' to the local host
|
|
208
|
+
(returned as None, the default). Any other endpoint is routed as the Quasar
|
|
209
|
+
backup host with QPOINTS['B'] pointed at it.
|
|
210
|
+
|
|
211
|
+
Args:
|
|
212
|
+
endpoint (str): Globus endpoint name from -fp or -tp.
|
|
213
|
+
|
|
214
|
+
Returns:
|
|
215
|
+
str | None: Host name for -fh/-th, or None for the local host.
|
|
216
|
+
"""
|
|
217
|
+
host = self.QHOSTS.get(endpoint)
|
|
218
|
+
if host is None:
|
|
219
|
+
self.QPOINTS['B'] = endpoint
|
|
220
|
+
host = self.BHOST
|
|
221
|
+
return (None if host == self.LHOST else host)
|
|
222
|
+
|
|
188
223
|
# copy the top level list
|
|
189
224
|
def copy_top_list(self, files):
|
|
190
225
|
"""Iterate the top-level source paths and initiate copies or recursive traversal.
|
|
@@ -44,10 +44,14 @@
|
|
|
44
44
|
|
|
45
45
|
-fh FromHostName host name where the source files reside.
|
|
46
46
|
-th ToHostName host name where the target files are written.
|
|
47
|
-
-fb FromBucket Object Store bucket name for the source files
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
47
|
+
-fb FromBucket Object Store bucket name for the source files; implies
|
|
48
|
+
the Object Store as the source host (no -fh needed).
|
|
49
|
+
-tb ToBucket Object Store bucket name for the target files; implies
|
|
50
|
+
the Object Store as the target host (no -th needed).
|
|
51
|
+
-fp FromGlobusEndpoint Globus endpoint for the source files; implies the
|
|
52
|
+
endpoint's host as the source (no -fh needed).
|
|
53
|
+
-tp ToGlobusEndpoint Globus endpoint for the target files; implies the
|
|
54
|
+
endpoint's host as the target (no -th needed).
|
|
51
55
|
|
|
52
56
|
|
|
53
57
|
COPY BEHAVIOR
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/gdexdrop_standalone.py
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
{rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs/rst_templates/index.rst.temp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_miscs-3.0.8 → rda_python_miscs-3.0.9}/src/rda_python_miscs.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|