iker-python-common 1.0.50__py3-none-any.whl → 1.0.51__py3-none-any.whl

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.
@@ -65,6 +65,39 @@ class ConnectionMaker(object):
65
65
  self.engine_opts = engine_opts or {}
66
66
  self.session_opts = session_opts or {}
67
67
 
68
+ @staticmethod
69
+ def create(
70
+ driver: str | None = None,
71
+ host: str | None = None,
72
+ port: int | None = None,
73
+ username: str | None = None,
74
+ password: str | None = None,
75
+ database: str | None = None,
76
+ *,
77
+ engine_opts: dict[str, JsonType] | None = None,
78
+ session_opts: dict[str, JsonType] | None = None,
79
+ ):
80
+ """
81
+ Creates a new instance of ``ConnectionMaker`` using the provided parameters to construct a SQLAlchemy URL.
82
+
83
+ :param driver: Optional database driver.
84
+ :param host: The database host (e.g., 'localhost').
85
+ :param port: The database port.
86
+ :param username: The database username.
87
+ :param password: The database password.
88
+ :param database: The name of the database to connect to.
89
+ :param engine_opts: Optional dictionary of SQLAlchemy engine options.
90
+ :param session_opts: Optional dictionary of SQLAlchemy session options.
91
+ """
92
+ return ConnectionMaker(sqlalchemy.URL.create(drivername=driver,
93
+ host=host,
94
+ port=port,
95
+ username=username,
96
+ password=password,
97
+ database=database),
98
+ engine_opts=engine_opts,
99
+ session_opts=session_opts)
100
+
68
101
  @staticmethod
69
102
  def from_url(
70
103
  url: str | sqlalchemy.URL,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iker-python-common
3
- Version: 1.0.50
3
+ Version: 1.0.51
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3.11
6
6
  Classifier: Programming Language :: Python :: 3.12
@@ -3,7 +3,7 @@ iker/common/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
3
3
  iker/common/utils/argutils.py,sha256=hMLNqdZs_Kjc2hw4Npm6N47RivP6JRNzCKIbJr1jYy8,9274
4
4
  iker/common/utils/config.py,sha256=z8rLqli961A-qAV9EaELp-pKuhNUNaq1Btdv-uwG7_I,4690
5
5
  iker/common/utils/csv.py,sha256=_V9OUrKcojec2L-hWagEIVnL2uvGjyJAFTrD7tHNr48,7573
6
- iker/common/utils/dbutils.py,sha256=q-rZ9KNFxAEsSXWcqcihQTsqiDlWbSFHZ5XGVPj2tnk,10335
6
+ iker/common/utils/dbutils.py,sha256=zXZVJCz7HZPityFRF7sHRRMpMraegV_hyYnzApUUPhY,11852
7
7
  iker/common/utils/dockerutils.py,sha256=n2WuzXaZB6_WocSljvPOnfExSIjIHRUbuWp2oBbaPKQ,8004
8
8
  iker/common/utils/dtutils.py,sha256=86vbaa4pgcBWERZvTfJ92PKB3IimxP6tf0O11ho2Ffk,12554
9
9
  iker/common/utils/funcutils.py,sha256=A08f5wjoLgLQKyRJcYeWJnqVm2QcerIx0l-Se2600bc,5869
@@ -19,7 +19,7 @@ iker/common/utils/span.py,sha256=yiXqk86cLKxkMdkO3pAHEfU5bUvHsGo3p--pAWo_yfM,599
19
19
  iker/common/utils/strutils.py,sha256=Tu_qFeH3K-SfwvMxdrZAc9iLPV8ZmtX4ntyyFGNslf8,5094
20
20
  iker/common/utils/testutils.py,sha256=2VieV5yeCDntSKQSpIeyqRT8BZmZYE_ArMeQz3g7fXY,5568
21
21
  iker/common/utils/typeutils.py,sha256=RVkYkFRgDrx77OHFH7PavMV0AIB0S8ly40rs4g7JWE4,8220
22
- iker_python_common-1.0.50.dist-info/METADATA,sha256=-1LTQO70aQMjIiAieCqzoziAGeRaCE9DKd9WdXBmCrk,1001
23
- iker_python_common-1.0.50.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- iker_python_common-1.0.50.dist-info/top_level.txt,sha256=4_B8Prfc_lxFafFYTQThIU1ZqOYQ4pHHHnJ_fQ_oHs8,5
25
- iker_python_common-1.0.50.dist-info/RECORD,,
22
+ iker_python_common-1.0.51.dist-info/METADATA,sha256=Yb0B55UC6sBod8XCPOu5SZFk_JpS5nyQ9uaWz9LtclE,1001
23
+ iker_python_common-1.0.51.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ iker_python_common-1.0.51.dist-info/top_level.txt,sha256=4_B8Prfc_lxFafFYTQThIU1ZqOYQ4pHHHnJ_fQ_oHs8,5
25
+ iker_python_common-1.0.51.dist-info/RECORD,,