Metadata-Version: 2.4
Name: AttrMagic
Version: 0.2.1
Summary: Query-like access to nested attributes
Project-URL: Changelog, https://github.com/WoosterTech/AttrMagic/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/WoosterTech/AttrMagic/issues
Project-URL: Repository, https://github.com/WoosterTech/AttrMagic.git
Author-email: Karl Wooster <karl@woostertech.com>
License-Expression: MIT
License-File: LICENSE.md
Keywords: attributes,path,pydantic
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: <4.0,>=3.11
Requires-Dist: pydantic-core>=2.27.2
Requires-Dist: pydantic>=2.7
Requires-Dist: typing-extensions>=4.5; python_full_version < '3.12'
Description-Content-Type: text/markdown

## AttrMagic

[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

Inspired by [Django](https://www.djangoproject.com/)'s query structure.

`foo = bar.filter(obj__name__in=["john", "smith"])`

returns all objects in `bar` that have an object `obj` in them with an attribute `name` in the list.

## Testing

### Generate HTML Report

`pytest --cov=attrmagic --cov-report html tests/`
