py-automapper
Library for automatically mapping one object to another
Decision gist · record as of 2026-08-14
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—monitor the repository for follow-through on the maintainer's commitment to resume active development before relying on it for critical systems.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Maintenance recently renewed after a pause; last release was 523 days ago but the maintainer has committed to resuming active development.
- Supports Python 3.8 through 3.13.
License · maintenance · safety
permissive license (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2025-03-09 (523 days) · last repo commit 2025-03-29 · 77 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 193,171 downloads/mo, #9,853 on PyPI
Alternatives
Verify before relying
pip install py-automapper
from automapper import mapper
class Source:
def __init__(self, name: str, age: int):
self.name = name
self.age = age
class Target:
def __init__(self, name: str):
self.name = name
source = Source("John", age)
target = mapper.to(Target).map(source)
print(vars(target))- Whether the maintainer's commitment to resume active development will result in regular releases and timely bug fixes.
- Performance characteristics when mapping deeply nested object hierarchies or large collections.
- Compatibility details with the latest versions of Pydantic v2, SQLAlchemy 2.x, and TortoiseORM.
What it is and what it does
py-automapper is a field-mapping library designed for layered architectures where objects need to be converted between different representations—such 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.
The 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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—monitor the repository for follow-through on the maintainer's commitment to resume active development before relying on it for critical systems.
Install
py-automapper on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance recently renewed after a pause; last release was 523 days ago but the maintainer has committed to resuming active development. Supports Python 3.8 through 3.13.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install py-automapper
from automapper import mapper
class Source:
def __init__(self, name: str, age: int):
self.name = name
self.age = age
class Target:
def __init__(self, name: str):
self.name = name
source = Source("John", age)
target = mapper.to(Target).map(source)
print(vars(target))
Verify before relying
- Whether the maintainer's commitment to resume active development will result in regular releases and timely bug fixes.
- Performance characteristics when mapping deeply nested object hierarchies or large collections.
- Compatibility details with the latest versions of Pydantic v2, SQLAlchemy 2.x, and TortoiseORM.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 523 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 193,171 / month, #9,853 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Build ToolsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: py_automapper-2.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “object mapping between classes”
- py-automapperAutomatically maps object fields from one class to another, handling…
- YORMYORM maps Python object attributes bidirectionally to YAML files,…
- mongoengineMongoEngine provides an Object-Document Mapper (ODM) layer on top of…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also sqlmodel · jsonschema-pydantic-converter · sparkdantic · dydantic · SQLAlchemy · jambo · tortoise-orm · jsonschema-pydantic · dataclasses-avroschema · pydantic-to-typescript2