Skip to main content

OmniDoc

doc2x

doc2x is a companion tool of OmniDoc, the powerful AI document suite. It translates PDF, Word, PowerPoint, LaTeX and more into 38 languages with the layout kept, converts between formats, and extracts document structure.

Official site: https://omnidoc.top/

This package is the doc2x Python SDK. It installs the omnidoc SDK and exposes the same API, so both packages work the same way.

Not affiliated with other products that use the name Doc2X.

Install

pip install doc2x

Requires Python 3.9 or newer.

Quick start

Create an API key (it starts with sk_) in the API center at https://omnidoc.top/app/api-keys and put it in the environment:

export OMNIDOC_API_KEY="sk_your_key"
from doc2x import Doc2XClient

client = Doc2XClient()  # reads OMNIDOC_API_KEY
files = client.translate_file("report.pdf", "en", output_dir="out", output_mode="bilingual")
print(files)

Doc2XClient is the same class as omnidoc.OmniDocClient. For every method, error type and webhook helper, see the omnidoc documentation and https://docs.omnidoc.top/.

Metadata

Release files for doc2x 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doc2x 0.1.1
File Size Uploaded Provenance Actions
doc2x-0.1.1.tar.gz 2.7 kB Without provenance Details for doc2x-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for doc2x 0.1.1
File Interpreter ABI Platform Actions
doc2x-0.1.1-py3-none-any.whl Python 3 none any Details for doc2x-0.1.1-py3-none-any.whl

Total release size: 5.2 kB

Release files / doc2x-0.1.1.tar.gz

Download URL doc2x-0.1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
274dfc0f9b7a496837d4119be6dc6e23a3677f10e464537076f1b70caee095e4
BLAKE2b-256 checksum
How to use checksums
9134478f6d1655838f223fa386e5a663f0fad82fd367d5751949a2a1b61aca0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / doc2x-0.1.1-py3-none-any.whl

Download URL doc2x-0.1.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3684bc022362b9a1768c368d6edb744ba2236c205a5ea20c6492b2f43727f92
BLAKE2b-256 checksum
How to use checksums
7602d95231c7a0d50435261a447933a2c4718c50e5eab677450d4fffd43c8aa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for doc2x 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page