API Reference
SciTeX is organized into focused modules.
All modules are accessible via import scitex as stx followed by stx.<module>.
Core
Science & Analysis
Literature & Writing
Machine Learning
- AI Module (
stx.ai) - NN Module (
stx.nn) - torch Module (
stx.torch) - cv Module (
stx.cv)load()save()to_rgb()to_bgr()to_gray()resize()rotate()flip()crop()pad()blur()sharpen()edge_detect()threshold()denoise()rectangle()circle()line()text()polylines()arrow()ocr()torch_build_has_kernels_for_local_gpu()ocr_surya()SuryaReadingnormalize_page()is_layout_only()read_document()DocumentReadingPageReadingsidecar_path_for()
- benchmark Module (
stx.benchmark)
Data & I/O
Infrastructure
- App Module (
stx.app) - Cloud Module (
stx.cloud) - container Module (
stx.container) - tunnel Module (
stx.tunnel) - cli Module (
stx.cli) - browser Module (
stx.browser)is_playwright_cli_available()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()TestMonitorcreate_test_monitor_fixture()monitor_test()SyncBrowserSessionsync_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()PopupHandlerclose_popups_async()ensure_no_popups_async()
- Capture Module (
stx.capture) - Audio Module (
stx.audio) - Notification Module (
stx.notification) - social Module (
stx.social)
Development
Utilities
- Gen Module (
stx.gen) - Decorators Module (
stx.decorators) - str Module (
stx.str)LaTeXFallbackErroradd_hat_in_latex_style()auto_factor_axis()axis_label()check_latex_capability()check_unit_consistency()clean_path()color_text()ct()decapitalize()disable_latex_fallback()enable_latex_fallback()factor_out_digits()format_axis_label()format_plot_text()format_title()get_fallback_mode()get_latex_status()grep()hat_latex_style()latex_fallback_decorator()latex_style()latex_to_mathtext()latex_to_unicode()mask_api()parse()print_debug()printc()readable_bytes()remove_ansi()replace()reset_latex_cache()safe_add_hat_in_latex_style()safe_latex_render()safe_to_latex_style()scientific_text()search()set_fallback_mode()smart_tick_formatter()squeeze_spaces()title()title_case()to_latex_style()
- dict Module (
stx.dict) - path Module (
stx.path)clean()create_relative_symlink()find_dir()find_file()find_git_root()find_latest()fix_broken_symlinks()get_data_path_from_a_package()get_spath()get_this_path()getsize()increment_version()is_symlink()list_symlinks()mk_spath()readlink()resolve_symlinks()split()symlink()this_path()unlink_symlink()
- os Module (
stx.os) - sh Module (
stx.sh) - git Module (
stx.git) - parallel Module (
stx.parallel) - linalg Module (
stx.linalg) - datetime Module (
stx.datetime) - types Module (
stx.types) - rng Module (
stx.rng) - context Module (
stx.context) - resource Module (
stx.resource) - utils Module (
stx.utils) - etc Module (
stx.etc) - web Module (
stx.web) - msword Module (
stx.msword)- Strategy:
- Typical usage:
- Available profiles:
load_docx()save_docx()convert_docx_to_tex()list_profiles()get_profile()register_profile()BaseWordProfileWordReaderWordWriterlink_captions_to_images()link_captions_to_images_by_proximity()normalize_section_headings()validate_document()create_post_import_hook()diff_docx()summarize_diff()mark_additions()mark_modifications()extract_highlights()clear_highlights()preserve_bold_tokens()extract_comments()apply_comments_as_edits()enable_track_changes()is_track_changes_enabled()wrap_as_tracked_insertion()wrap_as_tracked_deletion()extract_tracked_changes()accept_all_tracked_changes()reject_all_tracked_changes()save_with_track_changes_on()save_document()insert_table_after_paragraph()
- tex Module (
stx.tex) - bridge Module (
stx.bridge) - compat Module (
stx.compat) - module Module (
stx.module) - gists Module (
stx.gists) - media Module (
stx.media) - security Module (
stx.security) - ui Module (
stx.ui)