Mappr

Latest version: v0.4.1

Safety actively analyzes 714815 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.2.3

=======


Features
--------

- PEP 561 typing support
mypy should now correctly find the typing information when you install mappr.


Dev tasks
---------

- Fix CI builds after migration to new build image

0.2.1

=======


Dev tasks
---------

- Add missing test
Finally we’re at the 100% coverage which looks nice on the project page ;)

0.2.0

=======


Features
--------

- Support for building result with setattr
So far, the converter would always generate a list of values and then pass
them to the constructor of the target type. From now on, there’s an
additional `strategy` argument in `mappr.convert`. It defaults to
`mappr.Strategy.CONSTRUCTOR` which is the same as it’s been so far. What’s
new is the ability to set it to `mappr.Strategy.SETATTR` which will cause the
converter to use empty constructor and then use `setattr()` to set all the
values on newly created object. Might cater to some cases.
- Use contextvars for global registers
Using pure globals is unsafe and `threading.local` doesn’t work with async
code. This unfortunately means we need to drop py3.6 support.
- Easily register simple bi-directional converters
An often case is to register converters between 2 types where the only thing
is a change of name of some of the fields. Now this can be easily implemented
via `mappr.register_iso()`. You pass in a str: str dictionary that maps attr
names from one class to another.


Dev tasks
---------

- Add more tests
Even more are comming. Need to test this library well.
- Because we’re dropping py36 support, we’re back to using dataclasses. This
also means the dataclasses integration is no longer an integration, but is
part of the core.


Refactored
----------

- Better structure the code
Move few things around so it’s clearer what is what. `mappr.registry` now
contains all converter registration code and `mappr.conversion` is only
concerned about the conversion. Move conversion code outside `TypeConverter`.
Makes things unnecesarily coupled.
- Cleaner dataclasses integration

0.1.20

========


Features
--------

- python 3.6 support
The initial versions required python 3.8 but since 3.6 is still supported for
the next 11 months it would be good to support it as as well (especially
since it’s not that big of a difference for the library code).


Dev tasks
---------

- Add new changelog tag: refactor
Will be useful to see in the changelog what have been refactored since the
last release.


Refactored
----------

- Move integrations to their own package
Makes it easier to see what’s supported + gives a clearer separation between
what’s the core functionality and what is an integration with 3rd party.
**mappr** on it’s own does not depend on anything.

0.1.19

========


Dev tasks
---------

- Fix project links in the documentation
- Update README example to better showcase the library.
- Bump peltak version to 0.27.1
A lot of new, useful features around changelog generation.

0.1.18

=======

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.