Skip to content

Commit

Permalink
feat: rename sparrow-py to kaskada (#659)
Browse files Browse the repository at this point in the history
- Initial version 0.6.0 is the next minor version since the most recent
kaskada release.
- Move `/sparrow-py` to `/python`
- Change standard import from `import kaskada as kt` to `import kaskada
as kd`
  • Loading branch information
bjchambers authored Aug 11, 2023
1 parent 50a8196 commit 9a9b793
Show file tree
Hide file tree
Showing 167 changed files with 245 additions and 268 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 16 additions & 16 deletions sparrow-py/Cargo.lock → python/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions sparrow-py/Cargo.toml → python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "sparrow-py"
name = "kaskada"
authors = ["Kaskada Developers"]
edition = "2021"
license = "Apache-2.0"
version = "0.1.0"
version = "0.6.0"
description = """
Python library for building and executing Kaskada queries.
Python library for building and executing temporal queries.
"""

# This needs to be its own workspace.
Expand All @@ -24,7 +24,7 @@ tokio = { version = "1.27.0", features = ["sync"] }
tracing = "0.1.37"

[lib]
name = "sparrow_py"
name = "kaskada"
# `cdylib` is necessary to produce a shared library for Python.
# This can't be used by downstream Rust code (eg., as a library).
crate-type = ["cdylib"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
6 changes: 3 additions & 3 deletions sparrow-py/docs/source/conf.py → python/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

sys.path.append(str(Path(".").resolve()))

project = "sparrow-py"
project = "kaskada"
author = "Kaskada Contributors"
copyright = "2023, Kaskada Contributors"
extensions = [
Expand Down Expand Up @@ -38,7 +38,7 @@
"home_page_in_toc": True,
"use_issues_button": True,
"repository_branch": "main",
"path_to_docs": "sparrow-py/docs/source",
"path_to_docs": "kaskada/docs/source",
"icon_links": [
{
"name": "GitHub",
Expand All @@ -63,7 +63,7 @@
"github_user": "kaskada-ai",
"github_repo": "kaskada",
"github_version": "main",
"doc_path": "sparrow-py/docs/source",
"doc_path": "kaskada/docs/source",
}

intersphinx_mapping: Dict[str, Any] = {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Write the quick start.
```

```{code-cell}
import sparrow_py as kt
kt.init_session()
import kaskada as kd
kd.init_session()
content = "\n".join(
[
"time,key,m,n",
Expand All @@ -28,6 +28,6 @@ content = "\n".join(
"1996-12-19T16:40:02-08:00,A,,",
]
)
source = kt.sources.CsvString(content, time_column_name="time", key_column_name="key")
source = kd.sources.CsvString(content, time_column_name="time", key_column_name="key")
source.run().to_pandas()
```
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Results

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: apidocs/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Sources

```{eval-rst}
.. currentmodule:: sparrow_py.sources
.. currentmodule:: kaskada.sources
.. autosummary::
:toctree: apidocs/sources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Windowed:
They reflect the values within a specific [window](../windows.md).

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See the notes on the specific functions for more information.
```

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Timestreams allow each point to contain a collection -- a `list` or `map` -- of elements.

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To respect the semantics of `__eq__` and `__ne__`, `a == b` and `a != b` are *no
```

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Execution

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Grouping

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Timestream

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autoclass:: sparrow_py.Literal
.. autoclass:: sparrow_py.Timestream
.. autoclass:: kaskada.Literal
.. autoclass:: kaskada.Timestream
:exclude-members: __init__
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Logical

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Miscellaneous

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Record operations create, extract or manipulate Timestreams of records.
Comparison operations produce boolean Timestreams.

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Time

```{eval-rst}
.. currentmodule:: sparrow_py
.. currentmodule:: kaskada
.. autosummary::
:toctree: ../apidocs/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Windows

```{eval-rst}
.. currentmodule:: sparrow_py.windows
.. currentmodule:: kaskada.windows
.. autosummary::
:toctree: apidocs/windows/
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions sparrow-py/noxfile.py → python/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import nox

package = "sparrow_py"
package = "kaskada"
python_versions = ["3.11", "3.10", "3.9", "3.8"]
nox.needs_version = ">= 2021.6.6"
nox.options.sessions = (
Expand Down Expand Up @@ -99,7 +99,7 @@ def coverage(session: nox.Session) -> None:
@nox.session(python=python_versions[0])
def typeguard(session: nox.Session) -> None:
"""Runtime type checking using Typeguard."""
install(session, groups=["typecheck"])
install(session, groups=["typecheck", "test"])
session.run("pytest", f"--typeguard-packages={package}", *session.posargs)


Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions sparrow-py/pyproject.toml → python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sparrow_py"
version = "0.1.0"
name = "kaskada"
version = "0.6.0"
description = "Kaskada query builder and local execution engine."
authors = []

Expand Down Expand Up @@ -78,7 +78,7 @@ requires = ["maturin>=1,<2"]
build-backend = "maturin"

[project]
name = "sparrow_py"
name = "kaskada"
version = "0.1.0"
description = "Kaskada query builder and local execution engine."
requires-python = ">=3.8,<4.0"
Expand All @@ -90,7 +90,7 @@ profile = "release"
# Path to the python source directory
python-source = "pysrc"
# Name of the Rust module in Python
module-name = "sparrow_py._ffi"
module-name = "kaskada._ffi"

[tool.coverage.paths]
source = ["pysrc", "*/site-packages"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import Optional

from sparrow_py import _ffi
from kaskada import _ffi


_SESSION: Optional[_ffi.Session] = None
Expand Down
Loading

0 comments on commit 9a9b793

Please sign in to comment.