Skip to content

Commit

Permalink
feat(api): expose common types in the top-level ibis namespace (#9008)
Browse files Browse the repository at this point in the history
Adds `Table`, `Column`, `Scalar`, `Value`, and `Deferred` to the
top-level `ibis` namespace. These are mostly useful for downstream users
consuming the ibis api (either type-annotating their code, or using
`isinstance` checks).

Fixes #8717.
  • Loading branch information
jcrist authored Apr 19, 2024
1 parent 2c3f109 commit 3f3ed27
Showing 1 changed file with 31 additions and 23 deletions.
54 changes: 31 additions & 23 deletions ibis/expr/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@
from ibis.expr.schema import Schema
from ibis.expr.sql import parse_sql, to_sql
from ibis.expr.types import (
Column,
DateValue,
Expr,
Scalar,
Table,
TimestampValue,
TimeValue,
Value,
array,
literal,
map,
Expand All @@ -51,6 +54,15 @@
from ibis.expr.schema import SchemaLike

__all__ = (
"Column",
"Deferred",
"Expr",
"NA",
"Scalar",
"Schema",
"Table",
"Value",
"_",
"aggregate",
"and_",
"array",
Expand All @@ -59,20 +71,17 @@
"coalesce",
"connect",
"cross_join",
"cumulative_window",
"cume_dist",
"rank",
"ntile",
"dense_rank",
"percent_rank",
"cumulative_window",
"date",
"desc",
"decompile",
"deferred",
"dense_rank",
"desc",
"difference",
"dtype",
"e",
"Expr",
"following",
"geo_area",
"geo_as_binary",
"geo_as_ewkb",
Expand All @@ -83,38 +92,38 @@
"geo_centroid",
"geo_contains",
"geo_contains_properly",
"geo_covers",
"geo_covered_by",
"geo_covers",
"geo_crosses",
"geo_d_fully_within",
"geo_disjoint",
"geo_difference",
"geo_d_within",
"geo_difference",
"geo_disjoint",
"geo_distance",
"geo_end_point",
"geo_envelope",
"geo_equals",
"geo_geometry_n",
"geo_geometry_type",
"geo_intersection",
"geo_intersects",
"geo_is_valid",
"geo_length",
"geo_line_locate_point",
"geo_line_merge",
"geo_line_substring",
"geo_ordering_equals",
"geo_overlaps",
"geo_touches",
"geo_distance",
"geo_end_point",
"geo_length",
"geo_max_distance",
"geo_n_points",
"geo_n_rings",
"geo_ordering_equals",
"geo_overlaps",
"geo_perimeter",
"geo_point",
"geo_point_n",
"geo_simplify",
"geo_srid",
"geo_start_point",
"geo_touches",
"geo_transform",
"geo_unary_union",
"geo_union",
Expand All @@ -137,43 +146,42 @@
"literal",
"map",
"memtable",
"NA",
"negate",
"now",
"ntile",
"null",
"or_",
"param",
"parse_sql",
"percent_rank",
"pi",
"preceding",
"random",
"range",
"range_window",
"rank",
"read_csv",
"read_delta",
"read_json",
"read_parquet",
"row_number",
"rows_window",
"schema",
"Schema",
"selectors",
"set_backend",
"struct",
"to_sql",
"table",
"today",
"time",
"timestamp",
"to_sql",
"today",
"trailing_range_window",
"trailing_window",
"union",
"uuid",
"watermark",
"where",
"window",
"preceding",
"following",
"_",
)


Expand Down

0 comments on commit 3f3ed27

Please sign in to comment.