Pyserde

Latest version: v0.22.2

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

Scan your dependencies

Page 11 of 12

0.5.3

* feat: Add more dataclass Field's attrs to Field ([7b57c53](https://github.com/yukinarit/pyserde/commit/7b57c53))
* feat: Support python 3.10 ([2f0c557](https://github.com/yukinarit/pyserde/commit/2f0c557))
* refactor: Delete unused imports ([629d040](https://github.com/yukinarit/pyserde/commit/629d040))
* refactor: Remove type references from SerdeScope ([bdd8784](https://github.com/yukinarit/pyserde/commit/bdd8784))
* refactor: Speficy correct type bound for serde.core.fields ([c3b555c](https://github.com/yukinarit/pyserde/commit/c3b555c))
* fix: Add types in typing module to scope ([e12e802](https://github.com/yukinarit/pyserde/commit/e12e802))
* fix: Never use default value for from_tuple ([3ce4f6b](https://github.com/yukinarit/pyserde/commit/3ce4f6b))
* fix: Use default value only if key isn't present ([3fa4ab6](https://github.com/yukinarit/pyserde/commit/3fa4ab6))
* Fix typo in README ([5f957d0](https://github.com/yukinarit/pyserde/commit/5f957d0))

This release had contributions from 2 people: [rnestler](https://github.com/rnestler), [mauvealerts](https://github.com/mauvealerts). Thank you so much! :tada: :joy:

0.5.2

* feat: (de)serialize non dataclass types correctly ([0ffb9ea](https://github.com/yukinarit/pyserde/commit/0ffb9ea))
* refactor: Fix minor type error ([bef0c4f](https://github.com/yukinarit/pyserde/commit/bef0c4f))
* refactor: Remove unused imports ([cc16d58](https://github.com/yukinarit/pyserde/commit/cc16d58))
* refactor: Use backports-datetime-fromisoformat for python 3.6 ([014296f](https://github.com/yukinarit/pyserde/commit/014296f))
* build: Remove unused dependency for examples ([3a5ca01](https://github.com/yukinarit/pyserde/commit/3a5ca01))

0.5.1

* feat: deserialize to the type more correctly ([a4c155c](https://github.com/yukinarit/pyserde/commit/a4c155c))
* refactor: import minimum names ([f242a93](https://github.com/yukinarit/pyserde/commit/f242a93))

0.5.0

* New documentation is available!
* [Guide](https://yukinarit.github.io/pyserde/guide/)
* [API Docs](https://yukinarit.github.io/pyserde/api/serde.html)
* feat: Implement flatten ([a7bb6f0](https://github.com/yukinarit/pyserde/commit/a7bb6f0))

python
deserialize
serialize
dataclass
class Bar:
c: float
d: bool

deserialize
serialize
dataclass
class Foo:
a: int
b: str
bar: Bar = field(metadata={'serde_flatten': True})


* feat: Print Tips in serde.inspect ([62c74f3](https://github.com/yukinarit/pyserde/commit/62c74f3))
* fix: "Cannot instantiate type" type error ([6b3afbd](https://github.com/yukinarit/pyserde/commit/6b3afbd))
* ci: Use actions-comment-pull-request1.0.2 ([45a999c](https://github.com/yukinarit/pyserde/commit/45a999c))
* build: Parallel test execution ([148](https://github.com/yukinarit/pyserde/pull/148))
* build: Migrate to poetry ([144](https://github.com/yukinarit/pyserde/pull/144))

This release had contributions from 1 person: [alexmisk](https://github.com/alexmisk). Thank you so much! :tada: :joy:

0.4.0

* feat: add support for lazy annotations PEP563 (112) ([f7f6996](https://github.com/yukinarit/pyserde/commit/f7f6996)), closes [#112](https://github.com/yukinarit/pyserde/issues/112)

python
from __future__ import annotations
from dataclasses import dataclass
from serde import deserialize, serialize

deserialize
serialize
dataclass
class Foo:
i: int
s: str
f: float
b: bool

def foo(self, cls: Foo): You can use "Foo" type before it's defined.
print('foo')


* feat: Implement custom class (de)serializer ([3484d46](https://github.com/yukinarit/pyserde/commit/3484d46))
* feat: Implement custom field (de)serializer ([14b791c](https://github.com/yukinarit/pyserde/commit/14b791c))

python
def serializer(cls, o):
...

def deserializer(cls, o):
...

deserialize(deserializer=deserializer)
serialize(serializer=serializer)
dataclass
class Foo:
i: int
Class serializer/deserializer is used as default.
dt1: datetime
Override by field serializer/deserializer.
dt2: datetime = field(
metadata={
'serde_serializer': lambda x: x.strftime('%y.%m.%d'),
'serde_deserializer': lambda x: datetime.strptime(x, '%y.%m.%d'),
}
)


* feat: Improve error description for union type ([8abb549](https://github.com/yukinarit/pyserde/commit/8abb549))
* feat: Improve serde.inspect ([8b8635a](https://github.com/yukinarit/pyserde/commit/8b8635a))
* feat: Support typing.any ([988a621](https://github.com/yukinarit/pyserde/commit/988a621))
* feat: Support typing.NewType for primitives ([731ed79](https://github.com/yukinarit/pyserde/commit/731ed79))
* refactor: Add lvalue renderer for serialization ([665dc77](https://github.com/yukinarit/pyserde/commit/665dc77))
* refactor: Remove arg template filter from se.py ([0377655](https://github.com/yukinarit/pyserde/commit/0377655))
* refactor: Remove self class from scope ([da81f1f](https://github.com/yukinarit/pyserde/commit/da81f1f))
* refactor: Rename custom (de)serializer attributes ([03b2274](https://github.com/yukinarit/pyserde/commit/03b2274))
* ci: Add python 3.10-dev to CI pipeline ([1f33e59](https://github.com/yukinarit/pyserde/commit/1f33e59))
* ci: Don't cache pip to workaround pip error ([c912429](https://github.com/yukinarit/pyserde/commit/c912429))
* build: add pre-commit to test requirements ([a88ea40](https://github.com/yukinarit/pyserde/commit/a88ea40))
* fix: correctly render single element tuples ([a8a6456](https://github.com/yukinarit/pyserde/commit/a8a6456))
* fix: pass convert_sets argument to union functions ([ab40cc9](https://github.com/yukinarit/pyserde/commit/ab40cc9))
* fix: support unions with nested unions in containers (113) ([c26e828](https://github.com/yukinarit/pyserde/commit/c26e828)), closes [#113](https://github.com/yukinarit/pyserde/issues/113)

0.3.2

* feat: Improve error description for union type ([8abb549](https://github.com/yukinarit/pyserde/commit/8abb549))
* feat: Improve serde.inspect ([8b8635a](https://github.com/yukinarit/pyserde/commit/8b8635a))
* feat: Support typing.any ([988a621](https://github.com/yukinarit/pyserde/commit/988a621))
* feat: Support typing.NewType for primitives ([731ed79](https://github.com/yukinarit/pyserde/commit/731ed79))
* build: add pre-commit to test requirements ([a88ea40](https://github.com/yukinarit/pyserde/commit/a88ea40))
* fix: correctly render single element tuples ([a8a6456](https://github.com/yukinarit/pyserde/commit/a8a6456))
* fix: pass convert_sets argument to union functions ([ab40cc9](https://github.com/yukinarit/pyserde/commit/ab40cc9))
* fix: support unions with nested unions in containers (113) ([c26e828](https://github.com/yukinarit/pyserde/commit/c26e828)), closes [#113](https://github.com/yukinarit/pyserde/issues/113)
* ci: Don't cache pip to workaround pip error ([c912429](https://github.com/yukinarit/pyserde/commit/c912429))
* refactor: Remove self class from scope ([da81f1f](https://github.com/yukinarit/pyserde/commit/da81f1f))

This release had contibutions from 1 person: [ydylla](https://github.com/ydylla). Thank you so much! :tada: :joy:

Page 11 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.