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.
Files changed (33) hide show
  1. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/PKG-INFO +1 -1
  2. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/pyproject.toml +1 -1
  3. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_pass.py +6 -7
  4. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/PKG-INFO +1 -1
  5. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/LICENSE +0 -0
  6. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/README.md +0 -0
  7. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/setup.cfg +0 -0
  8. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgCMD.py +0 -0
  9. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgDBI.py +0 -0
  10. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgFile.py +0 -0
  11. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgLOG.py +0 -0
  12. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgLock.py +0 -0
  13. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgOPT.py +0 -0
  14. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgSIG.py +0 -0
  15. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgSplit.py +0 -0
  16. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/PgUtil.py +0 -0
  17. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/__init__.py +0 -0
  18. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_cmd.py +0 -0
  19. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_dbi.py +0 -0
  20. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_file.py +0 -0
  21. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_lock.py +0 -0
  22. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_log.py +0 -0
  23. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_opt.py +0 -0
  24. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_sig.py +0 -0
  25. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_split.py +0 -0
  26. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pg_util.py +0 -0
  27. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common/pgpassword.py +0 -0
  28. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
  29. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
  30. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/entry_points.txt +0 -0
  31. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/requires.txt +0 -0
  32. {rda_python_common-2.0.1 → rda_python_common-2.0.2}/src/rda_python_common.egg-info/top_level.txt +0 -0
  33. {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.1
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
@@ -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.2"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -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.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