iscc-tika Python Bindings
This project provides Python bindings for the iscc-tika library, allowing you to use iscc-tika functionality in your Python applications.
Installation
pip install iscc-tika
Usage
Extracting a file to string:
from iscc_tika import Extractor
# Create a new extractor
extractor = Extractor()
extractor = extractor.set_extract_string_max_length(1000)
# if you need an xml
# extractor = extractor.set_xml_output(True)
# Extract text from a file
result, metadata = extractor.extract_file_to_string("README.md")
print(result)
print(metadata)
Extracting a file(URL / bytearray) to a buffered stream:
from iscc_tika import Extractor
extractor = Extractor()
# for file
reader, metadata = extractor.extract_file("tests/quarkus.pdf")
# for url
# reader, metadata = extractor.extract_url("https://www.google.com")
# for bytearray
# with open("tests/quarkus.pdf", "rb") as file:
# buffer = bytearray(file.read())
# reader, metadata = extractor.extract_bytes(buffer)
result = ""
buffer = reader.read(4096)
while len(buffer) > 0:
result += buffer.decode("utf-8")
buffer = reader.read(4096)
print(result)
print(metadata)
Extracting a file with OCR:
from iscc_tika import Extractor, TesseractOcrConfig
extractor = Extractor().set_ocr_config(TesseractOcrConfig().set_language("deu"))
result, metadata = extractor.extract_file_to_string(
"../../test_files/documents/eng-ocr.pdf"
)
print(result)
print(metadata)
Metadata
Release files for iscc-tika 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iscc_tika-0.6.0.tar.gz | 216.6 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| iscc_tika-0.6.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| iscc_tika-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| iscc_tika-0.6.0-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details |
| iscc_tika-0.6.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 173.4 MB
Release files / iscc_tika-0.6.0.tar.gz
| Download URL | iscc_tika-0.6.0.tar.gz |
|---|---|
| Size | 216.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9880aa1fd5acad76c2164e289acb73bf528e5e9d286b5d5fdb13863bd54bb236
|
|
BLAKE2b-256 checksum How to use checksums |
4d290b1df68addba9b0a3d3739842a47117004c93c099304bfc2077b99766267
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / iscc_tika-0.6.0-cp310-abi3-win_amd64.whl
| Download URL | iscc_tika-0.6.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 40.8 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
df04c9b0803a71605ac4b8c326ec9f0dc0cf4c6590bfdd915285c3c8d30d5974
|
|
BLAKE2b-256 checksum How to use checksums |
332979d2190f75703c88d11c48cb5209a0d16eb15212c4c81964f28625db4338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / iscc_tika-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | iscc_tika-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 42.0 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
942aeec48ae989745eb89587b871c3841b4de4ce0ce94b31fd023f0b34ee9ac6
|
|
BLAKE2b-256 checksum How to use checksums |
f260a083135e1014505b1a7d79747ee126cfebe625d41717f71921075108e09a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / iscc_tika-0.6.0-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | iscc_tika-0.6.0-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 41.5 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a0a23f46269aeabe137d2730b15a29b0a170ebaef32235debadb6983e3f937e8
|
|
BLAKE2b-256 checksum How to use checksums |
3c2b1f397de45c8a746622d04308f125cbf11b4c9e83555cc791ca53a24f0b29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / iscc_tika-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | iscc_tika-0.6.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 48.9 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6bd2a65f85b8fe4250c232b26b6f0c7f2340b938711b0e39d365d4b5ee8b7400
|
|
BLAKE2b-256 checksum How to use checksums |
a48c6178481104a6afb67260b84188f4839070c69ffdb44ea292cd30d67a0272
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|