Skip to main content

Thin Python wrapper for MinerU's v4 extraction API

Project description

uminer

PyPI version CI

Thin Python wrapper for MinerU's v4 extraction API. Submit a local file or URL, poll the job, then load Markdown and typed content objects from the returned result bundle.

Install

uv add uminer

CLI

export MINERU_API_KEY=...
uv run uminer extract ./document.pdf --output-dir ./out

Python

from pathlib import Path

from uminer import MinerUClient

with MinerUClient() as client:
    result = client.extract_file(Path("document.pdf")).wait()
    print(result.markdown)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uminer-0.2.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uminer-0.2.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file uminer-0.2.0.tar.gz.

File metadata

  • Download URL: uminer-0.2.0.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for uminer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f3feecdecd5fd265a229f47b7a4fc7adacea7eeacf37fe166ad9005f21151322
MD5 d922a52d079944694fd0cd2f1ec62819
BLAKE2b-256 0913ac350cf714c3df0d4c245fcb6bec2c7ab9d84b15b9fb304e78812a4cbb2f

See more details on using hashes here.

File details

Details for the file uminer-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: uminer-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for uminer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0d5270884c34c3180f4031678ae58a9088b4684fed897070ed9fd7bed099220
MD5 bdc3087cb8783ac559ea2792c7341d69
BLAKE2b-256 e5b3ed4f48622e18c81501dc53b47c029d7860f5d97e1c88b83d24fa1de57f4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page