Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adithya-s-k/marker-api
/ functions
Functions
64 in github.com/adithya-s-k/marker-api
⨍
Functions
64
◇
Types & classes
19
↳
Endpoints
9
↓ 2 callers
Method
_batch_convert_endpoint
(self)
client/marker_api_client/__init__.py:97
↓ 2 callers
Method
_convert_endpoint
(self)
client/marker_api_client/__init__.py:92
↓ 2 callers
Method
_log_server_info
(self, health_data: HealthResponse)
client/marker_api_client/__init__.py:84
↓ 2 callers
Method
convert_pdf
Send a PDF conversion request to the specified API endpoint.
tests/test.py:35
↓ 2 callers
Function
print_markerapi_text_art
(suffix=None)
marker_api/utils.py:81
↓ 1 callers
Method
_aconvert_batch
( self, file_paths: List[str], show_progress: bool )
client/marker_api_client/__init__.py:163
↓ 1 callers
Method
_aconvert_single
(self, file_path: str)
client/marker_api_client/__init__.py:152
↓ 1 callers
Method
_convert_batch
( self, file_paths: List[str], show_progress: bool )
client/marker_api_client/__init__.py:123
↓ 1 callers
Method
_convert_single
(self, file_path: str)
client/marker_api_client/__init__.py:112
↓ 1 callers
Method
acheck_health
(self)
client/marker_api_client/__init__.py:75
↓ 1 callers
Method
aload_data
( self, file_paths: Union[str, List[str]], show_progress: bool = False )
client/marker_api_client/__init__.py:140
↓ 1 callers
Function
celery_batch_convert
(pdf_files: List[UploadFile] = File(...))
marker_api/celery_routes.py:110
↓ 1 callers
Function
celery_batch_result
(task_id: str)
marker_api/celery_routes.py:122
↓ 1 callers
Function
celery_convert_pdf
(pdf_file: UploadFile = File(...))
marker_api/celery_routes.py:12
↓ 1 callers
Function
celery_convert_pdf_concurrent_await
(pdf_file: UploadFile = File(...))
marker_api/celery_routes.py:39
↓ 1 callers
Function
celery_result
(task_id: str)
marker_api/celery_routes.py:18
↓ 1 callers
Method
check_health
(self)
client/marker_api_client/__init__.py:66
↓ 1 callers
Function
check_task_status
()
marker_api/celery_routes.py:46
↓ 1 callers
Function
convert_pdf_to_markdown
(self, filename, pdf_content)
marker_api/celery_tasks.py:37
↓ 1 callers
Function
decode_base64_to_pil
(base64_str)
marker_api/demo.py:25
↓ 1 callers
Function
fetch_readme_content
()
marker_api/demo.py:11
↓ 1 callers
Function
is_celery_alive
()
distributed_server.py:64
↓ 1 callers
Method
load_data
( self, file_paths: Union[str, List[str]], show_progress: bool = False )
client/marker_api_client/__init__.py:100
↓ 1 callers
Function
load_pdf_files
()
tests/test.py:15
↓ 1 callers
Function
main
()
server.py:102
↓ 1 callers
Function
main
()
client/marker_api_client/__init__.py:233
↓ 1 callers
Function
parse_args
()
distributed_server.py:107
↓ 1 callers
Function
parse_pdf_and_return_markdown
Function to parse a PDF and extract text and images. Args: pdf_file (bytes): The content of the PDF file. extract_images (bool): Whe
marker_api/routes.py:14
↓ 1 callers
Function
process_files
(files)
server.py:86
↓ 1 callers
Function
process_image_to_base64
Process an image and convert it to base64. Args: image (PIL.Image.Image): The image to process. filename (str): The filename to use
marker_api/utils.py:18
↓ 1 callers
Function
process_pdf_file
Function to process a single PDF file. Args: file_content (bytes): The content of the PDF file. filename (str): The name of the PDF
marker_api/routes.py:51
↓ 1 callers
Function
setup_routes
(app: FastAPI, celery_live: bool)
distributed_server.py:76
Method
__aenter__
(self)
client/marker_api_client/__init__.py:51
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
client/marker_api_client/__init__.py:56
Method
__call__
(self, *args, **kwargs)
marker_api/celery_tasks.py:29
Method
__enter__
(self)
client/marker_api_client/__init__.py:59
Method
__exit__
(self, exc_type, exc_val, exc_tb)
client/marker_api_client/__init__.py:63
Method
__init__
(self, base_url: str)
client/marker_api_client/__init__.py:45
Method
__init__
(self)
marker_api/celery_tasks.py:26
Method
aget_batch_result
(self, task_id: str)
client/marker_api_client/__init__.py:216
Method
aget_result
(self, task_id: str)
client/marker_api_client/__init__.py:190
Function
batch_convert
(pdf_files: List[UploadFile] = File(...))
distributed_server.py:94
Method
batch_convert_endpoint
Execute batch PDF conversion task using /batch endpoint.
tests/test.py:102
Function
celery_convert
(pdf_file: UploadFile = File(...))
distributed_server.py:86
Method
celery_convert_endpoint
Execute PDF conversion task using /celery/convert endpoint.
tests/test.py:97
Function
celery_convert_pdf_sync
(pdf_file: UploadFile = File(...))
marker_api/celery_routes.py:32
Function
celery_offline_root
()
marker_api/celery_routes.py:28
Method
convert_endpoint
Execute PDF conversion task using /convert endpoint.
tests/test.py:92
Function
convert_pdf
(pdf_file: UploadFile = File(...))
distributed_server.py:82
Function
convert_pdf_to_markdown
Endpoint to convert a single PDF to markdown.
server.py:68
Function
convert_pdfs_to_markdown
Endpoint to convert multiple PDFs to markdown.
server.py:80
Function
get_batch_result
(task_id: str)
distributed_server.py:98
Method
get_batch_result
(self, task_id: str)
client/marker_api_client/__init__.py:205
Function
get_celery_result
(task_id: str)
distributed_server.py:90
Function
get_ram_available
Function to get VRAM/RAM availability on device Used to set the number of workers
marker_api/utils.py:44
Method
get_result
(self, task_id: str)
client/marker_api_client/__init__.py:181
Function
initialize_models
(**kwargs)
marker_api/celery_tasks.py:16
Function
lifespan
(app: FastAPI)
server.py:35
Function
parse_document
(input_file_path, parameters, request: gr.Request)
marker_api/demo.py:40
Function
ping
()
marker_api/celery_worker.py:19
Function
process_batch
(self, batch_data)
marker_api/celery_tasks.py:73
Method
schema_extra
(schema: Dict[str, Any], model: Type["HealthResponse"])
marker_api/model/schema.py:21
Function
server
Root endpoint to check server status.
server.py:59
Function
server
Root endpoint to check server status. Returns: HealthResponse: A welcome message, server type, and number of workers (if distributed).
distributed_server.py:48