py-automapper
py-automapper copied to clipboard
Python object auto mapper
The error occurs in the _map_subobject function when attempting to instantiate a new object incorrectly. Specifically, the error arises in the else block when obj is not a dictionary and...
Hi is this proyect active? is there a plan to use a highest python version such as 3.11, Pydantic > 2 ,SQLAlchemy > 2 Best Regards
With the latest version of PyDantic the automapper seems broken. Seems the below function from extenions/default.py isn't working. If __init__ is removed, working with latest pydantic 
It would be nice to be able to register multiple mappings for the same source object like: ```python mapper.add(Foo, Bar) mapper.add(Foo, Baz) foo = Foo() bar = mapper.map(foo, Bar) baz...
I'm trying to add a field mapping, but when it has more than one level it is not getting the value. The value I want to map is inside "TodoDomain.user.id"....
I want to be able to map from more than one class: ```python mapper.add(FromClassA, FromClassB, ToClassC) target_obj = mapper.multimap(obj1, obj2) # or target_obj = mapper.to(TargetType).multimap(obj1, obj2) ```
I want to register custom field mappings: ```python class SourceClass: def __init__(self, name: str, age: int): self.name = name self.age = age class TargetClass: def __init__(self, name: str, age: int,...
class Address(BaseModel): street: Optional[str] number: Optional[int] zip_code: Optional[int] city: Optional[str] class PersonInfo(BaseModel): name: Optional[str] = None age: Optional[int] = None address: Optional[Address] = None class PublicPersonInfo(BaseModel): name: Optional[str] = None...
As a developer, I would like to have new issues coming with certain template. I would like to know which Python version person was using. A code sample. Etc.