Skip to main content

Extractous Python Binding

Project description

Extractous Python Bindings

This project provides Python bindings for the Extractous library, allowing you to use extractous functionality in your Python applications.

Installation

To install the extractous Python bindings, you can use pip:

pip install extractous

Usage

Extracting a file to string:

from extractous import Extractor

extractor = Extractor()
extractor.set_extract_string_max_length(1000)
result = extractor.extract_file_to_string("README.md")

print(result)

Extracting a file to a buffered stream:

from extractous import Extractor

extractor = Extractor()
reader = extractor.extract_file("tests/quarkus.pdf")

result = ""
buffer = reader.read(4096)
while len(buffer) > 0:
    result += buffer.decode("utf-8")
    buffer = reader.read(4096)

print(result)

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

extractous-0.1.5.tar.gz (146.1 kB view details)

Uploaded Source

Built Distributions

extractous-0.1.5-cp38-abi3-win_amd64.whl (38.9 MB view details)

Uploaded CPython 3.8+ Windows x86-64

extractous-0.1.5-cp38-abi3-manylinux_2_28_x86_64.whl (40.1 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.28+ x86-64

extractous-0.1.5-cp38-abi3-macosx_11_0_arm64.whl (46.7 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

extractous-0.1.5-cp38-abi3-macosx_10_12_x86_64.whl (47.5 MB view details)

Uploaded CPython 3.8+ macOS 10.12+ x86-64

File details

Details for the file extractous-0.1.5.tar.gz.

File metadata

  • Download URL: extractous-0.1.5.tar.gz
  • Upload date:
  • Size: 146.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for extractous-0.1.5.tar.gz
Algorithm Hash digest
SHA256 92de9917eaf62db35c2143136d53593c19c309ed03f55a0476ca30aa4b38d770
MD5 52bac2b1befffaf599eab6f071db062e
BLAKE2b-256 b15299d9b74d5492bc354a2d882e60c2a237bef7bf2f472e9020a4a2980ec929

See more details on using hashes here.

File details

Details for the file extractous-0.1.5-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: extractous-0.1.5-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 38.9 MB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for extractous-0.1.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a9b247368cddbcf61fa4f3ec8e07e85f4ff70c00c123f00dad9f5fa0548e0233
MD5 1736503189a75bfd8fc4ead1d9a8d7d1
BLAKE2b-256 f24164af4f9686e582c75d1ab5ace69c39837c07006cc653327b381b04c1a8f9

See more details on using hashes here.

File details

Details for the file extractous-0.1.5-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for extractous-0.1.5-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee4c7ce1a240d2b21a028c370e6115edb242b37a2917af6aba3a099eb1799b47
MD5 a077beff1107e3b36a8520b86dc825f5
BLAKE2b-256 ec1c590f0d95609a2c3b40681ef0175a5ad6603d102def39898704a7ddb0398f

See more details on using hashes here.

File details

Details for the file extractous-0.1.5-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for extractous-0.1.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02d65cf55214d964101a5e58dd4ad1a5f5ed1700cff93adca9c1ce42e29b10b6
MD5 2a8ceadd6ee56856c44cbbce49478e9d
BLAKE2b-256 306eb0bb3458d23cfcd717e6fec8aa8bdc36a4f4fafc09ff6ce45eab91e1572d

See more details on using hashes here.

File details

Details for the file extractous-0.1.5-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for extractous-0.1.5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 86019c1011f0976f83931e3f118fa754c3f7d424d083d6a52b06878a0ec2bae1
MD5 469f09d6b8cd74c89983427a0f5c4bbc
BLAKE2b-256 3f5b74eb378e48df55924c37ba7baf8aa61330b633e28e808d8da5faadde529d

See more details on using hashes here.

Supported by

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