parseur.cli¶
Attributes¶
Functions¶
Return an |
|
|
Write downloaded bytes to |
|
|
|
Parseur CLI - manage Parseur.com from the command line. |
|
Initialize the CLI with your API token and optional base URL. |
|
List all mailboxes with optional filtering and sorting. |
|
Get details of a mailbox. |
|
Get schema of a mailbox. |
|
Download all parsed results of a mailbox (one row per document). |
|
List the parser fields configured on a mailbox. |
|
Download a table field's rows (one row per line item). |
|
List the export configurations of a mailbox. |
|
Download a custom export configuration's file. |
|
List all documents in a mailbox with optional filtering, sorting, and result inclusion. |
|
Get details of a document. |
|
Reprocess a document. |
|
Skip a document. |
|
Copy a document to another mailbox. |
|
Split a multi-page document per the mailbox's split settings. |
|
Undo a previous split of a document. |
|
Get logs of a document. |
|
Delete a document. |
|
Upload a document file to a mailbox (optionally wait for processing). |
|
Upload all files from a glob path. |
|
Upload text content to a mailbox (optionally wait for processing). |
|
Create a new custom webhook for your Parseur account. |
|
Get details of a webhook. |
|
Delete a registered webhook by its ID. |
|
Enable a webhook for the specified mailbox. |
|
Pause a webhook for the specified mailbox. |
List all registered webhooks. |
|
|
Listen to a Parseur event in real time with a temporary webhook. |
|
Run the Parseur MCP server (requires the [mcp] extra). |
Module Contents¶
- parseur.cli.progress_printer()[source]¶
Return an
on_poll(elapsed, status)callback rendering a progress bar.Progress is written to stderr so stdout stays a clean JSON document.
- parseur.cli.write_download(content, output)[source]¶
Write downloaded bytes to
outputif given, otherwise to stdout.Binary formats (xlsx) are written through the raw stdout buffer so they survive redirection, e.g.
parseur download-mailbox 123 > results.csv.
- parseur.cli.init(api_key, api_base)[source]¶
Initialize the CLI with your API token and optional base URL.
- parseur.cli.list_mailboxes(search, order_by, descending)[source]¶
List all mailboxes with optional filtering and sorting.
- parseur.cli.download_mailbox(mailbox_id, fmt, output)[source]¶
Download all parsed results of a mailbox (one row per document).
- parseur.cli.download_field(mailbox_id, field_id, fmt, output)[source]¶
Download a table field’s rows (one row per line item).
- parseur.cli.download_export(mailbox_id, export_config_id, fmt, output)[source]¶
Download a custom export configuration’s file.
- parseur.cli.list_documents(mailbox_id, search, order_by, descending, received_after, received_before, with_result)[source]¶
List all documents in a mailbox with optional filtering, sorting, and result inclusion.
- parseur.cli.copy_document(document_id, target_mailbox_id)[source]¶
Copy a document to another mailbox.
- parseur.cli.split_document(document_id)[source]¶
Split a multi-page document per the mailbox’s split settings.
- parseur.cli.upload_file(mailbox_id, file_path, wait)[source]¶
Upload a document file to a mailbox (optionally wait for processing).
- parseur.cli.upload_text(recipient, subject, sender, body_html, body_plain, wait)[source]¶
Upload text content to a mailbox (optionally wait for processing).
- parseur.cli.create_webhook(event, target_url, mailbox_id, table_field_id, header, name)[source]¶
Create a new custom webhook for your Parseur account.
- parseur.cli.delete_webhook(webhook_id)[source]¶
Delete a registered webhook by its ID.
This command permanently removes the webhook from your Parseur account.
- parseur.cli.enable_webhook(mailbox_id, webhook_id)[source]¶
Enable a webhook for the specified mailbox.
Activates the webhook by adding it to the mailbox.
- parseur.cli.pause_webhook(mailbox_id, webhook_id)[source]¶
Pause a webhook for the specified mailbox.
Removes the webhook from the mailbox without deleting it.
- parseur.cli.listen(event, mailbox_id, table_field_id, header, name, redirect_url, redirect_port, silent)[source]¶
Listen to a Parseur event in real time with a temporary webhook.
Example:
parseur listen --event document.processed --mailbox-id 12345 parseur listen --event document.processed --mailbox-id 12345 --redirect-url http://localhost --redirect-port 8000