rdxz2-utill 0.0.1__tar.gz → 0.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.

Potentially problematic release.


This version of rdxz2-utill might be problematic. Click here for more details.

Files changed (39) hide show
  1. {rdxz2_utill-0.0.1/src/rdxz2_utill.egg-info → rdxz2_utill-0.0.3}/PKG-INFO +2 -2
  2. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/pyproject.toml +2 -2
  3. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3/src/rdxz2_utill.egg-info}/PKG-INFO +2 -2
  4. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_pg.py +2 -2
  5. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/LICENSE +0 -0
  6. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/README.md +0 -0
  7. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/setup.cfg +0 -0
  8. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/rdxz2_utill.egg-info/SOURCES.txt +0 -0
  9. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/rdxz2_utill.egg-info/dependency_links.txt +0 -0
  10. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/rdxz2_utill.egg-info/entry_points.txt +0 -0
  11. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/rdxz2_utill.egg-info/requires.txt +0 -0
  12. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/rdxz2_utill.egg-info/top_level.txt +0 -0
  13. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/__init__.py +0 -0
  14. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/cmd/__init__.py +0 -0
  15. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/cmd/_bq.py +0 -0
  16. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/cmd/_conf.py +0 -0
  17. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/cmd/_enc.py +0 -0
  18. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/cmd/_main.py +0 -0
  19. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/cmd/_pg.py +0 -0
  20. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/cmd/utill.py +0 -0
  21. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_bq.py +0 -0
  22. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_const.py +0 -0
  23. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_csv.py +0 -0
  24. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_datetime.py +0 -0
  25. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_dict.py +0 -0
  26. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_encryption.py +0 -0
  27. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_env.py +0 -0
  28. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_file.py +0 -0
  29. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_gcs.py +0 -0
  30. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_input.py +0 -0
  31. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_json.py +0 -0
  32. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_mb.py +0 -0
  33. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_queue.py +0 -0
  34. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_string.py +0 -0
  35. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_style.py +0 -0
  36. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_tunnel.py +0 -0
  37. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/my_xlsx.py +0 -0
  38. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/templates/mb.json +0 -0
  39. {rdxz2_utill-0.0.1 → rdxz2_utill-0.0.3}/src/utill/templates/pg.json +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdxz2-utill
3
- Version: 0.0.1
4
- Summary: A small example package
3
+ Version: 0.0.3
4
+ Summary: Your daily Python utility
5
5
  Author-email: Richard Dharmawan <richard.dharmawan@gmail.com>
6
6
  License: MIT License
7
7
 
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rdxz2-utill"
7
- version = "0.0.1"
7
+ version = "0.0.3"
8
8
  authors = [
9
9
  { name="Richard Dharmawan", email="richard.dharmawan@gmail.com" },
10
10
  ]
11
- description = "A small example package"
11
+ description = "Your daily Python utility"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.12"
14
14
  license = { file = "LICENSE" }
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdxz2-utill
3
- Version: 0.0.1
4
- Summary: A small example package
3
+ Version: 0.0.3
4
+ Summary: Your daily Python utility
5
5
  Author-email: Richard Dharmawan <richard.dharmawan@gmail.com>
6
6
  License: MIT License
7
7
 
@@ -24,7 +24,7 @@ class PG:
24
24
  ) -> None:
25
25
  # Evaluate config source
26
26
  if isinstance(config_source, str):
27
- if os.path.exists(config_source):
27
+ if not os.path.exists(config_source):
28
28
  raise ValueError(f'Config source file not found: {config_source}, create one with \'utill init\'')
29
29
  if connection is None:
30
30
  raise ValueError('Connection name must be provided when using file source!')
@@ -64,7 +64,7 @@ class PG:
64
64
  self.close()
65
65
 
66
66
  def establish_connection(self, autocommit: bool, row_factory: psycopg.rows):
67
- self.conn = psycopg.connect(f'postgresql://{self.db_username}:{self.db_password}@{self.db_host}:{self.db_port}/{self.db_name}', autocommit=autocommit)
67
+ self.conn = psycopg.connect(self.dsn, autocommit=autocommit)
68
68
  self.cursor = self.conn.cursor(row_factory=row_factory)
69
69
  logger.debug(f'PG client open: {self.db_username}@{self.db_host}:{self.db_port}/{self.db_name}, autocommit={self.conn.autocommit}')
70
70
 
File without changes
File without changes
File without changes