Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adithya-s-k/omniparse
/ functions
Functions
133 in github.com/adithya-s-k/omniparse
⨍
Functions
133
◇
Types & classes
22
↳
Endpoints
11
↓ 17 callers
Function
run_example
(task_prompt, image, vision_model, vision_processor)
omniparse/image/process.py:167
↓ 10 callers
Function
encode_images
(images, inputDocument: responseDocument)
omniparse/utils.py:7
↓ 9 callers
Method
__request__
Internal method to make API requests. Args: endpoint (str): API endpoint. files (dict, optional): Files to b
python-sdk/omniparse_client/omniparse.py:134
↓ 8 callers
Function
fig_to_pil
(fig)
omniparse/image/utils.py:111
↓ 8 callers
Function
plot_bbox
(image, data)
omniparse/image/utils.py:23
↓ 8 callers
Method
run
( self, url: str, word_count_threshold=MIN_WORD_THRESHOLD, bypass_cache: bool
omniparse/web/web_crawler.py:112
↓ 5 callers
Function
decode_base64_to_pil
(base64_str)
omniparse/demo.py:164
↓ 4 callers
Function
get_shared_state
()
omniparse/__init__.py:67
↓ 4 callers
Method
save_data
Saves the parsed document data to files. Args: echo (bool): If True, prints a message after saving the data.
python-sdk/omniparse_client/utils.py:118
↓ 4 callers
Function
set_model_device
(model)
omniparse/web/model_loader.py:73
↓ 3 callers
Method
add_image
( self, image_name: str, image_data: Union[str, PILImage.Image], image_info: U
omniparse/models/__init__.py:21
↓ 2 callers
Function
draw_polygons
(image, prediction, fill_mask=False)
omniparse/image/utils.py:67
↓ 2 callers
Function
extract_xml_data
(tags, string)
omniparse/web/utils.py:422
↓ 2 callers
Function
load_nltk_punkt
()
omniparse/web/model_loader.py:232
↓ 2 callers
Function
load_omnimodel
(load_documents: bool, load_media: bool, load_web: bool)
omniparse/__init__.py:42
↓ 2 callers
Function
sanitize_html
(html)
omniparse/web/utils.py:106
↓ 2 callers
Function
transcribe
Transcribe the audio file using whisper
omniparse/media/utils.py:23
↓ 1 callers
Method
chunk
(self, text: str)
omniparse/chunking/__init__.py:57
↓ 1 callers
Method
convert_pdf_to_markdown_and_save
(self, pdf_file_paths)
python-sdk/omniparse_client/omniparse.py:18
↓ 1 callers
Method
crawl
(self, url: str, **kwargs)
omniparse/web/crawler_strategy.py:52
↓ 1 callers
Function
download_all_models
Download all models required for OmniParse.
omniparse/web/model_loader.py:242
↓ 1 callers
Function
download_models
()
download.py:9
↓ 1 callers
Function
download_with_progress
(url, filename)
omniparse/web/model_loader.py:130
↓ 1 callers
Function
draw_ocr_bboxes
(image, prediction)
omniparse/image/utils.py:94
↓ 1 callers
Method
encode_image_to_base64
(self, image: PILImage.Image)
omniparse/models/__init__.py:51
↓ 1 callers
Function
escape_json_string
Escapes characters in a string to be JSON safe. Parameters: s (str): The input string to be escaped. Returns: str: The escaped
omniparse/web/utils.py:117
↓ 1 callers
Function
extract_blocks
(url, html, provider=DEFAULT_PROVIDER, api_token=None)
omniparse/web/utils.py:473
↓ 1 callers
Method
extract_keywords
(self, text: str)
omniparse/chunking/__init__.py:62
↓ 1 callers
Function
extract_markdown_tables
Extracts all tables from a markdown string. Args: markdown_string (str): The input markdown string containing tables. Returns:
python-sdk/omniparse_client/utils.py:153
↓ 1 callers
Function
extract_metadata
(html)
omniparse/web/utils.py:373
↓ 1 callers
Method
fetch_page
( self, url_model: UrlModel, provider: str = DEFAULT_PROVIDER, api_token: str
omniparse/web/web_crawler.py:57
↓ 1 callers
Function
flatten_nested_elements
(node)
omniparse/web/utils.py:325
↓ 1 callers
Function
get_available_memory
(device)
omniparse/web/model_loader.py:29
↓ 1 callers
Function
get_content_of_website
( url, html, word_count_threshold=MIN_WORD_THRESHOLD, css_selector=None )
omniparse/web/utils.py:175
↓ 1 callers
Function
get_device
()
omniparse/web/model_loader.py:61
↓ 1 callers
Function
get_home_folder
()
omniparse/web/model_loader.py:80
↓ 1 callers
Function
is_empty_or_whitespace
(tag: Tag)
omniparse/web/utils.py:297
↓ 1 callers
Function
load_text_multilabel_classifier
()
omniparse/web/model_loader.py:177
↓ 1 callers
Function
main
()
server.py:41
↓ 1 callers
Function
main
()
omniparse/web/model_loader.py:271
↓ 1 callers
Function
markdown_to_tables
Converts markdown tables to a list of TableObj instances. Args: markdown (str): The input markdown string containing tables. Re
python-sdk/omniparse_client/utils.py:168
↓ 1 callers
Function
parse_audio
(input_data, model_state)
omniparse/media/__init__.py:30
↓ 1 callers
Function
parse_image
(input_data, model_state)
omniparse/image/__init__.py:49
↓ 1 callers
Function
parse_url
(url: str, model_state)
omniparse/web/__init__.py:21
↓ 1 callers
Function
parse_video
(input_data, model_state)
omniparse/media/__init__.py:60
↓ 1 callers
Function
perform_completion_with_backoff
(provider, prompt_with_variables, api_token)
omniparse/web/utils.py:437
↓ 1 callers
Function
pre_process_image
(image, task_prompt, vision_model, vision_processor)
omniparse/image/process.py:97
↓ 1 callers
Function
print_omniparse_text_art
(suffix=None)
omniparse/utils.py:24
↓ 1 callers
Method
process_html
( self, url: str, html: str, extracted_content: str, word_count_thresh
omniparse/web/web_crawler.py:153
↓ 1 callers
Function
process_image
(input_data, task, model_state)
omniparse/image/__init__.py:107
↓ 1 callers
Function
process_image_task
( image_data: Union[str, bytes, PILImage.Image], task_prompt: str, model_state )
omniparse/image/process.py:24
↓ 1 callers
Method
quit
(self)
omniparse/web/crawler_strategy.py:200
↓ 1 callers
Function
remove_empty_and_low_word_count_elements
(node, word_count_threshold)
omniparse/web/utils.py:257
↓ 1 callers
Function
remove_empty_tags
(body: Tag)
omniparse/web/utils.py:305
↓ 1 callers
Function
remove_small_text_tags
( body: Tag, word_count_threshold: int = MIN_WORD_THRESHOLD )
omniparse/web/utils.py:272
↓ 1 callers
Function
replace_pre_tags_with_text
(node)
omniparse/web/utils.py:247
↓ 1 callers
Function
save_images_and_markdown
(response_data, output_folder)
python-sdk/omniparse_client/utils.py:202
↓ 1 callers
Function
split_and_parse_json_objects
Splits a JSON string which is a list of objects and tries to parse each object. Parameters: json_string (str): A string representation o
omniparse/web/utils.py:61
↓ 1 callers
Method
take_screenshot
(self, save_path: str)
omniparse/web/crawler_strategy.py:56
↓ 1 callers
Method
update_user_agent
(self, user_agent: str)
omniparse/web/crawler_strategy.py:60
↓ 1 callers
Function
wrap_text
(draw, text, font, max_width)
omniparse/web/utils.py:615
Method
__init__
(self, api_key=None, base_url="http://localhost:8000")
python-sdk/omniparse_client/omniparse.py:11
Method
__init__
(self, api_key=None, base_url="http://localhost:8000", timeout=120)
python-sdk/omniparse_client/omniparse.py:102
Method
__init__
(self, *args, **kwargs)
omniparse/web/utils.py:148
Method
__init__
(self, use_cached_html=False, js_code=None, **kwargs)
omniparse/web/crawler_strategy.py:65
Method
__init__
( self, crawler_strategy: CrawlerStrategy = None, always_by_pass_cache: bool = True,
omniparse/web/web_crawler.py:33
Method
__init__
(self, patterns=None, **kwargs)
omniparse/chunking/__init__.py:21
Method
__init__
(self, **kwargs)
omniparse/chunking/__init__.py:38
Method
__init__
(self, num_keywords=3, **kwargs)
omniparse/chunking/__init__.py:51
Method
__init__
(self, chunk_size=100, **kwargs)
omniparse/chunking/__init__.py:91
Method
__init__
(self, window_size=100, step=50, **kwargs)
omniparse/chunking/__init__.py:104
Function
_classifier
(texts, threshold=0.5, max_length=64)
omniparse/web/model_loader.py:200
Function
beautify_html
Beautifies an escaped HTML string. Parameters: escaped_html (str): A string containing escaped HTML. Returns: str: A beautifull
omniparse/web/utils.py:41
Function
calculate_batch_size
(device)
omniparse/web/model_loader.py:41
Method
chunk
Abstract method to chunk the given text.
omniparse/chunking/__init__.py:12
Method
chunk
(self, text: str)
omniparse/chunking/__init__.py:26
Method
chunk
(self, text: str)
omniparse/chunking/__init__.py:42
Method
chunk
(self, text: str)
omniparse/chunking/__init__.py:94
Method
chunk
(self, text: str)
omniparse/chunking/__init__.py:108
Method
chunk_text
(self, chunker: Callable[[str], List[str]])
omniparse/models/__init__.py:63
Method
chunk_with_topics
(self, text: str)
omniparse/chunking/__init__.py:79
Function
convert_to_od_format
(data)
omniparse/image/utils.py:87
Method
crawl
(self, url: str)
omniparse/web/crawler_strategy.py:104
Function
crawl_website
(url: str)
omniparse/web/router.py:25
Function
extract_blocks_batch
(batch_data, provider="groq/llama3-70b-8192", api_token=None)
omniparse/web/utils.py:514
Function
extract_xml_tags
(string)
omniparse/web/utils.py:417
Method
fetch_page_wrapper
(url_model, *args, **kwargs)
omniparse/web/web_crawler.py:91
Method
fetch_pages
( self, url_models: List[UrlModel], provider: str = DEFAULT_PROVIDER, api_toke
omniparse/web/web_crawler.py:79
Function
get_active_models
()
omniparse/__init__.py:71
Function
get_home_folder
()
omniparse/web/utils.py:33
Method
handle_tag
(self, tag, attrs, start)
omniparse/web/utils.py:154
Method
image_processor
(self, image_processor: Callable[[str], str])
omniparse/models/__init__.py:58
Function
import_strategy
(module_name: str, class_name: str, *args, **kwargs)
omniparse/web/utils.py:633
Function
load_bert_base_uncased
()
omniparse/web/model_loader.py:89
Function
load_bge_small_en_v1_5
()
omniparse/web/model_loader.py:100
Method
load_data
(self, file_path)
python-sdk/omniparse_client/omniparse.py:15
Function
load_onnx_all_MiniLM_l6_v2
()
omniparse/web/model_loader.py:113
Function
load_text_classifier
()
omniparse/web/model_loader.py:159
Function
merge_chunks_based_on_token_threshold
Merges small chunks into larger ones based on the total token threshold. :param chunks: List of text chunks to be merged based on token coun
omniparse/web/utils.py:563
Function
parse_any_endpoint
(file: UploadFile = File(...))
omniparse/documents/router.py:132
next →
1–100 of 133, ranked by callers