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

Uploaded Source

Built Distributions

extractous-0.1.4-cp38-abi3-manylinux_2_28_x86_64.whl (39.9 MB view details)

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

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

Uploaded CPython 3.8+ macOS 11.0+ ARM64

extractous-0.1.4-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.4.tar.gz.

File metadata

  • Download URL: extractous-0.1.4.tar.gz
  • Upload date:
  • Size: 142.0 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.4.tar.gz
Algorithm Hash digest
SHA256 c50b91f602df616a7b22c0c90d8089c233ea69f457d8e2fbe17d74c8d15a7367
MD5 9fec78334e41df1c5d749a3b1e6e6b75
BLAKE2b-256 d028ed3e312f6043fe13a6b72a643fd0c295b55c6e8c95bc9d7e9480767718de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.4-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 862a821e453d7bba2b69b6e4a4006721b264cf298d61f772c9a922688a891a74
MD5 d2717c6e4ad9c653674fc8e045c9b262
BLAKE2b-256 eb507927e42b56c0e8cb46bbf0ae0031358797305f2d170f750b797585b3fb0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1e4271f389a5f58416ccc18ddea925426115a1b0bc4948888e4d579673c9885
MD5 368071dc84181facdb74ad4a9c201726
BLAKE2b-256 51f9190009c5ecec9ca69eab12445480d672a93cc4b97b8a2fc675491683ee85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cd2d4c92312cf58fbd1542bea400dcb8022696ce7a6ac2a1da4f6339948bd58b
MD5 35e815ac746bfbc0993d387e2a830f0d
BLAKE2b-256 e2b3178c4ae5574dd96764e71fe5b88de06d0fcb8e89c9a3de802a934a2066dd

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