rda-python-common 2.0.1__tar.gz → 2.0.3__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.
Files changed (33) hide show
  1. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/PKG-INFO +1 -1
  2. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/pyproject.toml +1 -2
  3. rda_python_common-2.0.1/src/rda_python_common/pg_pass.py → rda_python_common-2.0.3/src/rda_python_common/pgpassword.py +6 -7
  4. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common.egg-info/PKG-INFO +1 -1
  5. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common.egg-info/SOURCES.txt +1 -1
  6. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common.egg-info/entry_points.txt +0 -1
  7. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/test/test_common.py +1 -2
  8. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/LICENSE +0 -0
  9. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/README.md +0 -0
  10. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/setup.cfg +0 -0
  11. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgCMD.py +0 -0
  12. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgDBI.py +0 -0
  13. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgFile.py +0 -0
  14. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgLOG.py +0 -0
  15. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgLock.py +0 -0
  16. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgOPT.py +0 -0
  17. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgSIG.py +0 -0
  18. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgSplit.py +0 -0
  19. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/PgUtil.py +0 -0
  20. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/__init__.py +0 -0
  21. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_cmd.py +0 -0
  22. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_dbi.py +0 -0
  23. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_file.py +0 -0
  24. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_lock.py +0 -0
  25. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_log.py +0 -0
  26. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_opt.py +0 -0
  27. /rda_python_common-2.0.1/src/rda_python_common/pgpassword.py → /rda_python_common-2.0.3/src/rda_python_common/pg_password.py +0 -0
  28. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_sig.py +0 -0
  29. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_split.py +0 -0
  30. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common/pg_util.py +0 -0
  31. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
  32. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common.egg-info/requires.txt +0 -0
  33. {rda_python_common-2.0.1 → rda_python_common-2.0.3}/src/rda_python_common.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 2.0.1
3
+ Version: 2.0.3
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_common"
7
- version = "2.0.1"
7
+ version = "2.0.3"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -33,4 +33,3 @@ pythonpath = [
33
33
 
34
34
  [project.scripts]
35
35
  pgpassword = "rda_python_common.pgpassword:main"
36
- pg_pass = "rda_python_common.pg_pass:main"
@@ -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 comman line parameters
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 read_pgpassword(self):
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
- pgpass = PgPassword()
86
- pgpass.read_parameters()
87
- pgpass.read_pgpassword()
88
- print(pgpass.password)
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.1
3
+ Version: 2.0.3
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
@@ -17,7 +17,7 @@ src/rda_python_common/pg_file.py
17
17
  src/rda_python_common/pg_lock.py
18
18
  src/rda_python_common/pg_log.py
19
19
  src/rda_python_common/pg_opt.py
20
- src/rda_python_common/pg_pass.py
20
+ src/rda_python_common/pg_password.py
21
21
  src/rda_python_common/pg_sig.py
22
22
  src/rda_python_common/pg_split.py
23
23
  src/rda_python_common/pg_util.py
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
- pg_pass = rda_python_common.pg_pass:main
3
2
  pgpassword = rda_python_common.pgpassword:main
@@ -14,7 +14,6 @@ def test_common():
14
14
  import rda_python_common.PgSIG
15
15
  import rda_python_common.PgSplit
16
16
  import rda_python_common.PgUtil
17
- import rda_python_common.pgpassword
18
17
  import rda_python_common.pg_cmd
19
18
  import rda_python_common.pg_dbi
20
19
  import rda_python_common.pg_file
@@ -24,4 +23,4 @@ def test_common():
24
23
  import rda_python_common.pg_sig
25
24
  import rda_python_common.pg_split
26
25
  import rda_python_common.pg_util
27
- import rda_python_common.pg_pass
26
+ import rda_python_common.pgpassword