Skip to content

Commit 86cb3c8

Browse files
committed
#42 Simplify Import Paths by Exposing Core Classes at Package Root
1 parent 75d00d7 commit 86cb3c8

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

pypaimon/__init__.py

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,35 @@
1717
#################################################################################
1818

1919
from .api import Schema
20+
from .py4j import Catalog
21+
from .py4j import CommitMessage
22+
from .py4j import Predicate
23+
from .py4j import PredicateBuilder
24+
from .py4j import ReadBuilder
25+
from .py4j import RowType
26+
from .py4j import Split
27+
from .py4j import Table
28+
from .py4j import BatchTableCommit
29+
from .py4j import TableRead
30+
from .py4j import TableScan
31+
from .py4j import Plan
32+
from .py4j import BatchTableWrite
33+
from .py4j import BatchWriteBuilder
2034

21-
__all__ = ['Schema']
35+
__all__ = [
36+
'Schema',
37+
'Catalog',
38+
'CommitMessage',
39+
'Predicate',
40+
'PredicateBuilder',
41+
'ReadBuilder',
42+
'RowType',
43+
'Split',
44+
'Table',
45+
'BatchTableCommit',
46+
'TableRead',
47+
'TableScan',
48+
'Plan',
49+
'BatchTableWrite',
50+
'BatchWriteBuilder'
51+
]

pypaimon/py4j/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
from .util import constants
2020
from .java_implementation import \
21-
(Catalog, Table, ReadBuilder, TableScan, Plan, Split,
21+
(Catalog, Table, ReadBuilder, TableScan, Plan, RowType, Split,
2222
TableRead, BatchWriteBuilder, BatchTableWrite, CommitMessage,
2323
BatchTableCommit, Predicate, PredicateBuilder)
2424

@@ -29,6 +29,7 @@
2929
'ReadBuilder',
3030
'TableScan',
3131
'Plan',
32+
'RowType',
3233
'Split',
3334
'TableRead',
3435
'BatchWriteBuilder',

0 commit comments

Comments
 (0)