From 358abc9b36ce7409ec8376b536757ad46f942b84 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Fri, 2 Jan 2026 18:36:29 +0530 Subject: [PATCH] feat(api): expose core and html primitives via top-level package exports - Re-export Content and ContentType from omniread.core - Re-export HTMLScraper and HTMLParser from omniread.html - Define explicit __all__ for stable public API surface --- omniread/__init__.py | 12 ++++++++++++ omniread/core/__init__.py | 6 ++++++ omniread/html/__init__.py | 7 +++++++ 3 files changed, 25 insertions(+) diff --git a/omniread/__init__.py b/omniread/__init__.py index e69de29..ffb41ac 100644 --- a/omniread/__init__.py +++ b/omniread/__init__.py @@ -0,0 +1,12 @@ +from .core import Content, ContentType +from .html import HTMLScraper, HTMLParser + +__all__ = [ + # core + "Content", + "ContentType", + + # html + "HTMLScraper", + "HTMLParser", +] diff --git a/omniread/core/__init__.py b/omniread/core/__init__.py index e69de29..c64acc6 100644 --- a/omniread/core/__init__.py +++ b/omniread/core/__init__.py @@ -0,0 +1,6 @@ +from .content import Content, ContentType + +__all__ = [ + "Content", + "ContentType", +] diff --git a/omniread/html/__init__.py b/omniread/html/__init__.py index e69de29..0199c55 100644 --- a/omniread/html/__init__.py +++ b/omniread/html/__init__.py @@ -0,0 +1,7 @@ +from .scraper import HTMLScraper +from .parser import HTMLParser + +__all__ = [ + "HTMLScraper", + "HTMLParser", +]