diff --git a/docs/source/conf.py b/docs/source/conf.py index 322addc..4c9d72e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -18,7 +18,7 @@ sys.path.insert(0, os.path.abspath("../../")) -from python_sc import VERSION, VERSION_SHORT # noqa: E402 +from python_wsdb import VERSION, VERSION_SHORT # noqa: E402 # -- Project information ----------------------------------------------------- diff --git a/python_sc/__init__.py b/python_wsdb/__init__.py similarity index 100% rename from python_sc/__init__.py rename to python_wsdb/__init__.py diff --git a/python_sc/client/__init__.py b/python_wsdb/client/__init__.py similarity index 100% rename from python_sc/client/__init__.py rename to python_wsdb/client/__init__.py diff --git a/python_sc/client/query.py b/python_wsdb/client/query.py similarity index 97% rename from python_sc/client/query.py rename to python_wsdb/client/query.py index 81d48f5..cff83a0 100644 --- a/python_sc/client/query.py +++ b/python_wsdb/client/query.py @@ -5,8 +5,8 @@ from dataclasses_json import dataclass_json -from python_sc.client.sql_job import SQLJob -from python_sc.types import QueryOptions +from python_wsdb.client.sql_job import SQLJob +from python_wsdb.types import QueryOptions T = TypeVar("T") diff --git a/python_sc/client/sql_job.py b/python_wsdb/client/sql_job.py similarity index 97% rename from python_sc/client/sql_job.py rename to python_wsdb/client/sql_job.py index 5f3479a..2725d8d 100644 --- a/python_sc/client/sql_job.py +++ b/python_wsdb/client/sql_job.py @@ -7,7 +7,7 @@ import websocket from websocket import WebSocket, create_connection -from python_sc.types import ( +from python_wsdb.types import ( ConnectionResult, DaemonServer, JDBCOptions, @@ -114,7 +114,7 @@ def query( sql: str, opts: Optional[Union[Dict[str, Any], QueryOptions]] = None, ): - from python_sc.client.query import Query + from python_wsdb.client.query import Query if isinstance(opts, dict): opts = QueryOptions(**opts) diff --git a/python_sc/py.typed b/python_wsdb/py.typed similarity index 100% rename from python_sc/py.typed rename to python_wsdb/py.typed diff --git a/python_sc/tls.py b/python_wsdb/tls.py similarity index 96% rename from python_sc/tls.py rename to python_wsdb/tls.py index 193b993..2bfd8bc 100644 --- a/python_sc/tls.py +++ b/python_wsdb/tls.py @@ -4,7 +4,7 @@ from dataclasses import dataclass from typing import Optional, Union -from python_sc.types import DaemonServer +from python_wsdb.types import DaemonServer async def get_certificate(server: DaemonServer): diff --git a/python_sc/types.py b/python_wsdb/types.py similarity index 100% rename from python_sc/types.py rename to python_wsdb/types.py diff --git a/python_sc/version.py b/python_wsdb/version.py similarity index 100% rename from python_sc/version.py rename to python_wsdb/version.py diff --git a/scripts/prepare_changelog.py b/scripts/prepare_changelog.py index cee0e91..4a3052e 100644 --- a/scripts/prepare_changelog.py +++ b/scripts/prepare_changelog.py @@ -1,7 +1,7 @@ from datetime import datetime from pathlib import Path -from python_sc.version import VERSION +from python_wsdb.version import VERSION def main(): diff --git a/test.ipynb b/test.ipynb index 65e2c85..05e59b3 100644 --- a/test.ipynb +++ b/test.ipynb @@ -6,8 +6,8 @@ "metadata": {}, "outputs": [], "source": [ - "from python_sc.client.sql_job import SQLJob\n", - "from python_sc.types import DaemonServer\n", + "from python_wsdb.client.sql_job import SQLJob\n", + "from python_wsdb.types import DaemonServer\n", "import pandas as pd" ] }, diff --git a/tests/hello_test.py b/tests/hello_test.py index 75860d5..d07425c 100644 --- a/tests/hello_test.py +++ b/tests/hello_test.py @@ -1,7 +1,7 @@ import asyncio -from python_sc.client.sql_job import SQLJob -from python_sc.tls import get_certificate -from python_sc.types import DaemonServer +from python_wsdb.client.sql_job import SQLJob +from python_wsdb.tls import get_certificate +from python_wsdb.types import DaemonServer creds = DaemonServer( host="localhost",