ry-pg-utils 1.0.3__tar.gz → 1.0.4__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 (30) hide show
  1. {ry_pg_utils-1.0.3/src/ry_pg_utils.egg-info → ry_pg_utils-1.0.4}/PKG-INFO +6 -2
  2. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/README.md +5 -1
  3. ry_pg_utils-1.0.4/VERSION +1 -0
  4. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/config.py +11 -0
  5. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4/src/ry_pg_utils.egg-info}/PKG-INFO +6 -2
  6. ry_pg_utils-1.0.3/VERSION +0 -1
  7. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/LICENSE +0 -0
  8. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/MANIFEST.in +0 -0
  9. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/packages/base_requirements.in +0 -0
  10. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/pyproject.toml +0 -0
  11. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/setup.cfg +0 -0
  12. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/setup.py +0 -0
  13. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/__init__.py +0 -0
  14. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/connect.py +0 -0
  15. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/dynamic_table.py +0 -0
  16. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/ipc/__init__.py +0 -0
  17. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/ipc/channels.py +0 -0
  18. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/notify_trigger.py +0 -0
  19. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/parse_args.py +0 -0
  20. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/pb_types/__init__.py +0 -0
  21. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/pb_types/database_pb2.py +0 -0
  22. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/pb_types/database_pb2.pyi +0 -0
  23. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/pb_types/py.typed +0 -0
  24. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/postgres_info.py +0 -0
  25. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/py.typed +0 -0
  26. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils/updater.py +0 -0
  27. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils.egg-info/SOURCES.txt +0 -0
  28. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils.egg-info/dependency_links.txt +0 -0
  29. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils.egg-info/requires.txt +0 -0
  30. {ry_pg_utils-1.0.3 → ry_pg_utils-1.0.4}/src/ry_pg_utils.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ry-pg-utils
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Utility functions for PostgreSQL
5
5
  Author: Ross Yeager
6
6
  Author-email: ryeager12@email.com
