adaptix icon indicating copy to clipboard operation
adaptix copied to clipboard

An extremely flexible and configurable data model conversion library.

Results 126 adaptix issues
Sort by recently updated
recently updated
newest added

Пример: ```python from dataclasses import dataclass from typing import ClassVar, Generic, TypeVar from uuid import uuid4 import dataclass_factory T = TypeVar("T") @dataclass class Session: user_identifier: int session_identifier: str @dataclass class...

This code not working: ```python from dataclasses import dataclass from enum import Enum from typing import Literal from dataclass_factory import Factory class MyType(Enum): A = "a" @dataclass class Data: type:...

bug

Implement regex serializing/deserializing. E.g. ```py3 @dataclass class SomePattern: prefix: Pattern factory = Factory() deserialized = SomePattern(prefix=compile(r'prefixed')) print(factory.load({"prefix": "prefixed"}, SomePattern)) # SomePattern(prefix=re.compile('prefixed')) print(factory.dump(deserialized)) # {"prefix": "prefixed"} ```

* each argument explanation * Some trivial examples

doc

According to standard raw generic should be treated as parametrized with Any. But last line of code is not working properly ```python T = TypeVar("T") @dataclass class A(Generic[T]): x: T...

Может ли библиотека работать с классами с циклическиим зависимостями? Простейший пример: ```python @dataclass class A: id: str = None a: "A" = None def test(): a_js = json.loads('{"id":"_a", "a":"_a"}') a...

closes #63 closes #24

Если скормить в factory.load() датакласс, у которого переопределён метод __contains__, возникает исключение ```bash File "project/venv/lib/python3.9/site-packages/dataclass_factory/parsers.py", line 282, in get_collection_factory raise NotImplementedError("Class %s not supported" % cls) NotImplementedError: Class not supported...