rda-python-common 2.0.1__tar.gz → 2.0.2__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-2.0.1 → rda_python_common-2.0.2}/PKG-INFO +1 -1
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/pyproject.toml +1 -1
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_pass.py +6 -7
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/PKG-INFO +1 -1
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/LICENSE +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/README.md +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/setup.cfg +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgLOG.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/__init__.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_cmd.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_dbi.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_file.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_lock.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_log.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_opt.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_sig.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_split.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_util.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pgpassword.py +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/entry_points.txt +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/requires.txt +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/top_level.txt +0 -0
- {rda_python_common-2.0.1 → rda_python_common-2.0.2}/test/test_common.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
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
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
import sys
|
|
17
17
|
import re
|
|
18
|
-
import hvac
|
|
19
18
|
from .pg_dbi import PgDBI
|
|
20
19
|
|
|
21
20
|
class PgPassword(PgDBI):
|
|
@@ -39,7 +38,7 @@ class PgPassword(PgDBI):
|
|
|
39
38
|
self.dbopt = False
|
|
40
39
|
self.password = ''
|
|
41
40
|
|
|
42
|
-
# read in
|
|
41
|
+
# read in command line parameters
|
|
43
42
|
def read_parameters(self):
|
|
44
43
|
argv = sys.argv[1:]
|
|
45
44
|
opt = None
|
|
@@ -73,7 +72,7 @@ class PgPassword(PgDBI):
|
|
|
73
72
|
sys.exit(0)
|
|
74
73
|
|
|
75
74
|
# get the pgpassword
|
|
76
|
-
def
|
|
75
|
+
def start_actions(self):
|
|
77
76
|
if self.dbopt:
|
|
78
77
|
self.default_scinfo(self.DBINFO['dbname'], self.DBINFO['scname'], self.DBINFO['dbhost'],
|
|
79
78
|
self.DBINFO['lnname'], None, self.DBINFO['dbport'])
|
|
@@ -82,10 +81,10 @@ class PgPassword(PgDBI):
|
|
|
82
81
|
|
|
83
82
|
# main function to excecute this script
|
|
84
83
|
def main():
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
print(
|
|
84
|
+
object = PgPassword()
|
|
85
|
+
object.read_parameters()
|
|
86
|
+
object.start_actions()
|
|
87
|
+
print(object.password)
|
|
89
88
|
sys.exit(0)
|
|
90
89
|
|
|
91
90
|
# call main() to start program
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
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
|
|
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_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|