@@ -202,6 +202,7 @@ from ry_pg_utils.connect import (
202
202
  ```
203
203
 
204
204
  **Key Features:**
205
+
205
206
  - Thread-local backend ID tracking
206
207
  - Connection pooling with configurable parameters (pool_size, max_overflow, pool_recycle)
207
208
  - Automatic connection recovery with retry logic (using tenacity)
@@ -238,6 +239,7 @@ exists = db.inst_is_in_db(
238
239
  ```
239
240
 
240
241
  **Supported Protocol Buffer Types:**
242
+
241
243
  - `int32`, `int64`, `uint32`, `uint64` → PostgreSQL `Integer`
242
244
  - `float`, `double` → PostgreSQL `Float`
243
245
  - `bool` → PostgreSQL `Boolean`
@@ -637,11 +639,12 @@ Contributions are welcome! Please feel free to submit a Pull Request.
637
639
 
638
640
  ## Author
639
641
 
640
- Ross Yeager - ryeager12@email.com
642
+ Ross Yeager - `ryeager12@email.com`
641
643
 
642
644
  ## Changelog
643
645
 
644
646
  ### Version 1.0.2 (Current)
647
+
645
648
  - PostgreSQL LISTEN/NOTIFY support with triggers and notifications
646
649
  - NotificationListener class for background notification handling
647
650
  - Automatic connection health checks with pool_pre_ping
@@ -650,6 +653,7 @@ Ross Yeager - ryeager12@email.com
650
653
  - Improved error handling and connection recovery
651
654
 
652
655
  ### Version 1.0.0
656
+
653
657
  - Initial release
654
658
  - Database connection management with pooling
655
659
  - Dynamic table creation from Protocol Buffers
@@ -171,6 +171,7 @@ from ry_pg_utils.connect import (
171
171
  ```
172
172
 
173
173
  **Key Features:**
174
+
174
175
  - Thread-local backend ID tracking
175
176
  - Connection pooling with configurable parameters (pool_size, max_overflow, pool_recycle)
176
177
  - Automatic connection recovery with retry logic (using tenacity)
@@ -207,6 +208,7 @@ exists = db.inst_is_in_db(
207
208
  ```
208
209
 
209
210
  **Supported Protocol Buffer Types:**
211
+
210
212
  - `int32`, `int64`, `uint32`, `uint64` → PostgreSQL `Integer`
211
213
  - `float`, `double` → PostgreSQL `Float`
212
214
  - `bool` → PostgreSQL `Boolean`
@@ -606,11 +608,12 @@ Contributions are welcome! Please feel free to submit a Pull Request.
606
608
 
607
609
  ## Author
608
610
 
609
- Ross Yeager - ryeager12@email.com
611
+ Ross Yeager - `ryeager12@email.com`
610
612
 
611
613
  ## Changelog
612
614
 
613
615
  ### Version 1.0.2 (Current)
616
+
614
617
  - PostgreSQL LISTEN/NOTIFY support with triggers and notifications
615
618
  - NotificationListener class for background notification handling
616
619
  - Automatic connection health checks with pool_pre_ping
@@ -619,6 +622,7 @@ Ross Yeager - ryeager12@email.com
619
622
  - Improved error handling and connection recovery
620
623
 
621
624
  ### Version 1.0.0
625
+
622
626
  - Initial release
623
627
  - Database connection management with pooling
624
628
  - Dynamic table creation from Protocol Buffers
@@ -0,0 +1 @@
1
+ 1.0.4
@@ -18,6 +18,10 @@ class Config:
18
18
  add_backend_to_all: bool
19
19
  add_backend_to_tables: bool
20
20
  raise_on_use_before_init: bool
21
+ ssh_host: str | None
22
+ ssh_port: int | None
23
+ ssh_user: str | None
24
+ ssh_key_path: str | None
21
25
 
22
26
 
23
27
  dotenv.load_dotenv()
@@ -26,6 +30,9 @@ dotenv.load_dotenv()
26
30
  _postgres_port_str = os.getenv("POSTGRES_PORT")
27
31
  _postgres_port = int(_postgres_port_str) if _postgres_port_str is not None else None
28
32
 
33
+ _ssh_port_str = os.getenv("SSH_PORT")
34
+ _ssh_port = int(_ssh_port_str) if _ssh_port_str is not None else None
35
+
29
36
  pg_config = Config(
30
37
  postgres_host=os.getenv("POSTGRES_HOST"),
31
38
  postgres_port=_postgres_port,
@@ -41,4 +48,8 @@ pg_config = Config(
41
48
  add_backend_to_all=True,
42
49
  add_backend_to_tables=True,
43
50
  raise_on_use_before_init=True,
51
+ ssh_host=os.getenv("SSH_HOST"),
52
+ ssh_port=_ssh_port,
53
+ ssh_user=os.getenv("SSH_USER"),
54
+ ssh_key_path=os.getenv("SSH_KEY_PATH"),
44
55
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ry-pg-utils
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Utility functions for PostgreSQL
5
5
  Author: Ross Yeager
6
6
  Author-email: ryeager12@email.com
@@ -202,6 +202,7 @@ from ry_pg_utils.connect import (
202
202
  ```
203
203
 
204
204
  **Key Features:**
205
+
205
206
  - Thread-local backend ID tracking
206
207
  - Connection pooling with configurable parameters (pool_size, max_overflow, pool_recycle)
207
208
  - Automatic connection recovery with retry logic (using tenacity)
@@ -238,6 +239,7 @@ exists = db.inst_is_in_db(
238
239
  ```
239
240
 
240
241
  **Supported Protocol Buffer Types:**
242
+
241
243
  - `int32`, `int64`, `uint32`, `uint64` → PostgreSQL `Integer`
242
244
  - `float`, `double` → PostgreSQL `Float`
243
245
  - `bool` → PostgreSQL `Boolean`
@@ -637,11 +639,12 @@ Contributions are welcome! Please feel free to submit a Pull Request.
637
639
 
638
640
  ## Author
639
641
 
640
- Ross Yeager - ryeager12@email.com
642
+ Ross Yeager - `ryeager12@email.com`
641
643
 
642
644
  ## Changelog
643
645
 
644
646
  ### Version 1.0.2 (Current)
647
+
645
648
  - PostgreSQL LISTEN/NOTIFY support with triggers and notifications
646
649
  - NotificationListener class for background notification handling
647
650
  - Automatic connection health checks with pool_pre_ping
@@ -650,6 +653,7 @@ Ross Yeager - ryeager12@email.com
650
653
  - Improved error handling and connection recovery
651
654
 
652
655
  ### Version 1.0.0
656
+
653
657
  - Initial release
654
658
  - Database connection management with pooling
655
659
  - Dynamic table creation from Protocol Buffers
ry_pg_utils-1.0.3/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.3
File without changes
File without changes
File without changes
File without changes
File without changes