Metadata-Version: 2.4
Name: merlin-ai
Version: 1.0.1
Summary: AI models built on Python dataclasses and enums
License: MIT
Author: Matevz Poljanc
Requires-Python: >=3.9,<3.15
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: litellm (>=1.106.4,<2.0.0) ; python_version >= "3.14"
Requires-Dist: litellm (>=1.55.3,<2.0.0) ; python_version < "3.14"
Requires-Dist: tiktoken (>=0.12.0,<1.0.0)
Project-URL: Repository, https://github.com/matevzpoljanc/merlin-ai
Description-Content-Type: text/markdown

# Merlin AI
## The AI engineering framework

This library is heavily inspired by [Marvin](https://pypi.org/project/marvin/) and gives all credits for the idea to it's authors.

It's a complete rewrite and does not depend on Pydantic, but uses Python's dataclasses and Enums instead.


## Python compatibility

Merlin supports standard CPython 3.9 through 3.14. Version 1.0.1 removes the
old tiktoken 0.8 constraint and requires tiktoken 0.12 or newer, which provides
Python 3.14 wheels. Python 3.14 also selects LiteLLM 1.106.4 or newer so its
Pydantic and tokenizer dependencies support that interpreter. Older Python
versions retain the existing LiteLLM version range.

## Development

Use Poetry 2.2.1 or newer with the checked-in lockfile:

```sh
poetry env use python3.14
poetry install
poetry run black .
poetry run pylint merlin_ai tests
poetry run python -m unittest discover -s tests -v
poetry build
```

The compatibility tests cover dataclass schemas, enums, datetime conversion,
tiktoken's native extension, and mocked completion dispatch. They require no
API keys and make no LLM calls. The tokenizer downloads its public vocabulary
on first use and caches it locally.

