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

Uploaded Source

Built Distributions

extractous-0.1.3-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.3-cp38-abi3-macosx_11_0_arm64.whl (46.5 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

extractous-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl (47.2 MB view details)

Uploaded CPython 3.8+ macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: extractous-0.1.3.tar.gz
  • Upload date:
  • Size: 137.3 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.3.tar.gz
Algorithm Hash digest
SHA256 ff7d11c04e191d243857f26ddcd2f5d7db72e3c51c20f076c3e39ba0c632056b
MD5 2a3638dc2159c669f2a81ea971650f3f
BLAKE2b-256 3c78642f587b45a818510e978e6a82ef8bb51b6ea1988a64b69c82dc6b5e185e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.3-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7a37d07b5a15379018f49331ae92777b4e9a3c079f5bc294dce9f01db094aa16
MD5 91b39ba2d1cd20f0929be3c0f8851026
BLAKE2b-256 d30e3a1767535088eb22de9f83bfe78faaf72779f9fa5608ff280c43a380f0e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87a0752f59621d45d5daf5e91228010f2354b09a408776dd13cf6b7a88c50fd7
MD5 65fbf7584f80fecd37f75652dcb68183
BLAKE2b-256 20583fd352e2f3751bc3c3855020533190233a9ecf50f683fe313d28fa280342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for extractous-0.1.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8ca87c7c3823f05dace064744504e08658087fd06cb3f3917c36a87d945ef565
MD5 18582305b8a53654c06bdb52f56beee8
BLAKE2b-256 c12fa35ff2f5d409954deb10fb4bfd4ab9a0af0aded39c97d2fad1cabdbfc0f5

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