Pyserde

Latest version: v0.22.2

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

Scan your dependencies

Page 8 of 12

0.9.8

<!-- Release notes generated using configuration in .github/release.yml at v0.9.8 -->

What's Changed
New features
* feat: Support optional ClassVar serialization by yukinarit in https://github.com/yukinarit/pyserde/pull/303
CI
* Add .github/release.yml by yukinarit in https://github.com/yukinarit/pyserde/pull/304
* Update CI scripts by yukinarit in https://github.com/yukinarit/pyserde/pull/305
* Upgrade to setup-pythonv4 and enable caching by yukinarit in https://github.com/yukinarit/pyserde/pull/306
* Upgrade codecov-action to v3 by yukinarit in https://github.com/yukinarit/pyserde/pull/307
* Publish with Github Actions by yukinarit in https://github.com/yukinarit/pyserde/pull/310
Other changes
* Bump to 0.9.7 by yukinarit in https://github.com/yukinarit/pyserde/pull/295
* style: Fix styles and reformat code by yukinarit in https://github.com/yukinarit/pyserde/pull/299
* chore: Rename branch from master to main by yukinarit in https://github.com/yukinarit/pyserde/pull/300


**Full Changelog**: https://github.com/yukinarit/pyserde/compare/v0.9.7...v0.9.8

0.9.7

A bug for optional unions was fixed, Thanks [soaxelbrooke](https://github.com/soaxelbrooke)!
python
serde
dataclass(frozen=True)
class Bar:
request: Optional[Union[str, int]]


* docs: add soaxelbrooke as a contributor ([063e705](https://github.com/yukinarit/pyserde/commit/063e705))
* Add support for optional unions ([075949b](https://github.com/yukinarit/pyserde/commit/075949b))
* Add typing-utils for compatibility with python ver < 3.8 ([620b9f6](https://github.com/yukinarit/pyserde/commit/620b9f6))
* Rely on compay.get_args instead of adding dependency ([d93f894](https://github.com/yukinarit/pyserde/commit/d93f894))

0.9.6

* Recursive dataclasses are supported in [290](https://github.com/yukinarit/pyserde/pull/290)
python
dataclass
class Recur:
f: Optional['Recur']

serde(Recur)

* `typing.FrozenSet` and `typing.DefaultDict` are supported in [285](https://github.com/yukinarit/pyserde/pull/285),[#286](https://github.com/yukinarit/pyserde/pull/286)
python
serde
dataclass
class Foo:
a: FrozenSet[int]
b: DefaultDict[str, List[int]]

* Pickle serializer and deserializer support is added in [284](https://github.com/yukinarit/pyserde/pull/284). Thanks [DoeringChristian](https://github.com/DoeringChristian)!


**Full Changelog**: https://github.com/yukinarit/pyserde/compare/v0.9.5...v0.9.6

0.9.5

alias` field attribute was implemented.

python
serde
dataclass
class Foo:
a: int = field(alias=["b", "c", "d"])


* feat: Implement alias ([36cbc6e](https://github.com/yukinarit/pyserde/commit/36cbc6e))
* test: Add InitVar and ClassVar examples ([f5171fa](https://github.com/yukinarit/pyserde/commit/f5171fa))
* build: Add python 3.11 to pyproject.toml ([4ea7504](https://github.com/yukinarit/pyserde/commit/4ea7504))

0.9.4

Variable lengh tuple is supported.
python
serde
dataclass
class Foo:
v: Tuple[int, ...]


* feat: Support variable length tuples ([74dd3d4](https://github.com/yukinarit/pyserde/commit/74dd3d4))
* feat: Use tomllib for Python >= 3.11 ([b8943b5](https://github.com/yukinarit/pyserde/commit/b8943b5))

0.9.3

Thanks to [PEP681 dataclass_transform](https://peps.python.org/pep-0681/), `dataclass` decorator is no longer mandatory if you use a PEP681 supported type checker such as [pyright](https://github.com/microsoft/pyright). If you are a mypy user, you still need `dataclass` decorator.

python
serde
dataclass <= No longer needed.
class Foo:
i: int


* ci: Build with python 3.11 on CI ([a8def55](https://github.com/yukinarit/pyserde/commit/a8def55))
* feat: pep681 ([4ec2bf8](https://github.com/yukinarit/pyserde/commit/4ec2bf8))
* fix: Mypy type errors ([3ac1510](https://github.com/yukinarit/pyserde/commit/3ac1510))
* fix: Support nested generic dataclasses ([3562139](https://github.com/yukinarit/pyserde/commit/3562139))

Page 8 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.