From 72cf19dbcb5332e21f3f3a659a292863cdf5e08e Mon Sep 17 00:00:00 2001 From: DavdaJames Date: Thu, 2 Oct 2025 00:52:12 +0530 Subject: [PATCH] sources moved to sources subpackage in python sdk --- python/cocoindex/sources/__init__.py | 5 +++++ .../{sources.py => sources/_engine_builtin_specs.py} | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 python/cocoindex/sources/__init__.py rename python/cocoindex/{sources.py => sources/_engine_builtin_specs.py} (96%) diff --git a/python/cocoindex/sources/__init__.py b/python/cocoindex/sources/__init__.py new file mode 100644 index 000000000..7b49d76b6 --- /dev/null +++ b/python/cocoindex/sources/__init__.py @@ -0,0 +1,5 @@ +""" +Sources supported by CocoIndex. +""" + +from ._engine_builtin_specs import * diff --git a/python/cocoindex/sources.py b/python/cocoindex/sources/_engine_builtin_specs.py similarity index 96% rename from python/cocoindex/sources.py rename to python/cocoindex/sources/_engine_builtin_specs.py index df409b527..a175f8543 100644 --- a/python/cocoindex/sources.py +++ b/python/cocoindex/sources/_engine_builtin_specs.py @@ -1,8 +1,8 @@ """All builtin sources.""" -from . import op -from .auth_registry import TransientAuthEntryReference -from .setting import DatabaseConnectionSpec +from .. import op +from ..auth_registry import TransientAuthEntryReference +from ..setting import DatabaseConnectionSpec from dataclasses import dataclass import datetime