Skip to main content

Anyparser CrewAI Integration

Project description

Anyparser CrewAI

https://anyparser.com

Integrate Anyparser's powerful content extraction capabilities with CrewAI for enhanced AI workflows. This integration package enables seamless use of Anyparser's document processing and data extraction features within your CrewAI applications, making it easier than ever to build sophisticated AI pipelines.

Installation

pip install anyparser-crewai

Setup

Before running the examples, make sure to set your Anyparser API credentials as environment variables:

export ANYPARSER_API_KEY="your-api-key"
export ANYPARSER_API_URL="https://anyparserapi.com"

Anyparser LangChain Examples

This examples directory contains examples demonstrating different ways to use the Anyparser LangChain integration.

python examples/01_single_file_markdown.py
python examples/02_single_file_json.py
python examples/03_multiple_files_markdown.py
python examples/04_multiple_files_json.py
python examples/05_directory_read.py
python examples/06_ocr_markdown.py
python examples/07_ocr_json.py
python examples/08_web_crawler.py
python examples/09_web_crawler_json.py

Examples

1. Single File Processing

  • 01_single_file_markdown.py: Process a single file with markdown output
  • 02_single_file_json.py: Process a single file with JSON output

2. Multiple File Processing

  • 03_multiple_files_markdown.py: Process multiple files with markdown output
  • 04_multiple_files_json.py: Process multiple files with JSON output
  • 05_directory_read.py: Load and process all files from a folder (max 5 files)

3. OCR Processing

  • 06_ocr_markdown.py: Process images/scans with OCR (markdown output)
  • 07_ocr_json.py: Process images/scans with OCR (JSON output)

4. Web Crawling

  • 08_web_crawler.py: Basic web crawling with essential settings (markdown)
  • 09_web_crawler_json.py: Web crawling (JSON)

Features Demonstrated

Document Processing

  • Different output formats (markdown, JSON)
  • Multiple file handling
  • Folder processing
  • Metadata handling

Web Crawling

  • Basic crawling with depth and scope control
  • Advanced URL and content filtering
  • Crawling strategies (BFS, LIFO)
  • Rate limiting and robots.txt respect

Notes

  • All examples use async/await for better performance
  • Error handling is included in all examples
  • Each example includes detailed comments explaining the options used
  • OCR examples support multiple languages
  • Crawler examples demonstrate various filtering and control options

Features Demonstrated

  • Different output formats (markdown, JSON)
  • OCR capabilities with language support
  • OCR performance presets
  • Image extraction
  • Table extraction
  • Metadata handling
  • Error handling
  • Async/await usage

License

Apache-2.0

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

anyparser_crewai-0.0.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anyparser_crewai-0.0.2-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file anyparser_crewai-0.0.2.tar.gz.

File metadata

  • Download URL: anyparser_crewai-0.0.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for anyparser_crewai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 47fe0ab93b7e735c3ac38f381efc750581d19d59963aa412160c6f9ad751a9ce
MD5 44d74b64e3abf394cff5e091e2561574
BLAKE2b-256 109c39bda855d223defc218b562a7218d4de9149514baa64f6615df0f63a322d

See more details on using hashes here.

File details

Details for the file anyparser_crewai-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for anyparser_crewai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 211f0eb6e339ad325394cb3ddfd0b118ce24545a42453cdc03243445f19dcfe7
MD5 79ebf08b8682b078f274d3a7aa8cdebe
BLAKE2b-256 2359a72b60fb9c645e160b635b604b463aab71c3b60df978cbee2c25bd2c248d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page