llama-d5
Llama D5 (llama-d5) is a document processing toolkit within the LlamaSearch AI ecosystem. It appears to focus on document conversion (potentially from various formats to PDF, indicated by llamadoc2pdf) and capturing document representations (like screenshots, suggested by llama_screenshot).
Key Features
- Document Conversion: Includes components for converting document formats, possibly centered around PDF output (
llamadoc2pdf/). - Document Capture: Functionality to capture visual representations of documents, like screenshots (
llama_screenshot.py). - Core Module: Likely orchestrates the conversion and capture processes (
core.py). - Configurable: Supports configuration options (
config.py).
Installation
pip install llama-d5
# Or install directly from GitHub for the latest version:
# pip install git+https://github.com/llamasearchai/llama-d5.git
Usage
(Usage examples for document conversion and screenshot generation will be added here.)
# Placeholder for Python client usage
# from llama_d5 import DocProcessor, ConversionConfig
# config = ConversionConfig.load("config.yaml")
# processor = DocProcessor(config)
# # Convert a document to PDF
# pdf_path = processor.convert_to_pdf(input_file="document.docx")
# print(f"PDF saved to: {pdf_path}")
# # Take a screenshot
# screenshot_path = processor.take_screenshot(url="https://example.com", output_file="webpage.png")
# print(f"Screenshot saved to: {screenshot_path}")
Architecture Overview
graph TD
A[Input Document / URL] --> B{Core Processor (core.py)};
B -- Conversion Task --> C{Document Converter (llamadoc2pdf/)};
C --> D[Output PDF];
B -- Capture Task --> E{Screenshot Tool (llama_screenshot.py)};
E --> F[Output Image (Screenshot)];
G[Configuration (config.py)] -- Configures --> B;
G -- Configures --> C;
G -- Configures --> E;
style B fill:#f9f,stroke:#333,stroke-width:2px
- Input: Accepts a document file or URL.
- Core Processor: Manages the request and routes it to the appropriate tool.
- Converter: Handles conversion of input documents into PDF format.
- Screenshot Tool: Captures a visual representation (screenshot) of a document or webpage.
- Output: Produces either a PDF file or an image file.
- Configuration: Settings control the behavior of the conversion and capture tools.
Configuration
(Details on configuring input/output formats, screenshot resolution, conversion options, etc., will be added here.)
Development
Setup
# Clone the repository
git clone https://github.com/llamasearchai/llama-d5.git
cd llama-d5
# Install in editable mode with development dependencies
pip install -e ".[dev]"
Testing
pytest tests/
Contributing
Contributions are welcome! Please refer to CONTRIBUTING.md and submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for llama-d5 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| llama_d5-0.1.0.tar.gz | 60.9 kB | Without provenance | Details for llama_d5-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_d5-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llama_d5-0.1.0-py3-none-any.whl |
Total release size: 109.0 kB
Release files / llama_d5-0.1.0.tar.gz
| Download URL | llama_d5-0.1.0.tar.gz |
|---|---|
| Size | 60.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9365733bd6c9817dd242438f57abcc96bc33be8069731163ee59770a5c264c2
|
|
BLAKE2b-256 checksum How to use checksums |
47cab60347441e6ac8efe41ddfca6740361ea26cb523bd216a3dcdbba5d29eb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / llama_d5-0.1.0-py3-none-any.whl
| Download URL | llama_d5-0.1.0-py3-none-any.whl |
|---|---|
| Size | 48.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
141874f4dbad85610a6bfe1ea0f192181f319f633c7e8d33ecc928873bf20135
|
|
BLAKE2b-256 checksum How to use checksums |
b33e934765249b8a57958a616a2f89e3f661204a95a4ff3f5d07f339e7557e6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for llama-d5 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.