
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Tikara is a modern, type-hinted Python wrapper for Apache Tika, supporting over 1600 file formats for content extraction, metadata analysis, and language detection. It provides direct JNI integration through JPype for optimal performance.
from tikara import Tika
tika = Tika()
content, metadata = tika.parse("document.pdf")
π 1682 supported media types and counting!
pip install tikara
Tesseract OCR (strongly recommended if you process images) (Reference β)
# Ubuntu
apt-get install tesseract-ocr
Additional language packs for Tesseract (optional):
# Ubuntu
apt-get install tesseract-ocr-deu tesseract-ocr-fra tesseract-ocr-ita tesseract-ocr-spa
ImageMagick for advanced image processing (Reference β)
# Ubuntu
apt-get install imagemagick
FFMPEG for enhanced multimedia file support (Reference β)
# Ubuntu
apt-get install ffmpeg
PDFBox β for enhanced PDF support (Reference β)
# Ubuntu
apt-get install pdfbox
Enhanced PDF support with PDFBox Reference β
EXIFTool for metadata extraction from images Reference β
# Ubuntu
apt-get install libimage-exiftool-perl
GDAL for geospatial file support (Reference β)
# Ubuntu
apt-get install gdal-bin
MSCore Fonts for enhanced Office file handling (Reference β)
# Ubuntu
apt-get install xfonts-utils fonts-freefont-ttf fonts-liberation ttf-mscorefonts-installer
For more OS dependency information including MSCore fonts setup and additional configuration, see the official Apache Tika Dockerfile.
Example Jupyter Notebooks π
from tikara import Tika
from pathlib import Path
tika = Tika()
# Basic string output
content, metadata = tika.parse("document.pdf")
# Stream large files
stream, metadata = tika.parse(
"large.pdf",
output_stream=True,
output_format="txt"
)
# Save to file
output_path, metadata = tika.parse(
"input.docx",
output_file=Path("output.txt"),
output_format="txt"
)
from tikara import Tika
tika = Tika()
result = tika.detect_language("El rΓ‘pido zorro marrΓ³n salta sobre el perro perezoso")
print(f"Language: {result.language}, Confidence: {result.confidence}")
from tikara import Tika
tika = Tika()
mime_type = tika.detect_mime_type("unknown_file")
print(f"Detected type: {mime_type}")
from tikara import Tika
from pathlib import Path
tika = Tika()
results = tika.unpack(
"container.docx",
output_dir=Path("extracted"),
max_depth=3
)
for item in results:
print(f"Extracted {item.metadata['Content-Type']} to {item.file_path}")
Ensure that you have the system dependencies installed
Install uv:
pip install uv
Install python dependencies and create the Virtual Environment: uv sync
make ruff # Format and lint code
make test # Run test suite
make docs # Generate documentation
make stubs # Generate Java stubs
make prepush # Run all checks (ruff, test, coverage, safety)
For detailed documentation on:
See the Example Jupyter Notebooks π
Tikara builds on the shoulders of giants:
Contributions welcome! The project uses Make for development tasks:
make prepush # Run all checks (format, lint, test, coverage, safety)
For developing custom parsers/detectors, Java stubs can be generated:
make stubs # Generate Java stubs for Apache Tika interfaces
Note: Generated stubs are git-ignored but provide IDE support and type hints when implementing custom parsers/detectors.
JAVA_HOME
environment variableSee API Documentation for complete details.
Apache License 2.0 - See LICENSE for details.
FAQs
The metadata and text content extractor for almost every file type.
We found that tikara demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.