Installation#

Installing with pip#

pip install lexoid

Environment Setup#

To use LLM-based parsing, define the following environment variables or create a .env file with the following definitions:

GOOGLE_API_KEY=your_google_api_key
OPENAI_API_KEY=your_openai_api_key
HUGGINGFACEHUB_API_TOKEN=your_huggingface_token
TOGETHER_API_KEY=your_together_api_key

Optional Dependencies#

To use Playwright for retrieving web content (instead of the requests library):

playwright install --with-deps --only-shell chromium

Building from Source#

To build the .whl file:

make build

Local Development Setup#

To install dependencies:

make install

Or, to install with dev-dependencies:

make dev

To activate virtual environment:

source .venv/bin/activate