mirror of
https://github.com/hanzo-ds/connect.git
synced 2026-10-30 20:31:24 +00:00
* expose __version__ as string * add __all__ to init * go with version string only * add test, reorder ver check
15 lines
504 B
Python
15 lines
504 B
Python
import sys
|
|
|
|
if sys.version_info < (3, 10): # noqa: UP036
|
|
raise RuntimeError("clickhouse-connect 1.0+ requires Python 3.10 or later. Python 3.9 users should pin to clickhouse-connect<1.0.")
|
|
|
|
from clickhouse_connect._version import version as __version__
|
|
from clickhouse_connect.driver import create_async_client, create_client
|
|
|
|
__all__ = ["__version__", "driver_name", "get_client", "get_async_client"]
|
|
|
|
driver_name = "clickhousedb"
|
|
|
|
get_client = create_client
|
|
get_async_client = create_async_client
|