ordeq_ibis
IbisCSV
dataclass
¶
Bases: IO[Table]
IO to load from and save to CSV data using Ibis.
Example usage:
>>> from pathlib import Path
>>> from ordeq_ibis import IbisCSV
>>> my_csv_using_polars = IbisCSV(
... path=Path("path/to.csv"),
... resource="polars://"
... )
>>> my_csv_using_duck_db = IbisCSV(
... path=Path("path/to.csv"),
... resource="duckdb://"
... )
See 1 on how to configure the resource.
IbisDelta
dataclass
¶
Bases: IO[Table]
IO to load from and save to DELTA data using Ibis.
Example usage:
>>> from pathlib import Path
>>> from ordeq_ibis import IbisDelta
>>> my_delta_using_polars = IbisDelta(
... path=Path("path/to.delta"),
... resource="polars://"
... )
>>> my_delta_using_duck_db = IbisDelta(
... path=Path("path/to.delta"),
... resource="duckdb://"
... )
See 1 on how to configure the resource.
IbisJSON
dataclass
¶
Bases: IO[Table]
IO to load from and save to JSON data using Ibis.
Example usage:
>>> from pathlib import Path
>>> from ordeq_ibis import IbisJSON
>>> my_json_using_polars = IbisJSON(
... path=Path("path/to.json"),
... resource="polars://"
... )
>>> my_json_using_duck_db = IbisJSON(
... path=Path("path/to.json"),
... resource="duckdb://"
... )
See 1 on how to configure the resource.
IbisParquet
dataclass
¶
Bases: IO[Table]
IO to load from and save to PARQUET data using Ibis.
Example usage:
>>> from pathlib import Path
>>> from ordeq_ibis import IbisParquet
>>> my_parquet_using_polars = IbisParquet(
... path=Path("path/to.parquet"),
... resource="polars://"
... )
>>> my_parquet_using_duck_db = IbisParquet(
... path=Path("path/to.parquet"),
... resource="duckdb://"
... )
See 1 on how to configure the resource.
IbisSQL
dataclass
¶
Bases: Input[Table]
IO to load a table from a sql expression using Ibis.
Example usage:
>>> from pathlib import Path
>>> from ordeq_ibis import IbisSQL
>>> my_sql_using_trino = IbisSQL(
... query="SELECT * FROM my_table",
... resource="trino://"
... )
>>> my_sql_using_duck_db = IbisSQL(
... query="SELECT * FROM my_table",
... resource="duckdb://"
... )
See 1 on how to configure the resource.
IbisTable
dataclass
¶
Bases: IO[Table]
IO to load from and save to a table using Ibis.
Example usage:
>>> from pathlib import Path
>>> from ordeq_ibis import IbisTable
>>> my_table_using_polars = IbisTable(
... name="my_table",
... resource="polars://"
... )
>>> my_table_using_duck_db = IbisTable(
... name="my_table",
... resource="duckdb://"
... )
See 1 on how to configure the resource.
IbisView
dataclass
¶
Bases: Output[Table]
IO to save to a view using Ibis.
Example usage:
>>> from pathlib import Path
>>> from ordeq_ibis import IbisView
>>> my_view_using_trino = IbisView(
... name="my_view",
... resource="trino://"
... )
>>> my_view_using_duck_db = IbisView(
... name="my_view",
... resource="duckdb://"
... )
See 1 on how to configure the resource.
IbisXlsx
dataclass
¶
Bases: IO[Table]
IO to load from and save to XLSX data using Ibis.
Example usage:
>>> from pathlib import Path
>>> from ordeq_ibis import IbisXlsx
>>> my_xlsx_using_polars = IbisXlsx(
... path=Path("path/to.xlsx"),
... resource="polars://"
... )
>>> my_xlsx_using_duck_db = IbisXlsx(
... path=Path("path/to.xlsx"),
... resource="duckdb://"
... )
See 1 on how to configure the resource.