rda-python-dsquasar 2.0.12__tar.gz → 3.0.1__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_dsquasar-3.0.1/PKG-INFO +87 -0
- rda_python_dsquasar-3.0.1/README.md +70 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/pyproject.toml +1 -1
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/ds_quasar.py +2 -2
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/dsquasar.py +2 -2
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/dstacc.py +2 -2
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/taccrec.py +1 -1
- rda_python_dsquasar-3.0.1/src/rda_python_dsquasar.egg-info/PKG-INFO +87 -0
- rda_python_dsquasar-2.0.12/PKG-INFO +0 -18
- rda_python_dsquasar-2.0.12/README.md +0 -1
- rda_python_dsquasar-2.0.12/src/rda_python_dsquasar.egg-info/PKG-INFO +0 -18
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/LICENSE +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/setup.cfg +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/__init__.py +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/tacctar.py +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar.egg-info/SOURCES.txt +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar.egg-info/dependency_links.txt +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar.egg-info/entry_points.txt +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar.egg-info/requires.txt +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar.egg-info/top_level.txt +0 -0
- {rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/test/test_dsquasar.py +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rda_python_dsquasar
|
|
3
|
+
Version: 3.0.1
|
|
4
|
+
Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
|
|
5
|
+
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
|
+
Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: rda_python_common
|
|
15
|
+
Requires-Dist: rda_python_dsarch
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# rda_python_dsquasar
|
|
19
|
+
|
|
20
|
+
RDA Python package to back up and recover RDA data archives to and from the
|
|
21
|
+
GLOBUS Quasar backup server.
|
|
22
|
+
|
|
23
|
+
## Programs
|
|
24
|
+
|
|
25
|
+
The package installs the following command-line utilities, all running as the
|
|
26
|
+
current user:
|
|
27
|
+
|
|
28
|
+
- `dsquasar` — back up and restore RDA dataset archives via Quasar
|
|
29
|
+
- `tacctar` — create tar bundles for Quasar archival
|
|
30
|
+
- `taccrec` — recover content from Quasar tar bundles
|
|
31
|
+
|
|
32
|
+
Run any program with `--help` (or `-h`) for full usage details.
|
|
33
|
+
|
|
34
|
+
## Environment setup
|
|
35
|
+
|
|
36
|
+
Create a Python environment first; package installs in the next section run
|
|
37
|
+
inside whichever environment you activate here.
|
|
38
|
+
|
|
39
|
+
### Option A — Python venv (DECS machines)
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
python3 -m venv $ENVHOME # e.g. /glade/u/home/gdexdata/gdexmsenv
|
|
43
|
+
source $ENVHOME/bin/activate
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Option B — Conda (DAV/Casper)
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
conda create --prefix $ENVHOME python=3.12 # e.g. /glade/work/gdexdata/conda-envs/pg-gdex
|
|
50
|
+
conda activate $ENVHOME
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Installing rda-python-dsquasar
|
|
54
|
+
|
|
55
|
+
Pick whichever install mode fits your workflow. All variants pull in the
|
|
56
|
+
transitive dependencies (`rda_python_common`, `rda_python_dsarch`)
|
|
57
|
+
automatically.
|
|
58
|
+
|
|
59
|
+
For local development, clone this repo alongside your project and install it
|
|
60
|
+
in editable mode so that changes are picked up without re-installing:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git clone https://github.com/NCAR/rda-python-dsquasar.git
|
|
64
|
+
cd rda-python-dsquasar
|
|
65
|
+
pip install -e .
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
To test a specific branch (e.g. an in-progress feature or fix branch), pass
|
|
69
|
+
`-b/--branch` to `git clone`:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
git clone -b <branch-name> https://github.com/NCAR/rda-python-dsquasar.git
|
|
73
|
+
cd rda-python-dsquasar
|
|
74
|
+
pip install -e .
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
For a regular (non-editable) install from a checkout:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
pip install /path/to/rda-python-dsquasar
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
For a production install on a system that uses the published distribution:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pip install rda_python_dsquasar
|
|
87
|
+
```
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# rda_python_dsquasar
|
|
2
|
+
|
|
3
|
+
RDA Python package to back up and recover RDA data archives to and from the
|
|
4
|
+
GLOBUS Quasar backup server.
|
|
5
|
+
|
|
6
|
+
## Programs
|
|
7
|
+
|
|
8
|
+
The package installs the following command-line utilities, all running as the
|
|
9
|
+
current user:
|
|
10
|
+
|
|
11
|
+
- `dsquasar` — back up and restore RDA dataset archives via Quasar
|
|
12
|
+
- `tacctar` — create tar bundles for Quasar archival
|
|
13
|
+
- `taccrec` — recover content from Quasar tar bundles
|
|
14
|
+
|
|
15
|
+
Run any program with `--help` (or `-h`) for full usage details.
|
|
16
|
+
|
|
17
|
+
## Environment setup
|
|
18
|
+
|
|
19
|
+
Create a Python environment first; package installs in the next section run
|
|
20
|
+
inside whichever environment you activate here.
|
|
21
|
+
|
|
22
|
+
### Option A — Python venv (DECS machines)
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
python3 -m venv $ENVHOME # e.g. /glade/u/home/gdexdata/gdexmsenv
|
|
26
|
+
source $ENVHOME/bin/activate
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Option B — Conda (DAV/Casper)
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
conda create --prefix $ENVHOME python=3.12 # e.g. /glade/work/gdexdata/conda-envs/pg-gdex
|
|
33
|
+
conda activate $ENVHOME
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Installing rda-python-dsquasar
|
|
37
|
+
|
|
38
|
+
Pick whichever install mode fits your workflow. All variants pull in the
|
|
39
|
+
transitive dependencies (`rda_python_common`, `rda_python_dsarch`)
|
|
40
|
+
automatically.
|
|
41
|
+
|
|
42
|
+
For local development, clone this repo alongside your project and install it
|
|
43
|
+
in editable mode so that changes are picked up without re-installing:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git clone https://github.com/NCAR/rda-python-dsquasar.git
|
|
47
|
+
cd rda-python-dsquasar
|
|
48
|
+
pip install -e .
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
To test a specific branch (e.g. an in-progress feature or fix branch), pass
|
|
52
|
+
`-b/--branch` to `git clone`:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
git clone -b <branch-name> https://github.com/NCAR/rda-python-dsquasar.git
|
|
56
|
+
cd rda-python-dsquasar
|
|
57
|
+
pip install -e .
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For a regular (non-editable) install from a checkout:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pip install /path/to/rda-python-dsquasar
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
For a production install on a system that uses the published distribution:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install rda_python_dsquasar
|
|
70
|
+
```
|
{rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/ds_quasar.py
RENAMED
|
@@ -91,7 +91,7 @@ TFCOUNT = 100 # if file count is greater, use MINSIZE for tar file
|
|
|
91
91
|
SUBLMTS = 2000 # file count limit for a sub-group
|
|
92
92
|
|
|
93
93
|
PGBACK = {
|
|
94
|
-
'workdir' : "{}/{}/quasar_backup".format(PgLOG.PGLOG['GDEXWORK'], PgLOG.PGLOG['
|
|
94
|
+
'workdir' : "{}/{}/quasar_backup".format(PgLOG.PGLOG['GDEXWORK'], PgLOG.PGLOG['COMMONUSER']),
|
|
95
95
|
'mproc' : 1,
|
|
96
96
|
'action' : CTACTS,
|
|
97
97
|
'chgdays' : 0,
|
|
@@ -1092,7 +1092,7 @@ def evaluate_file_stat(dsid, cate, pgrec):
|
|
|
1092
1092
|
chome = PgLOG.PGLOG['DECSHOME'] if cate == 's' else PgLOG.PGLOG['DSDHOME']
|
|
1093
1093
|
|
|
1094
1094
|
if pgrec['locflag'] == 'O':
|
|
1095
|
-
bucket = 'gdex-decsdata' if cate == 's' else PgLOG.
|
|
1095
|
+
bucket = 'gdex-decsdata' if cate == 's' else PgLOG.PGLOG['OBJCTBKT']
|
|
1096
1096
|
ofile = PgLOG.join_paths(dsid, fname)
|
|
1097
1097
|
info = PgFile.check_object_file(ofile, bucket, 1, ERRACT)
|
|
1098
1098
|
if not info: return False
|
{rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/dsquasar.py
RENAMED
|
@@ -85,7 +85,7 @@ class DsQuasar(PgCMD, PgSplit):
|
|
|
85
85
|
self.TFCOUNT = 100 # if file count is greater, use self.MINSIZE for tar file
|
|
86
86
|
self.SUBLMTS = 2000 # file count limit for a sub-group
|
|
87
87
|
self.PGBACK = {
|
|
88
|
-
'workdir' : "{}/{}/quasar_backup".format(self.PGLOG['GDEXWORK'], self.PGLOG['
|
|
88
|
+
'workdir' : "{}/{}/quasar_backup".format(self.PGLOG['GDEXWORK'], self.PGLOG['COMMONUSER']),
|
|
89
89
|
'mproc' : 1,
|
|
90
90
|
'action' : self.CTACTS,
|
|
91
91
|
'chgdays' : 0,
|
|
@@ -920,7 +920,7 @@ class DsQuasar(PgCMD, PgSplit):
|
|
|
920
920
|
fname = pgrec[tname]
|
|
921
921
|
chome = self.PGLOG['DECSHOME'] if cate == 's' else self.PGLOG['DSDHOME']
|
|
922
922
|
if pgrec['locflag'] == 'O':
|
|
923
|
-
bucket = 'gdex-decsdata' if cate == 's' else self.
|
|
923
|
+
bucket = 'gdex-decsdata' if cate == 's' else self.PGLOG['OBJCTBKT']
|
|
924
924
|
ofile = self.join_paths(dsid, fname)
|
|
925
925
|
info = self.check_object_file(ofile, bucket, 1, self.ERRACT)
|
|
926
926
|
if not info: return False
|
|
@@ -81,7 +81,7 @@ class DsTACC(PgCMD, PgSplit):
|
|
|
81
81
|
self.ONESIZE = 20*self.PGLOG['ONEGBS'] # 20GB, minimal file size to tar a single file
|
|
82
82
|
self.TFCOUNT = 1000000 # if file count is greater, use self.MINSIZE for tar file
|
|
83
83
|
self.PGBACK = {
|
|
84
|
-
'workdir' : "{}/{}/tacc_backup".format(self.PGLOG['GDEXWORK'], self.PGLOG['
|
|
84
|
+
'workdir' : "{}/{}/tacc_backup".format(self.PGLOG['GDEXWORK'], self.PGLOG['COMMONUSER']),
|
|
85
85
|
'mproc' : 1,
|
|
86
86
|
'action' : self.CTACTS,
|
|
87
87
|
'chgdays' : 0,
|
|
@@ -857,7 +857,7 @@ class DsTACC(PgCMD, PgSplit):
|
|
|
857
857
|
fname = pgrec[tname]
|
|
858
858
|
chome = self.PGLOG['DECSHOME'] if cate == 's' else self.PGLOG['DSDHOME']
|
|
859
859
|
if pgrec['locflag'] == 'O':
|
|
860
|
-
bucket = 'gdex-decsdata' if cate == 's' else self.
|
|
860
|
+
bucket = 'gdex-decsdata' if cate == 's' else self.PGLOG['OBJCTBKT']
|
|
861
861
|
ofile = self.join_paths(dsid, fname)
|
|
862
862
|
info = self.check_object_file(ofile, bucket, 1, self.ERRACT)
|
|
863
863
|
if not info: return False
|
|
@@ -19,7 +19,7 @@ def get_tar_summary_and_details(member_list_path):
|
|
|
19
19
|
with open(member_list_path, 'r') as f:
|
|
20
20
|
for idx, line in enumerate(f):
|
|
21
21
|
line = line.strip()
|
|
22
|
-
if not line
|
|
22
|
+
if not line:
|
|
23
23
|
continue
|
|
24
24
|
parts = line.split()
|
|
25
25
|
if len(parts) < 6:
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rda_python_dsquasar
|
|
3
|
+
Version: 3.0.1
|
|
4
|
+
Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
|
|
5
|
+
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
|
+
Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Requires-Python: >=3.7
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: rda_python_common
|
|
15
|
+
Requires-Dist: rda_python_dsarch
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# rda_python_dsquasar
|
|
19
|
+
|
|
20
|
+
RDA Python package to back up and recover RDA data archives to and from the
|
|
21
|
+
GLOBUS Quasar backup server.
|
|
22
|
+
|
|
23
|
+
## Programs
|
|
24
|
+
|
|
25
|
+
The package installs the following command-line utilities, all running as the
|
|
26
|
+
current user:
|
|
27
|
+
|
|
28
|
+
- `dsquasar` — back up and restore RDA dataset archives via Quasar
|
|
29
|
+
- `tacctar` — create tar bundles for Quasar archival
|
|
30
|
+
- `taccrec` — recover content from Quasar tar bundles
|
|
31
|
+
|
|
32
|
+
Run any program with `--help` (or `-h`) for full usage details.
|
|
33
|
+
|
|
34
|
+
## Environment setup
|
|
35
|
+
|
|
36
|
+
Create a Python environment first; package installs in the next section run
|
|
37
|
+
inside whichever environment you activate here.
|
|
38
|
+
|
|
39
|
+
### Option A — Python venv (DECS machines)
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
python3 -m venv $ENVHOME # e.g. /glade/u/home/gdexdata/gdexmsenv
|
|
43
|
+
source $ENVHOME/bin/activate
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Option B — Conda (DAV/Casper)
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
conda create --prefix $ENVHOME python=3.12 # e.g. /glade/work/gdexdata/conda-envs/pg-gdex
|
|
50
|
+
conda activate $ENVHOME
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Installing rda-python-dsquasar
|
|
54
|
+
|
|
55
|
+
Pick whichever install mode fits your workflow. All variants pull in the
|
|
56
|
+
transitive dependencies (`rda_python_common`, `rda_python_dsarch`)
|
|
57
|
+
automatically.
|
|
58
|
+
|
|
59
|
+
For local development, clone this repo alongside your project and install it
|
|
60
|
+
in editable mode so that changes are picked up without re-installing:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git clone https://github.com/NCAR/rda-python-dsquasar.git
|
|
64
|
+
cd rda-python-dsquasar
|
|
65
|
+
pip install -e .
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
To test a specific branch (e.g. an in-progress feature or fix branch), pass
|
|
69
|
+
`-b/--branch` to `git clone`:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
git clone -b <branch-name> https://github.com/NCAR/rda-python-dsquasar.git
|
|
73
|
+
cd rda-python-dsquasar
|
|
74
|
+
pip install -e .
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
For a regular (non-editable) install from a checkout:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
pip install /path/to/rda-python-dsquasar
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
For a production install on a system that uses the published distribution:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pip install rda_python_dsquasar
|
|
87
|
+
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: rda_python_dsquasar
|
|
3
|
-
Version: 2.0.12
|
|
4
|
-
Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
|
|
5
|
-
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
|
-
Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
-
Classifier: Operating System :: OS Independent
|
|
10
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
-
Requires-Python: >=3.7
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
License-File: LICENSE
|
|
14
|
-
Requires-Dist: rda_python_common
|
|
15
|
-
Requires-Dist: rda_python_dsarch
|
|
16
|
-
Dynamic: license-file
|
|
17
|
-
|
|
18
|
-
RDA python package to backup RDA dataset data onto Globus Quasar Server.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
RDA python package to backup RDA dataset data onto Globus Quasar Server.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: rda_python_dsquasar
|
|
3
|
-
Version: 2.0.12
|
|
4
|
-
Summary: RDA Python package to backup and recover RDA data archives to and from GLOBUS Quasar backup server
|
|
5
|
-
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
|
-
Project-URL: Homepage, https://github.com/NCAR/rda-python-dsquasar
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
-
Classifier: Operating System :: OS Independent
|
|
10
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
-
Requires-Python: >=3.7
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
License-File: LICENSE
|
|
14
|
-
Requires-Dist: rda_python_common
|
|
15
|
-
Requires-Dist: rda_python_dsarch
|
|
16
|
-
Dynamic: license-file
|
|
17
|
-
|
|
18
|
-
RDA python package to backup RDA dataset data onto Globus Quasar Server.
|
|
File without changes
|
|
File without changes
|
{rda_python_dsquasar-2.0.12 → rda_python_dsquasar-3.0.1}/src/rda_python_dsquasar/__init__.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
|