diff --git a/application/apache-superset/requirements.txt b/application/apache-superset/requirements.txt index caeaaf00..eefb10ad 100644 --- a/application/apache-superset/requirements.txt +++ b/application/apache-superset/requirements.txt @@ -1,2 +1,3 @@ apache-superset -crate[sqlalchemy]==0.35.2 +crate==1.0.0dev0 +sqlalchemy-cratedb>=0.36,<1 diff --git a/by-dataframe/dask/README.md b/by-dataframe/dask/README.md index f1c09046..230bbdaf 100644 --- a/by-dataframe/dask/README.md +++ b/by-dataframe/dask/README.md @@ -22,7 +22,7 @@ database table in a single operation. It can be used like this: # DBURI = "crate://crate@localhost:4200/" import sqlalchemy as sa -from crate.client.sqlalchemy.support import insert_bulk +from sqlalchemy_cratedb.support import insert_bulk ddf.to_sql( "testdrive", diff --git a/by-dataframe/dask/insert_dask.py b/by-dataframe/dask/insert_dask.py index 435c6441..37fdd409 100644 --- a/by-dataframe/dask/insert_dask.py +++ b/by-dataframe/dask/insert_dask.py @@ -8,7 +8,7 @@ ===== :: - pip install --upgrade click colorlog 'crate[sqlalchemy]' pandas + pip install --upgrade click colorlog pandas sqlalchemy-cratedb Synopsis ======== @@ -21,11 +21,10 @@ import click import dask.dataframe as dd -import sqlalchemy as sa -from crate.client.sqlalchemy.support import insert_bulk from dask.diagnostics import ProgressBar from pueblo.testing.pandas import makeTimeDataFrame from pueblo.util.logging import setup_logging +from sqlalchemy_cratedb.support import insert_bulk logger = logging.getLogger(__name__) diff --git a/by-dataframe/dask/requirements.txt b/by-dataframe/dask/requirements.txt index 2ba45c14..1c5f3829 100644 --- a/by-dataframe/dask/requirements.txt +++ b/by-dataframe/dask/requirements.txt @@ -1,6 +1,7 @@ click<9 colorlog<7 -crate[sqlalchemy] +crate==1.0.0dev0 dask[dataframe]>=2024.4.1 # Python 3.11.9 breaks previous Dask distributed>=2024.4.1 # Python 3.11.9 breaks previous Dask pueblo>=0.0.7 +sqlalchemy-cratedb>=0.36,<1 diff --git a/by-dataframe/pandas/README.md b/by-dataframe/pandas/README.md index 4af2cb3e..6747af5d 100644 --- a/by-dataframe/pandas/README.md +++ b/by-dataframe/pandas/README.md @@ -22,7 +22,7 @@ database table in a single operation. It can be used like this: # DBURI = "crate://crate@localhost:4200/" import sqlalchemy as sa -from crate.client.sqlalchemy.support import insert_bulk +from sqlalchemy_cratedb.support import insert_bulk engine = sa.create_engine(DBURI, **kwargs) df.to_sql( diff --git a/by-dataframe/pandas/insert_pandas.py b/by-dataframe/pandas/insert_pandas.py index 0f6d065f..4043e584 100644 --- a/by-dataframe/pandas/insert_pandas.py +++ b/by-dataframe/pandas/insert_pandas.py @@ -16,7 +16,7 @@ ===== :: - pip install --upgrade click colorlog 'crate[sqlalchemy]' pandas + pip install --upgrade click colorlog pandas sqlalchemy-cratedb Synopsis @@ -50,9 +50,9 @@ import click import sqlalchemy as sa -from crate.client.sqlalchemy.support import insert_bulk from pueblo.testing.pandas import makeTimeDataFrame from pueblo.util.logging import setup_logging +from sqlalchemy_cratedb.support import insert_bulk logger = logging.getLogger(__name__) diff --git a/by-dataframe/pandas/requirements.txt b/by-dataframe/pandas/requirements.txt index ce7ae709..f917a002 100644 --- a/by-dataframe/pandas/requirements.txt +++ b/by-dataframe/pandas/requirements.txt @@ -1,5 +1,6 @@ click<9 colorlog<7 -crate[sqlalchemy] +crate==1.0.0dev0 pandas<2.3 pueblo>=0.0.7 +sqlalchemy-cratedb>=0.36,<1 diff --git a/by-dataframe/polars/read_sqlalchemy.py b/by-dataframe/polars/read_sqlalchemy.py index ee669093..2cca0636 100644 --- a/by-dataframe/polars/read_sqlalchemy.py +++ b/by-dataframe/polars/read_sqlalchemy.py @@ -2,7 +2,7 @@ Install the dependencies with: ``` -$ pip install crate[sqlalchemy] polars +$ pip install polars sqlalchemy-cratedb ``` """ diff --git a/by-dataframe/polars/write_sqlalchemy.py b/by-dataframe/polars/write_sqlalchemy.py index c0695edd..32782df1 100644 --- a/by-dataframe/polars/write_sqlalchemy.py +++ b/by-dataframe/polars/write_sqlalchemy.py @@ -3,7 +3,7 @@ Install the dependencies with to run this script: -`$ pip install polars pandas crate[sqlalchemy] pyarrow` +`$ pip install polars pandas pyarrow sqlalchemy-cratedb` """ import polars diff --git a/by-language/python-sqlalchemy/insert_efficient.py b/by-language/python-sqlalchemy/insert_efficient.py index 33c9cff3..7d15e8c8 100644 --- a/by-language/python-sqlalchemy/insert_efficient.py +++ b/by-language/python-sqlalchemy/insert_efficient.py @@ -14,7 +14,7 @@ ===== :: - pip install --upgrade 'crate[sqlalchemy]' + pip install --upgrade sqlalchemy-cratedb Synopsis diff --git a/topic/machine-learning/automl/requirements-dev.txt b/topic/machine-learning/automl/requirements-dev.txt index 50eab735..1f612175 100644 --- a/topic/machine-learning/automl/requirements-dev.txt +++ b/topic/machine-learning/automl/requirements-dev.txt @@ -1,9 +1,9 @@ # Real. -cratedb-toolkit[io] +cratedb-toolkit[io]>=0.0.13,<0.1 pueblo[notebook,testing]>=0.0.7 # Development. -# cratedb-toolkit[io] @ git+https://github.com/crate-workbench/cratedb-toolkit.git@7f3a493 +# cratedb-toolkit[io] @ git+https://github.com/crate-workbench/cratedb-toolkit.git@sqlalchemy-nt # pueblo[notebook,testing] @ git+https://github.com/pyveci/pueblo.git@main # Workstation. diff --git a/topic/machine-learning/automl/requirements.txt b/topic/machine-learning/automl/requirements.txt index 0379f5df..c9f3fadd 100644 --- a/topic/machine-learning/automl/requirements.txt +++ b/topic/machine-learning/automl/requirements.txt @@ -1,11 +1,13 @@ # Real. -crate[sqlalchemy] -mlflow-cratedb==2.11.3 +crate==1.0.0dev0 +cratedb-toolkit>=0.0.13,<0.1 +mlflow-cratedb==2.13.2 plotly<5.23 pycaret[models,parallel,test]==3.3.2 pydantic<2 python-dotenv<2 sqlalchemy==2.* +sqlalchemy-cratedb>=0.36,<1 # Development. -# mlflow-cratedb @ git+https://github.com/crate-workbench/mlflow-cratedb.git@main +# mlflow-cratedb @ git+https://github.com/crate-workbench/mlflow-cratedb.git@sqlalchemy-cratedb diff --git a/topic/machine-learning/llm-langchain/requirements.txt b/topic/machine-learning/llm-langchain/requirements.txt index 0d1a8ab9..7513de83 100644 --- a/topic/machine-learning/llm-langchain/requirements.txt +++ b/topic/machine-learning/llm-langchain/requirements.txt @@ -1,7 +1,8 @@ # Real. crash -crate[sqlalchemy]==0.35.2 -cratedb-toolkit==0.0.12 +crate==1.0.0dev0 +cratedb-toolkit>=0.0.13,<0.1 +sqlalchemy-cratedb>=0.36,<1 # langchain[cratedb,openai]==0.0.354 # langchain-community==0.0.8 diff --git a/topic/machine-learning/mlops-mlflow/requirements-dev.txt b/topic/machine-learning/mlops-mlflow/requirements-dev.txt index a5825f18..b3bf3bdf 100644 --- a/topic/machine-learning/mlops-mlflow/requirements-dev.txt +++ b/topic/machine-learning/mlops-mlflow/requirements-dev.txt @@ -1,9 +1,9 @@ # Real. -cratedb-toolkit[io] +cratedb-toolkit[io]>=0.0.13,<0.1 pueblo[notebook,testing]>=0.0.7 # Development. -# cratedb-toolkit[io] @ git+https://github.com/crate-workbench/cratedb-toolkit.git@7f3a493 +# cratedb-toolkit[io] @ git+https://github.com/crate-workbench/cratedb-toolkit.git@sqlalchemy-nt # pueblo[notebook,testing] @ git+https://github.com/pyveci/pueblo.git@main # Workstation. diff --git a/topic/machine-learning/mlops-mlflow/requirements.txt b/topic/machine-learning/mlops-mlflow/requirements.txt index 9373cba4..da1861ff 100644 --- a/topic/machine-learning/mlops-mlflow/requirements.txt +++ b/topic/machine-learning/mlops-mlflow/requirements.txt @@ -1,10 +1,10 @@ # Real. dask>=2024.4.1 # Python 3.11.9 breaks previous Dask distributed>=2024.4.1 # Python 3.11.9 breaks previous Dask -mlflow-cratedb==2.11.3 +mlflow-cratedb==2.13.2 pydantic<3 salesforce-merlion>=2,<3 sqlalchemy==2.* # Development. -# mlflow-cratedb @ git+https://github.com/crate-workbench/mlflow-cratedb.git@main +# mlflow-cratedb @ git+https://github.com/crate-workbench/mlflow-cratedb.git@sqlalchemy-cratedb diff --git a/topic/timeseries/dask-weather-data-import.ipynb b/topic/timeseries/dask-weather-data-import.ipynb index b7951ac1..2b3b710c 100644 --- a/topic/timeseries/dask-weather-data-import.ipynb +++ b/topic/timeseries/dask-weather-data-import.ipynb @@ -66,7 +66,7 @@ }, "outputs": [], "source": [ - "!pip install dask 'pandas==2.0.0' 'crate[sqlalchemy]' 'cratedb-toolkit==0.0.10' 'pueblo>=0.0.7' kaggle" + "!pip install 'cratedb-toolkit' 'dask' 'kaggle' 'pandas==2.0.*' 'pueblo>=0.0.7' 'sqlalchemy-cratedb'" ] }, { @@ -531,7 +531,7 @@ "source": [ "import os\n", "import sqlalchemy as sa\n", - "from crate.client.sqlalchemy.support import insert_bulk\n", + "from sqlalchemy_cratedb.support import insert_bulk\n", "\n", "# Define database address when using CrateDB Cloud.\n", "# Please find these settings on your cluster overview page.\n", diff --git a/topic/timeseries/requirements.txt b/topic/timeseries/requirements.txt index 1ea38dfa..94be0996 100644 --- a/topic/timeseries/requirements.txt +++ b/topic/timeseries/requirements.txt @@ -1,7 +1,8 @@ -crate[sqlalchemy]==0.35.2 -cratedb-toolkit[datasets]==0.0.12 +crate==1.0.0dev0 +cratedb-toolkit[datasets]==0.0.13 refinitiv-data<1.7 pandas<2 pycaret==3.3.2 pydantic<2 sqlalchemy<2 +sqlalchemy-cratedb>=0.36,<1 diff --git a/topic/timeseries/timeseries-queries-and-visualization.ipynb b/topic/timeseries/timeseries-queries-and-visualization.ipynb index ca9f1ed0..ba0dd219 100644 --- a/topic/timeseries/timeseries-queries-and-visualization.ipynb +++ b/topic/timeseries/timeseries-queries-and-visualization.ipynb @@ -67,7 +67,7 @@ "metadata": {}, "outputs": [], "source": [ - "#!pip install 'crate[sqlalchemy]' 'pandas>=2' plotly kaleido" + "#!pip install kaleido 'pandas>=2' plotly sqlalchemy-cratedb" ] }, {