diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5d12c4b..e2949704 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,10 +51,10 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'pip' - - name: Install qarray + - name: Install xarray_sql run: | pip install -e .[test] - uses: 'actions/checkout@v4' - name: Run unit tests run: | - pytest qarray \ No newline at end of file + pytest xarray_sql \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 57405384..553abd9e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,5 +18,5 @@ reading [Xarray's contributing guide](https://docs.xarray.dev/en/stable/contribu or [Mamba](https://mamba.readthedocs.io/en/latest/) is preferred. 1. Clone the repository (bonus: [via SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)) - and `cd qarray` (the project root). + and `cd xarray_sql` (the project root). 1. Install dev dependencies via: `pip install -e ".[dev]` \ No newline at end of file diff --git a/README.md b/README.md index d821d3cf..a8675d45 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# qarray +# xarray-sql -_Query Xarray via SQL_ +_Query Xarray with SQL_ -[![ci](https://github.com/alxmrs/qarray/actions/workflows/ci.yml/badge.svg)](https://github.com/alxmrs/qarray/actions/workflows/ci.yml) -[![lint](https://github.com/alxmrs/qarray/actions/workflows/lint.yml/badge.svg)](https://github.com/alxmrs/qarray/actions/workflows/lint.yml) +[![ci](https://github.com/alxmrs/xarray-sql/actions/workflows/ci.yml/badge.svg)](https://github.com/alxmrs/xarray-sql/actions/workflows/ci.yml) +[![lint](https://github.com/alxmrs/xarray-sql/actions/workflows/lint.yml/badge.svg)](https://github.com/alxmrs/xarray-sql/actions/workflows/lint.yml) ## What is this? @@ -12,7 +12,7 @@ This is an experiment to provide a SQL interface for raster data. ```python import xarray as xr -import qarray as qr +import xarray_sql as qr ds = xr.tutorial.open_dataset('air_temperature') @@ -56,8 +56,8 @@ A few reasons: This is a light-weight way to prove the value of the interface. The larger goal is to explore the hypothesis that [Pangeo](https://pangeo.io/) -is a scientific database. Here, Qarray can be thought of as a missing DB front -end. +is a scientific database. Here, xarray-sql can be thought of as a missing DB +front end. ## How does it work? @@ -99,7 +99,7 @@ a [virtual](https://fsspec.github.io/kerchunk/) filesystem for parquet that would internally map to Zarr. Raster-backed virtual parquet would open up integrations to numeroustools like dask, pyarrow, duckdb, and BigQuery. More thoughts on this -in [#4](https://github.com/alxmrs/qarray/issues/4). +in [#4](https://github.com/alxmrs/xarray-sql/issues/4). ## Sponsors & Contributors diff --git a/perf_tests/README.md b/perf_tests/README.md index 03adb04c..4c07c591 100644 --- a/perf_tests/README.md +++ b/perf_tests/README.md @@ -13,7 +13,7 @@ So far, this includes statistical profiles via py-spy. This will open a flame graph in the browser. -2. After tuning code in qarray, run another profile to generate a SVG. +2. After tuning code in xarray-sql, run another profile to generate a SVG. 3. Please commit the "after" profile SVG along with the performance improvements. diff --git a/perf_tests/compute_air.py b/perf_tests/compute_air.py index d4506c17..879c7269 100755 --- a/perf_tests/compute_air.py +++ b/perf_tests/compute_air.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import xarray as xr -import qarray as qr +import xarray_sql as qr if __name__ == '__main__': air = xr.tutorial.open_dataset('air_temperature') diff --git a/perf_tests/groupby_air.py b/perf_tests/groupby_air.py index d5fd06a2..70c1160d 100755 --- a/perf_tests/groupby_air.py +++ b/perf_tests/groupby_air.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import xarray as xr -import qarray as qr +import xarray_sql as qr from dask_sql import Context diff --git a/perf_tests/groupby_air_full.py b/perf_tests/groupby_air_full.py index b09ad488..54878969 100755 --- a/perf_tests/groupby_air_full.py +++ b/perf_tests/groupby_air_full.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import xarray as xr -import qarray as qr +import xarray_sql as qr from dask_sql import Context diff --git a/perf_tests/open_era5.py b/perf_tests/open_era5.py index 50e6ad1b..b85d6c8c 100755 --- a/perf_tests/open_era5.py +++ b/perf_tests/open_era5.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import xarray as xr -import qarray as qr +import xarray_sql as qr # Requires authenticating with GCP era5_ds = xr.open_zarr( diff --git a/perf_tests/sanity.py b/perf_tests/sanity.py index f76b8214..e9118dfb 100755 --- a/perf_tests/sanity.py +++ b/perf_tests/sanity.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import xarray as xr -import qarray as qr +import xarray_sql as qr if __name__ == '__main__': air = xr.tutorial.open_dataset('air_temperature') diff --git a/pyproject.toml b/pyproject.toml index 1f15bb5d..2d6eeb92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "qarray" +name = "xarray_sql" dynamic = ["version"] description = "Querry Xarray with SQL." readme = "README.md" @@ -37,14 +37,14 @@ test = [ "gcsfs", ] dev = [ - "qarray[test]", + "xarray_sql[test]", "pyink", "py-spy" ] [project.urls] -Homepage = "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/alxmrs/qarray" -Issues = "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/alxmrs/qarray/issues" +Homepage = "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/alxmrs/xarray-sql" +Issues = "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/alxmrs/xarray-sql/issues" [build-system] requires = ["setuptools>=64", "setuptools_scm>=8"] diff --git a/qarray/__init__.py b/xarray_sql/__init__.py similarity index 100% rename from qarray/__init__.py rename to xarray_sql/__init__.py diff --git a/qarray/core.py b/xarray_sql/core.py similarity index 100% rename from qarray/core.py rename to xarray_sql/core.py diff --git a/qarray/df.py b/xarray_sql/df.py similarity index 100% rename from qarray/df.py rename to xarray_sql/df.py diff --git a/qarray/df_integrationtest.py b/xarray_sql/df_integrationtest.py similarity index 100% rename from qarray/df_integrationtest.py rename to xarray_sql/df_integrationtest.py diff --git a/qarray/df_test.py b/xarray_sql/df_test.py similarity index 100% rename from qarray/df_test.py rename to xarray_sql/df_test.py diff --git a/qarray/sql.py b/xarray_sql/sql.py similarity index 100% rename from qarray/sql.py rename to xarray_sql/sql.py diff --git a/qarray/sql_test.py b/xarray_sql/sql_test.py similarity index 100% rename from qarray/sql_test.py rename to xarray_sql/sql_test.py