rda-python-common 3.0.23__tar.gz → 3.0.24__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_common-3.0.23/src/rda_python_common.egg-info → rda_python_common-3.0.24}/PKG-INFO +2 -2
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/README.md +1 -1
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/pyproject.toml +1 -1
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/__init__.py +1 -1
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_file.py +15 -2
- {rda_python_common-3.0.23 → rda_python_common-3.0.24/src/rda_python_common.egg-info}/PKG-INFO +2 -2
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/LICENSE +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/setup.cfg +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgLOG.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_cmd.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_dbi.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_lock.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_log.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_opt.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_password.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_sig.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_split.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pg_util.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pgpassword.py +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common/pgpassword.usg +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common.egg-info/entry_points.txt +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-3.0.23 → rda_python_common-3.0.24}/test/test_common.py +0 -0
{rda_python_common-3.0.23/src/rda_python_common.egg-info → rda_python_common-3.0.24}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.24
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -189,7 +189,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
189
189
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
You should see the installed version (currently `3.0.
|
|
192
|
+
You should see the installed version (currently `3.0.24`). If the import
|
|
193
193
|
fails, double-check that the active Python environment is the one where you
|
|
194
194
|
ran `pip install`.
|
|
195
195
|
|
|
@@ -165,7 +165,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
165
165
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
You should see the installed version (currently `3.0.
|
|
168
|
+
You should see the installed version (currently `3.0.24`). If the import
|
|
169
169
|
fails, double-check that the active Python environment is the one where you
|
|
170
170
|
ran `pip install`.
|
|
171
171
|
|
|
@@ -878,6 +878,11 @@ class PgFile(PgUtil, PgSIG):
|
|
|
878
878
|
objects sharing a key prefix. Each object is downloaded individually and
|
|
879
879
|
keeps its position relative to the prefix under todir.
|
|
880
880
|
|
|
881
|
+
A member already staged under todir at the object's size and no older than
|
|
882
|
+
the object itself is left alone, so a store whose download was cut short
|
|
883
|
+
(by a batch walltime, say) resumes where it stopped instead of starting
|
|
884
|
+
over, and a second copy into the same directory costs nothing.
|
|
885
|
+
|
|
881
886
|
Args:
|
|
882
887
|
todir (str): Destination local directory path.
|
|
883
888
|
fromdir (str): Object key prefix (source path in the bucket).
|
|
@@ -890,7 +895,9 @@ class PgFile(PgUtil, PgSIG):
|
|
|
890
895
|
if not bucket: bucket = self.PGLOG['OBJCTBKT']
|
|
891
896
|
ms = re.match(r'^(.+)/$', fromdir)
|
|
892
897
|
if ms: fromdir = ms.group(1)
|
|
893
|
-
|
|
898
|
+
# opt 1 adds the LastModified the 'lo' listing already carries; it is only
|
|
899
|
+
# bits 2 and 8 that would cost a metadata call per key
|
|
900
|
+
flist = self.object_glob(fromdir, bucket, 1, logact)
|
|
894
901
|
if flist == self.FAILURE: return self.FAILURE
|
|
895
902
|
prefix = fromdir + '/'
|
|
896
903
|
keys = [key for key in flist if key.startswith(prefix)]
|
|
@@ -898,8 +905,14 @@ class PgFile(PgUtil, PgSIG):
|
|
|
898
905
|
return self.lmsg(fromdir, "{}-{} to copy to {}".format(self.OHOST, self.PGLOG['MISSFILE'], todir), logact)
|
|
899
906
|
plen = len(prefix)
|
|
900
907
|
for key in keys:
|
|
908
|
+
oinfo = flist[key]
|
|
901
909
|
tofile = "{}/{}".format(todir, key[plen:])
|
|
902
|
-
|
|
910
|
+
linfo = self.check_local_file(tofile, 1, logact)
|
|
911
|
+
# an unparsable LastModified leaves date_modified unset; download again then
|
|
912
|
+
if linfo and 'date_modified' in oinfo and linfo['data_size'] == oinfo['data_size'] and \
|
|
913
|
+
self.cmptime(linfo['date_modified'], linfo['time_modified'],
|
|
914
|
+
oinfo['date_modified'], oinfo['time_modified']) >= 0: continue
|
|
915
|
+
if not self.object_get_local(tofile, key, oinfo['data_size'], bucket, logact): return self.FAILURE
|
|
903
916
|
return self.SUCCESS
|
|
904
917
|
|
|
905
918
|
# Copy a remote file to object
|
{rda_python_common-3.0.23 → rda_python_common-3.0.24/src/rda_python_common.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.24
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -189,7 +189,7 @@ PgLOG.pglog("hello", PgLOG.LOGWRN)
|
|
|
189
189
|
python -c "import rda_python_common; print(rda_python_common.__version__)"
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
You should see the installed version (currently `3.0.
|
|
192
|
+
You should see the installed version (currently `3.0.24`). If the import
|
|
193
193
|
fails, double-check that the active Python environment is the one where you
|
|
194
194
|
ran `pip install`.
|
|
195
195
|
|
|
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_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-3.0.23 → rda_python_common-3.0.24}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|