Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 18 additions & 38 deletions src/scitex/audio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,41 +1,21 @@
#!/usr/bin/env python3
"""SciTeX Audio — thin wrapper delegating to scitex-audio package."""
"""SciTeX audio — thin compatibility shim for scitex-audio.

from scitex_audio import * # noqa: F401,F403
from scitex_audio import (
FALLBACK_ORDER,
TTS,
ElevenLabsTTS,
GoogleTTS,
LuxTTS,
SystemTTS,
available_backends,
available_models,
check_local_audio_available,
check_wsl_audio,
find_whisper_cli,
find_whisper_model,
generate_bytes,
get_tts,
speak,
stop_speech,
transcribe,
)
Aliases ``scitex.audio`` to the standalone ``scitex_audio`` package via
``sys.modules`` so ``scitex.audio is scitex_audio`` and any new public name
added to scitex_audio is automatically visible.

__all__ = [
"speak",
"generate_bytes",
"stop_speech",
"check_wsl_audio",
"check_local_audio_available",
"TTS",
"GoogleTTS",
"ElevenLabsTTS",
"SystemTTS",
"LuxTTS",
"get_tts",
"available_backends",
"FALLBACK_ORDER",
]
Install: ``pip install scitex-audio``.
See: https://github.com/ywatanabe1989/scitex-audio
"""

# EOF
import sys as _sys

try:
import scitex_audio as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.audio requires the 'scitex-audio' package. "
"Install with: pip install scitex-audio"
) from _e

_sys.modules[__name__] = _real
23 changes: 18 additions & 5 deletions src/scitex/audit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
#!/usr/bin/env python3
"""SciTeX audit module — delegates to scitex-audit."""
"""SciTeX audit — thin compatibility shim for scitex-audit.

from scitex_audit import audit
Aliases ``scitex.audit`` to the standalone ``scitex_audit`` package via
``sys.modules`` so ``scitex.audit is scitex_audit`` and any new public name
added to scitex_audit is automatically visible.

__all__ = ["audit"]
Install: ``pip install scitex-audit``.
See: https://github.com/ywatanabe1989/scitex-audit
"""

# EOF
import sys as _sys

try:
import scitex_audit as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.audit requires the 'scitex-audit' package. "
"Install with: pip install scitex-audit"
) from _e

_sys.modules[__name__] = _real
97 changes: 18 additions & 79 deletions src/scitex/browser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,82 +1,21 @@
#!/usr/bin/env python3
"""SciTeX browser — delegates to scitex-browser."""
"""SciTeX browser — thin compatibility shim for scitex-browser.

from scitex_browser import (
PopupHandler,
SyncBrowserSession,
TestMonitor,
browser_logger,
click_center_async,
click_download_for_chrome_pdf_viewer_async,
click_with_fallbacks_async,
close_popups_async,
collect_console_logs,
collect_console_logs_detailed,
create_browser_session_fixture,
create_failure_capture_fixture,
create_test_monitor_fixture,
detect_chrome_pdf_viewer_async,
ensure_no_popups_async,
fill_with_fallbacks_async,
format_logs_devtools_style,
highlight_element_async,
inject_visual_effects,
inject_visual_effects_async,
is_playwright_cli_available,
monitor_test,
save_as_pdf,
save_as_pdf_async,
save_failure_artifacts,
setup_console_interceptor,
show_click_effect,
show_click_effect_async,
show_cursor_at,
show_cursor_at_async,
show_grid_async,
show_step,
show_step_async,
show_test_result,
show_test_result_async,
sync_browser_session,
)
Aliases ``scitex.browser`` to the standalone ``scitex_browser`` package via
``sys.modules`` so ``scitex.browser is scitex_browser`` and any new public name
added to scitex_browser is automatically visible.

__all__ = [
"is_playwright_cli_available",
"browser_logger",
"show_grid_async",
"highlight_element_async",
"inject_visual_effects",
"show_cursor_at",
"show_click_effect",
"show_step",
"show_test_result",
"inject_visual_effects_async",
"show_cursor_at_async",
"show_click_effect_async",
"show_step_async",
"show_test_result_async",
"setup_console_interceptor",
"collect_console_logs",
"collect_console_logs_detailed",
"format_logs_devtools_style",
"save_failure_artifacts",
"create_failure_capture_fixture",
"TestMonitor",
"create_test_monitor_fixture",
"monitor_test",
"SyncBrowserSession",
"sync_browser_session",
"create_browser_session_fixture",
"save_as_pdf",
"save_as_pdf_async",
"detect_chrome_pdf_viewer_async",
"click_download_for_chrome_pdf_viewer_async",
"click_center_async",
"click_with_fallbacks_async",
"fill_with_fallbacks_async",
"PopupHandler",
"close_popups_async",
"ensure_no_popups_async",
]
Install: ``pip install scitex-browser``.
See: https://github.com/ywatanabe1989/scitex-browser
"""

