rda-python-dbms 3.0.0__py3-none-any.whl → 3.0.1__py3-none-any.whl
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_dbms-3.0.1.dist-info/METADATA +100 -0
- {rda_python_dbms-3.0.0.dist-info → rda_python_dbms-3.0.1.dist-info}/RECORD +6 -6
- rda_python_dbms-3.0.0.dist-info/METADATA +0 -17
- {rda_python_dbms-3.0.0.dist-info → rda_python_dbms-3.0.1.dist-info}/WHEEL +0 -0
- {rda_python_dbms-3.0.0.dist-info → rda_python_dbms-3.0.1.dist-info}/entry_points.txt +0 -0
- {rda_python_dbms-3.0.0.dist-info → rda_python_dbms-3.0.1.dist-info}/licenses/LICENSE +0 -0
- {rda_python_dbms-3.0.0.dist-info → rda_python_dbms-3.0.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rda_python_dbms
|
|
3
|
+
Version: 3.0.1
|
|
4
|
+
Summary: RDA Python Package to manage PostreSQL databases
|
|
5
|
+
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
|
+
Project-URL: Homepage, https://github.com/NCAR/rda-python-dbms
|
|
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
|
+
Dynamic: license-file
|
|
16
|
+
|
|
17
|
+
# rda_python_dbms
|
|
18
|
+
|
|
19
|
+
RDA Python package to manage RDA PostgreSQL databases.
|
|
20
|
+
|
|
21
|
+
## Programs
|
|
22
|
+
|
|
23
|
+
The package installs the following command-line utilities, all running as the
|
|
24
|
+
current user:
|
|
25
|
+
|
|
26
|
+
- `pgddl` — create, drop or alter tables, indexes and keys from the table
|
|
27
|
+
definitions in `<tablename>.json` files
|
|
28
|
+
- `pgseq` — reset the sequences of all (or the given) tables in one or more
|
|
29
|
+
schemas
|
|
30
|
+
- `pgbackup` — dump the configured `rdadb` schemas on `rda-pgdb-02` into
|
|
31
|
+
`/data/pgbackup`, replacing existing backups and emailing a summary
|
|
32
|
+
- `pgdbdump` — dump a PostgreSQL database to a local directory
|
|
33
|
+
- `pgdbrestore` — restore a PostgreSQL database from a local dump directory
|
|
34
|
+
- `pgchksum` — re-check archived files against their RDADB records
|
|
35
|
+
(checksums, sizes and timestamps for Web and Saved files; sizes and
|
|
36
|
+
timestamps only for Quasar backup files), optionally fix the records
|
|
37
|
+
(`-x`), and email each dataset's primary owner a list of its missing
|
|
38
|
+
files (`-e`)
|
|
39
|
+
- `pgcmptables` — compare the columns, indexes and data of identical tables
|
|
40
|
+
on two database servers
|
|
41
|
+
- `pgschema` — copy the tables of a schema into the same schema in another
|
|
42
|
+
database on the same server
|
|
43
|
+
|
|
44
|
+
Run a program without its required options to print its usage. Do not use
|
|
45
|
+
`-h` for help: it is the host name option in several programs. `pgbackup`
|
|
46
|
+
has no usage text and starts the backup as soon as it runs.
|
|
47
|
+
|
|
48
|
+
## Environment setup
|
|
49
|
+
|
|
50
|
+
Create a Python environment first; package installs in the next section run
|
|
51
|
+
inside whichever environment you activate here.
|
|
52
|
+
|
|
53
|
+
### Option A — Python venv (DECS machines)
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
python3 -m venv $ENVHOME # e.g. /glade/u/home/gdexdata/gdexmsenv
|
|
57
|
+
source $ENVHOME/bin/activate
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Option B — Conda (DAV/Casper)
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
conda create --prefix $ENVHOME python=3.12 # e.g. /glade/work/gdexdata/conda-envs/pg-gdex
|
|
64
|
+
conda activate $ENVHOME
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Installing rda-python-dbms
|
|
68
|
+
|
|
69
|
+
Pick whichever install mode fits your workflow. All variants pull in the
|
|
70
|
+
transitive dependency (`rda_python_common`) automatically.
|
|
71
|
+
|
|
72
|
+
For local development, clone this repo alongside your project and install it
|
|
73
|
+
in editable mode so that changes are picked up without re-installing:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
git clone https://github.com/NCAR/rda-python-dbms.git
|
|
77
|
+
cd rda-python-dbms
|
|
78
|
+
pip install -e .
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
To test a specific branch (e.g. an in-progress feature or fix branch), pass
|
|
82
|
+
`-b/--branch` to `git clone`:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
git clone -b <branch-name> https://github.com/NCAR/rda-python-dbms.git
|
|
86
|
+
cd rda-python-dbms
|
|
87
|
+
pip install -e .
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
For a regular (non-editable) install from a checkout:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
pip install /path/to/rda-python-dbms
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
For a production install on a system that uses the published distribution:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
pip install rda_python_dbms
|
|
100
|
+
```
|
|
@@ -954,9 +954,9 @@ rda_python_dbms/tables/obsua/wind_5v2_0.json,sha256=NehMFE-GMNlD5Bh_fiacfSOmZWkr
|
|
|
954
954
|
rda_python_dbms/tables/obsua/wind_60v2_0.json,sha256=jOyQgD5ph7YBMuQfvYz1Ln6X_-_Vdhl36HBexOHZ1dA,1067
|
|
955
955
|
rda_python_dbms/tables/obsua/wind_8v2_0.json,sha256=5wtCThmFeOyiAGH_Qv3_jrXjhjo9b87ehlpI9QQY2SM,1064
|
|
956
956
|
rda_python_dbms/tables/obsua/wind_9v2_0.json,sha256=7OKFUicOn15LL_WuF1VE_L8DjxsHmRP4uBnopuMIeTg,1064
|
|
957
|
-
rda_python_dbms-3.0.
|
|
958
|
-
rda_python_dbms-3.0.
|
|
959
|
-
rda_python_dbms-3.0.
|
|
960
|
-
rda_python_dbms-3.0.
|
|
961
|
-
rda_python_dbms-3.0.
|
|
962
|
-
rda_python_dbms-3.0.
|
|
957
|
+
rda_python_dbms-3.0.1.dist-info/licenses/LICENSE,sha256=Uky6fiiVw7cakFVRtVpzg-mvqOQ-WcA_H8lHqhPRg58,1101
|
|
958
|
+
rda_python_dbms-3.0.1.dist-info/METADATA,sha256=iqXoJ9_l_fP-i2prZLDDLZnXx9Cvko9VL2OCEXz1kAI,3293
|
|
959
|
+
rda_python_dbms-3.0.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
960
|
+
rda_python_dbms-3.0.1.dist-info/entry_points.txt,sha256=iti6iZS2OEeBqO5aHlWeMFcbuwN_2assidP0qeSkQ6E,346
|
|
961
|
+
rda_python_dbms-3.0.1.dist-info/top_level.txt,sha256=4T1ShNUMyiqmwDIuDL7pDOm_S-6zWWW3Vy6OdAzYA4c,16
|
|
962
|
+
rda_python_dbms-3.0.1.dist-info/RECORD,,
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: rda_python_dbms
|
|
3
|
-
Version: 3.0.0
|
|
4
|
-
Summary: RDA Python Package to manage PostreSQL databases
|
|
5
|
-
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
|
-
Project-URL: Homepage, https://github.com/NCAR/rda-python-dbms
|
|
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
|
-
Dynamic: license-file
|
|
16
|
-
|
|
17
|
-
RDA python Package to manage RDA PostgreSQL databases.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|