{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/16"},{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/4"}],"enrichment":{"capability":"Automatically maps object fields from one class to another, handling different field names, nested objects, and integration with Pydantic, TortoiseORM, and SQLAlchemy models.","skillfed_tags":["dto-mapping","orm-integration","layered-architecture"],"use_cases":["Convert domain model objects to API response DTOs while selectively exposing only public fields.","Map database ORM models to Pydantic models for API endpoints.","Transform data between layers in a multilayer architecture without manual field-by-field assignment.","Remap dictionary data into typed Python objects with field name translation.","Create read-only API representations by filtering sensitive fields during object mapping."],"what_it_does":"py-automapper is a field-mapping library designed for layered architectures where objects need to be converted between different representations\u2014such as mapping domain models to API DTOs or database models to presentation objects. It automatically copies matching fields from a source object to a target class instance, with support for field name remapping, value overrides, and optional deep copying to control object reference sharing.\n\nThe library includes built-in extensions for popular frameworks: Pydantic/FastAPI models, TortoiseORM, and SQLAlchemy. You can register mappings once and reuse them, or map on-demand by specifying the target class. It handles dictionaries as source objects and allows customization through field mappings and extension points for advanced use cases.","worth_installing":"Yes, with conditions. Install if you need straightforward object-to-object mapping in a layered architecture and work with Pydantic, SQLAlchemy, or TortoiseORM. The library is stable and dependency-free, but maintenance was recently renewed after a long pause\u2014monitor the repository for follow-through on the maintainer's commitment to resume active development before relying on it for critical systems."},"id":"py-automapper","links":{"html":"https://skillfed.io/packages/py-automapper","md":"https://skillfed.io/packages/py-automapper.md","pypi":"https://pypi.org/project/py-automapper/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-03-09","license_spdx":null,"license_treatment":"permissive","name":"py-automapper","python_support":"supports_current","summary":"Library for automatically mapping one object to another"},"popularity":{"monthly_downloads":193171,"position":9853,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
