iker-python-common 1.0.5__tar.gz → 1.0.6__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.
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/PKG-INFO +1 -1
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/dbutils.py +20 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/PKG-INFO +1 -1
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/.editorconfig +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/.github/workflows/pr.yml +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/.github/workflows/push.yml +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/.gitignore +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/MANIFEST.in +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/README.md +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/VERSION +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/pyproject.toml +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.baz/file.bar.baz +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.baz/file.foo.bar +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.baz/file.foo.baz +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.bar.baz +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.foo.bar +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.foo.baz +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/file.bar +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/file.baz +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/file.foo +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/setup.cfg +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/setup.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/__init__.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/__init__.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/config.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/dockerutils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/dtutils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/funcutils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/logger.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/numutils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/randutils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/retry.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/s3utils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/sequtils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/shutils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/span.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/strutils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker/common/utils/testutils.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/SOURCES.txt +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/dependency_links.txt +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/not-zip-safe +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/requires.txt +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/top_level.txt +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/__init__.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/config_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/dbutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/dockerutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/dtutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/funcutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/logger_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/numutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/randutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/retry_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/s3utils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/sequtils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/shutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/span_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/strutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/testutils_test.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/docker_fixtures.py +0 -0
- {iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/iker_test.py +0 -0
|
@@ -50,6 +50,26 @@ class DBAdapter(object):
|
|
|
50
50
|
self.engine_opts = engine_opts or {}
|
|
51
51
|
self.session_opts = session_opts or {}
|
|
52
52
|
|
|
53
|
+
@staticmethod
|
|
54
|
+
def from_url(
|
|
55
|
+
driver: str,
|
|
56
|
+
url: str | urllib.parse.ParseResult,
|
|
57
|
+
engine_opts: dict[str, Any] | None = None,
|
|
58
|
+
session_opts: dict[str, Any] | None = None,
|
|
59
|
+
) -> "DBAdapter":
|
|
60
|
+
if isinstance(url, str):
|
|
61
|
+
return DBAdapter.from_url(driver, urllib.parse.urlparse(url), engine_opts, session_opts)
|
|
62
|
+
if isinstance(url, urllib.parse.ParseResult):
|
|
63
|
+
return DBAdapter(driver,
|
|
64
|
+
url.hostname,
|
|
65
|
+
url.port,
|
|
66
|
+
url.username,
|
|
67
|
+
url.password,
|
|
68
|
+
url.path.strip("/"),
|
|
69
|
+
engine_opts,
|
|
70
|
+
session_opts)
|
|
71
|
+
raise ValueError("illegal parameter 'url'")
|
|
72
|
+
|
|
53
73
|
@property
|
|
54
74
|
def connection_string(self) -> str:
|
|
55
75
|
port_part = "" if self.port is None else (":%d" % self.port)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/file.bar
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/file.baz
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/resources/unittest/shutils/dir.foo/file.foo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/src/iker_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/config_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/dbutils_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/dtutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/funcutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/logger_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/numutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/randutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/retry_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/s3utils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/sequtils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/shutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/span_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/strutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.5 → iker_python_common-1.0.6}/test/iker_tests/common/utils/testutils_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|