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.1.tar.gz (136.6 kB view details)

Uploaded Source

Built Distributions

extractous-0.1.1-cp38-abi3-manylinux_2_28_x86_64.whl (39.8 MB view details)

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

extractous-0.1.1-cp38-abi3-macosx_11_0_arm64.whl (46.5 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

extractous-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl (47.3 MB view details)

Uploaded CPython 3.8+ macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for extractous-0.1.1.tar.gz
Algorithm Hash digest
SHA256 890fbcc47f0d3d5e1dc0e73369962f9c0bc4008a2a93de363687e5560422d043
MD5 8b4498adb294de445bd476850a6cdf42
BLAKE2b-256 42b3dc734315c765271da85065b9c7a693b4d39c79bfbcaf71715f23491fea16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.1-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8c55f8cc194cb6b980e9bc12ba8d9f96f27374b72b64a1af6796a21851a3b4f2
MD5 5e4e7a424e42b47c232ded5e870c542d
BLAKE2b-256 1c06db80322357bc05ef0b9c7c27f97e6dc075b20fb3e0e8ff75e0e46b5de1e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7cd8317ecffa783e769bc2c51baedfe3d0b659696ccc8eb5188e7ec4152285a1
MD5 421bdbb3af201d62513a958270d3f4b6
BLAKE2b-256 b109e5658132acb2b6aee41275340c832615149183b22a2f269ef9396518085b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2e0551642d63e7489556e8ad300c9fab9069ff24a736f832882431af24c322bf
MD5 b406171146697590693940bfba2e24e4
BLAKE2b-256 b1b50e6b2bd159ccb6835530596ceacb1e4557ebbe0fce4b0c5cd908086fe44b

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