This is an automated email from the ASF dual-hosted git repository.

yuzelin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-python.git


The following commit(s) were added to refs/heads/main by this push:
     new 08d0bb3  #42 Simplify Import Paths by Exposing Core Classes at Package 
Root (#43)
08d0bb3 is described below

commit 08d0bb3719659d18613b68e971631bc7ba395ded
Author: ChengHui Chen <27797326+chenghuic...@users.noreply.github.com>
AuthorDate: Thu Mar 20 14:48:36 2025 +0800

    #42 Simplify Import Paths by Exposing Core Classes at Package Root (#43)
---
 dev/lint-python.sh        | 20 --------------------
 pypaimon/__init__.py      | 32 +++++++++++++++++++++++++++++++-
 pypaimon/py4j/__init__.py |  3 ++-
 3 files changed, 33 insertions(+), 22 deletions(-)

diff --git a/dev/lint-python.sh b/dev/lint-python.sh
index e9d3e5e..687998c 100755
--- a/dev/lint-python.sh
+++ b/dev/lint-python.sh
@@ -643,26 +643,6 @@ function flake8_check() {
         print_function "STAGE" "flake8 checks... [SUCCESS]"
     fi
 }
-
-
-# mypy check
-function mypy_check() {
-    print_function "STAGE" "mypy checks"
-
-    # the return value of a pipeline is the status of the last command to exit
-    # with a non-zero status or zero if no command exited with a non-zero 
status
-    set -o pipefail
-
-    (${MYPY_PATH} --install-types --non-interactive --config-file tox.ini) 
2>&1 | tee -a ${LOG_FILE}
-    TYPE_HINT_CHECK_STATUS=$?
-    if [ ${TYPE_HINT_CHECK_STATUS} -ne 0 ]; then
-        print_function "STAGE" "mypy checks... [FAILED]"
-        # Stop the running script.
-        exit 1;
-    else
-        print_function "STAGE" "mypy checks... [SUCCESS]"
-    fi
-}
 ###############################################################All Checks 
Definitions###############################################################
 
 # CURRENT_DIR is "paimon-python/dev/"
diff --git a/pypaimon/__init__.py b/pypaimon/__init__.py
index 0cd0eb5..c41cdf4 100644
--- a/pypaimon/__init__.py
+++ b/pypaimon/__init__.py
@@ -17,5 +17,35 @@
 
#################################################################################
 
 from .api import Schema
+from .py4j import Catalog
+from .py4j import CommitMessage
+from .py4j import Predicate
+from .py4j import PredicateBuilder
+from .py4j import ReadBuilder
+from .py4j import RowType
+from .py4j import Split
+from .py4j import Table
+from .py4j import BatchTableCommit
+from .py4j import TableRead
+from .py4j import TableScan
+from .py4j import Plan
+from .py4j import BatchTableWrite
+from .py4j import BatchWriteBuilder
 
-__all__ = ['Schema']
+__all__ = [
+    'Schema',
+    'Catalog',
+    'CommitMessage',
+    'Predicate',
+    'PredicateBuilder',
+    'ReadBuilder',
+    'RowType',
+    'Split',
+    'Table',
+    'BatchTableCommit',
+    'TableRead',
+    'TableScan',
+    'Plan',
+    'BatchTableWrite',
+    'BatchWriteBuilder'
+]
diff --git a/pypaimon/py4j/__init__.py b/pypaimon/py4j/__init__.py
index c3b70ff..9152d3a 100644
--- a/pypaimon/py4j/__init__.py
+++ b/pypaimon/py4j/__init__.py
@@ -18,7 +18,7 @@
 
 from .util import constants
 from .java_implementation import \
-    (Catalog, Table, ReadBuilder, TableScan, Plan, Split,
+    (Catalog, Table, ReadBuilder, TableScan, Plan, RowType, Split,
      TableRead, BatchWriteBuilder, BatchTableWrite, CommitMessage,
      BatchTableCommit, Predicate, PredicateBuilder)
 
@@ -29,6 +29,7 @@ __all__ = [
     'ReadBuilder',
     'TableScan',
     'Plan',
+    'RowType',
     'Split',
     'TableRead',
     'BatchWriteBuilder',

Reply via email to