Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ Each release links to full notes on the
`StructuredModel` it sets only `EvalResult.matched`. Scoring is unchanged
([#484](https://github.com/awslabs/stickler/issues/484))

- Corrected the install docs. They said Python 3.12+, but `requires-python` is
`>=3.10` and CI tests 3.10 to 3.14. The Installation page now lists the
`docsplit`, `reporting` and `all` extras, says `BERTComparator` downloads a
model on first use, names every core comparator, and keeps only the import
check under Verify, since `examples/` and `tests/` are not in the wheel
([#483](https://github.com/awslabs/stickler/issues/483))

## [1.0.1] - 2026-11-02

### Changed
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ information to effectively respond to your bug report or contribution.

### Prerequisites

- Python 3.12+
- Python 3.10 or later
- [uv](https://docs.astral.sh/uv/getting-started/installation/) (recommended) or pip
- Git

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ That installs the comparison engine and confidence calibration, which is everyth
| `[llm]` | strands-agents, jinja2 | `LLMComparator` (LLM-as-judge comparison) |
| `[bert]` | evaluate, torch, bert-score | `BERTComparator` (BERTScore similarity) |
| `[docsplit]` | pandas | Document packet splitting metrics |
| `[reporting]` | pandas | Confusion-matrix tables in HTML reports |
| `[reporting]` | pandas | Passing a DataFrame as `ProcessEvaluation.matrix` (HTML reports need no extra) |
| `[all]` | all of the above except the ML stack | Convenience |

Importing a feature without its extra raises an error naming the extra to install.
Expand Down Expand Up @@ -95,7 +95,7 @@ print(f"Line Items: {result['field_scores']['line_items']:.3f}") # 0.926 - Hung
```

### Requirements
- Python 3.12+
- Python 3.10 or later
- [uv](https://docs.astral.sh/uv/getting-started/installation/) (recommended)

### Quick Install
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Documentation source files are in `docs/` (Markdown), configuration is in `mkdoc

## Prerequisites

- Python 3.12 or higher
- Python 3.10 or later

## Installation

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/Getting-Started/Contributing/code-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This guide covers coding conventions and standards for the Stickler project.

## Overview

Stickler follows Python best practices with **Ruff** for linting. The project uses modern Python features (3.12+) including type hints and Pydantic for data validation.
Stickler follows Python best practices with **Ruff** for linting. The project uses modern Python features (3.10+) including type hints and Pydantic for data validation.

> **Using pip + venv?** All commands below use `uv run`. If you installed with `pip install -e ".[dev]"`, run tools directly (e.g., `ruff` instead of `uv run ruff`).

Expand Down Expand Up @@ -147,7 +147,7 @@ result = ... # Too generic

## Type Hints

All public APIs should have type hints. The project uses Python 3.12+ typing features.
All public APIs should have type hints. The project uses Python 3.10+ typing features.

### Basic Type Hints

Expand Down
10 changes: 5 additions & 5 deletions docs/docs/Getting-Started/Contributing/development-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This guide walks you through setting up a complete development environment for c

### Required

- **Python 3.12+** - Stickler requires Python 3.12 or higher
- **Python 3.10+** - Stickler requires Python 3.10 or later. `uv sync` uses 3.12 by default (`.python-version`)
- **Git** - For version control

### Recommended
Expand All @@ -18,7 +18,7 @@ This guide walks you through setting up a complete development environment for c

```bash
# Check Python version
python --version # Should be 3.12.x or higher
python --version # Should be 3.10.x or higher

# Check Git
git --version
Expand Down Expand Up @@ -48,7 +48,7 @@ Use Python's built-in virtual environment:
git clone https://github.com/awslabs/stickler.git
cd stickler

# Create virtual environment (requires Python 3.12+ already installed)
# Create virtual environment (requires Python 3.10+ already installed)
python -m venv .venv

# Activate the environment
Expand Down Expand Up @@ -229,15 +229,15 @@ python examples/scripts/json_schema_demo.py
#### Python Version Mismatch

```
ERROR: Package requires Python >=3.12
ERROR: Package requires Python >=3.10
```

**Solution:** If using uv, it automatically installs the correct Python version:
```bash
uv sync
```

If using pip, ensure you have Python 3.12+:
If using pip, ensure you have Python 3.10 or later:
```bash
python --version
```
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/Getting-Started/Contributing/testing-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ Tests run automatically on every push and pull request via GitHub Actions.

1. **run_pytest.yaml** - Runs pytest with coverage
- Triggers on push and pull_request
- Uses Python 3.12
- Tests Python 3.10 to 3.14
- Generates coverage report

2. **lint.yaml** - Runs Ruff linter
Expand Down
49 changes: 13 additions & 36 deletions docs/docs/Getting-Started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,16 @@ uv pip install stickler-eval

## Requirements

- Python 3.12+
- Python 3.10 or later
- [uv](https://docs.astral.sh/uv/getting-started/installation/) (recommended)

## Development Install

If you want to contribute or run from source:

```bash
git clone https://github.com/awslabs/stickler.git
cd stickler

# uv handles Python version, venv creation, and dependency installation
uv sync
```

Or with pip (you manage your own Python + venv):

```bash
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e ".[dev]"
```
See [Development Setup](Contributing/development-setup.md).

## Optional Dependencies

Stickler's core comparators (Exact, Levenshtein, Numeric, Fuzzy) work out of the box. The AI-powered comparators require additional packages, installable via extras:
Stickler's core comparators (Exact, Levenshtein, Numeric, Fuzzy, Date, Phone, Normalized, ANLS\* and BBox IoU) work out of the box. The comparators below need an extra:

### SemanticComparator

Expand All @@ -55,12 +39,13 @@ pip install stickler-eval[semantic]

### BERTComparator

Uses BERTScore for contextual similarity. Runs locally -- no cloud services needed.
Uses BERTScore for contextual similarity. Runs locally, but downloads `roberta-large` (about 1.4 GB) from Hugging Face on first use.

```bash
pip install stickler-eval[bert]
```

- Network access to Hugging Face on first use
- GPU recommended for performance, but CPU works

### LLMComparator
Expand All @@ -74,12 +59,16 @@ pip install stickler-eval[llm]
- AWS credentials configured
- Access to Amazon Bedrock with your chosen model enabled

### All optional dependencies
### Other extras

Install everything at once:
| Extra | Adds |
|---|---|
| `docsplit` | document packet splitting |
| `reporting` | pandas, for passing a DataFrame as `ProcessEvaluation.matrix` (HTML reports need no extra) |
| `all` | every extra except `bert` |

```bash
pip install stickler-eval[bert,semantic,llm]
pip install "stickler-eval[all]"
```

## Verify Installation
Expand All @@ -88,19 +77,7 @@ pip install stickler-eval[bert,semantic,llm]
python -c "import stickler; print('Stickler installed successfully')"
```

Run the quick start example:

```bash
python examples/scripts/quick_start.py
```

Run the test suite:

```bash
uv run pytest tests/
# or, if using pip + venv:
pytest tests/
```
The example script and the test suite need a clone, see [Development Setup](Contributing/development-setup.md).

## Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ For comprehensive documentation, see:

If examples don't run:
1. Install dependencies: `uv sync` (if developing) or `pip install stickler-eval` (if using from PyPI)
2. Check Python version: Requires Python 3.12+
2. Check Python version: Requires Python 3.10 or later
3. Verify installation: `python -c "import stickler; print('Success!')"`

## 🎉 Key Insight
Expand Down
Loading