Metadata-Version: 2.3
Name: typecraft
Version: 0.1.0
Summary: Annotation-native toolkit for data validation, transformation, and type inspection
Author: mm21
Author-email: mm21.dev@gmail.com
Requires-Python: >=3.12,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Provides-Extra: toml
Requires-Dist: tomlkit (>=0.13.3,<0.14.0) ; extra == "toml"
Project-URL: Homepage, https://github.com/mm21/typecraft
Description-Content-Type: text/markdown

# TypeCraft

Annotation-native toolkit for data validation, transformation, and type inspection

Facilitates the following:

- **Validation and transformation**: Mechanism to validate and convert objects based on annotations, with user-defined source/destination types and conversion logic
- **Typing**: Utilities to extract metadata from `Annotated[]`, handle `Literal[]` and unions, and wrap type info in a user-friendly container
- **Data modeling**: Lightweight, pydantic-like modeling with validation
    - Based on dataclasses, avoiding metaclass conflicts
- **TOML modeling**: Wrapper for `tomlkit` with user-defined model classes for documents, tables, and arrays