# EOF
import sys as _sys

try:
import scitex_browser as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.browser requires the 'scitex-browser' package. "
"Install with: pip install scitex-browser"
) from _e

_sys.modules[__name__] = _real
27 changes: 18 additions & 9 deletions src/scitex/compat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
#!/usr/bin/env python3
"""SciTeX compat module — delegates to scitex-compat."""
"""SciTeX compat — thin compatibility shim for scitex-compat.

from scitex_compat import deprecated, notify, notify_async
Aliases ``scitex.compat`` to the standalone ``scitex_compat`` package via
``sys.modules`` so ``scitex.compat is scitex_compat`` and any new public name
added to scitex_compat is automatically visible.

__all__ = [
"deprecated",
"notify",
"notify_async",
]
Install: ``pip install scitex-compat``.
See: https://github.com/ywatanabe1989/scitex-compat
"""

# EOF
import sys as _sys

try:
import scitex_compat as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.compat requires the 'scitex-compat' package. "
"Install with: pip install scitex-compat"
) from _e

_sys.modules[__name__] = _real
39 changes: 18 additions & 21 deletions src/scitex/dict/__init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
#!/usr/bin/env python3
"""SciTeX dict — delegates to scitex-dict."""
"""SciTeX dict — thin compatibility shim for scitex-dict.

from scitex_dict import (
DotDict,
flatten,
listed_dict,
pop_keys,
replace,
safe_merge,
to_str,
)
Aliases ``scitex.dict`` to the standalone ``scitex_dict`` package via
``sys.modules`` so ``scitex.dict is scitex_dict`` and any new public name
added to scitex_dict is automatically visible.

__all__ = [
"DotDict",
"flatten",
"listed_dict",
"pop_keys",
"replace",
"safe_merge",
"to_str",
]
Install: ``pip install scitex-dict``.
See: https://github.com/ywatanabe1989/scitex-dict
"""

# EOF
import sys as _sys

try:
import scitex_dict as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.dict requires the 'scitex-dict' package. "
"Install with: pip install scitex-dict"
) from _e

_sys.modules[__name__] = _real
23 changes: 18 additions & 5 deletions src/scitex/etc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
#!/usr/bin/env python3
"""SciTeX etc module — delegates to scitex-etc."""
"""SciTeX etc — thin compatibility shim for scitex-etc.

from scitex_etc import count, wait_key
Aliases ``scitex.etc`` to the standalone ``scitex_etc`` package via
``sys.modules`` so ``scitex.etc is scitex_etc`` and any new public name
added to scitex_etc is automatically visible.

__all__ = ["wait_key", "count"]
Install: ``pip install scitex-etc``.
See: https://github.com/ywatanabe1989/scitex-etc
"""

# EOF
import sys as _sys

try:
import scitex_etc as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.etc requires the 'scitex-etc' package. "
"Install with: pip install scitex-etc"
) from _e

_sys.modules[__name__] = _real
33 changes: 18 additions & 15 deletions src/scitex/gists/__init__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
#!/usr/bin/env python3
"""SciTeX gists module — delegates to scitex-gists."""
"""SciTeX gists — thin compatibility shim for scitex-gists.

from scitex_gists import (
SigMacro_processFigure_S,
SigMacro_toBlue,
sigmacro_process_figure_s,
sigmacro_to_blue,
)
Aliases ``scitex.gists`` to the standalone ``scitex_gists`` package via
``sys.modules`` so ``scitex.gists is scitex_gists`` and any new public name
added to scitex_gists is automatically visible.

__all__ = [
"SigMacro_processFigure_S",
"SigMacro_toBlue",
"sigmacro_process_figure_s",
"sigmacro_to_blue",
]
Install: ``pip install scitex-gists``.
See: https://github.com/ywatanabe1989/scitex-gists
"""

# EOF
import sys as _sys

try:
import scitex_gists as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.gists requires the 'scitex-gists' package. "
"Install with: pip install scitex-gists"
) from _e

_sys.modules[__name__] = _real
25 changes: 18 additions & 7 deletions src/scitex/parallel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
#!/usr/bin/env python3
"""SciTeX parallel module — delegates to scitex-parallel."""
"""SciTeX parallel — thin compatibility shim for scitex-parallel.

from scitex_parallel import run
Aliases ``scitex.parallel`` to the standalone ``scitex_parallel`` package via
``sys.modules`` so ``scitex.parallel is scitex_parallel`` and any new public name
added to scitex_parallel is automatically visible.

__all__ = [
"run",
]
Install: ``pip install scitex-parallel``.
See: https://github.com/ywatanabe1989/scitex-parallel
"""

# EOF
import sys as _sys

try:
import scitex_parallel as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.parallel requires the 'scitex-parallel' package. "
"Install with: pip install scitex-parallel"
) from _e

_sys.modules[__name__] = _real
Loading
Loading