Metadata-Version: 2.3
Name: ibis-skytether
Version: 0.1.1
Summary: Subtrait compiler forked from ibis-substrait
License: Apache-2.0
Author: Ibis Contributors
Maintainer: Ibis Contributors
Requires-Python: >=3.9,<4
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Requires-Dist: ibis-framework (>=9,<10)
Requires-Dist: packaging (>=21.3)
Requires-Dist: pyyaml (>=5)
Requires-Dist: substrait (>=0.23.0)
Project-URL: Homepage, https://github.com/drin/ibis-skytether
Project-URL: Repository, https://github.com/drin/ibis-skytether
Description-Content-Type: text/markdown

# Ibis Skytether

A project, forked from ibis-substrait, that uses [Ibis](https://ibis-project.org) to
create query plans using [Substrait](https://substrait.io).

This fork is for myself to iterate a bit quicker while still developing with appropriate
packages.


## Usage

```python
>>> import ibis

>>> t = ibis.table(
    [("a", "string"), ("b", "float"), ("c", "int32"), ("d", "int64"), ("e", "int64")],
    "t",
)

>>> expr = t.group_by(["a", "b"]).aggregate([t.c.sum().name("sum")]).select("b", "sum")
>>> expr
r0 := UnboundTable: t
  a string
  b float64
  c int32
  d int64
  e int64

r1 := Aggregation[r0]
  metrics:
    sum: Sum(r0.c)
  by:
    a: r0.a
    b: r0.b

Selection[r1]
  selections:
    b:   r1.b
    sum: r1.sum


>>> from ibis_substrait.compiler.core import SubstraitCompiler
>>> compiler = SubstraitCompiler()
>>> proto    = compiler.compile(expr)
```

