Pyserde

Latest version: v0.22.2

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

Scan your dependencies

Page 7 of 12

0.10.5

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

What's Changed
Bug fixes
* Fix dataclass with recursive containers by yukinarit in https://github.com/yukinarit/pyserde/pull/342
Documentation
* Fix typo in Conditional skip documentation by Kobzol in https://github.com/yukinarit/pyserde/pull/337
* Update docs by yukinarit in https://github.com/yukinarit/pyserde/pull/341


**Full Changelog**: https://github.com/yukinarit/pyserde/compare/v0.10.4...v0.10.5

0.10.4

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

What's Changed
New features
* Do not render field with init=False by yukinarit in https://github.com/yukinarit/pyserde/pull/334


**Full Changelog**: https://github.com/yukinarit/pyserde/compare/v0.10.3...v0.10.4

0.10.3

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

What's Changed
Bug fixes
* fix: Fixed broken strict type checking for Optionals. Fixes 330 by Fredrik-Reinholdsen in https://github.com/yukinarit/pyserde/pull/331
Documentation
* Update README.md by yukinarit in https://github.com/yukinarit/pyserde/pull/327
* :busts_in_silhouette: Add Fredrik-Reinholdsen as a contributor by yukinarit in https://github.com/yukinarit/pyserde/pull/332

New Contributors
* Fredrik-Reinholdsen made their first contribution in https://github.com/yukinarit/pyserde/pull/331

**Full Changelog**: https://github.com/yukinarit/pyserde/compare/v0.10.2...v0.10.3

0.10.2

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

What's Changed
Bug fixes
* Add type annotations to from_dict, from_tuple and from_msgpack by yukinarit in https://github.com/yukinarit/pyserde/pull/325
Refactoring
* Fix more type errors by yukinarit in https://github.com/yukinarit/pyserde/pull/322


**Full Changelog**: https://github.com/yukinarit/pyserde/compare/v0.10.1...v0.10.2

0.10.1

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

What's Changed
Bug fixes
* Fix variable length of tuple by yukinarit in https://github.com/yukinarit/pyserde/pull/321


**Full Changelog**: https://github.com/yukinarit/pyserde/compare/v0.10.0...v0.10.1

0.10.0

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

What's Changed
New features

pyserde can (de)serialize dataclasses without `serde` since v0.10.0. This feature is convenient when you want to use classes declared in external libraries or a type checker doesn't work with `serde` decorator. See [this example](https://github.com/yukinarit/pyserde/blob/main/examples/plain_dataclass.py). Thanks Kobzol!

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


f = Foo(i=10, s='foo', f=100.0, b=True)
print(f"Into Json: {to_json(f)}")

s = '{"i": 10, "s": "foo", "f": 100.0, "b": true}'
print(f"From Json: {from_json(Foo, s)}")


* Generate serialization/deserialization code for dataclasses not marked with serde by Kobzol in https://github.com/yukinarit/pyserde/pull/312
* Use default options for unmarked dataclass code generation by Kobzol in https://github.com/yukinarit/pyserde/pull/314
* Allow serializing and deserializing root dataclasses by Kobzol in https://github.com/yukinarit/pyserde/pull/315
Bug fixes
* Fix deserialization with NewType and Untagged Union by yukinarit in https://github.com/yukinarit/pyserde/pull/313
CI
* Set commit author and title for commits in gh-pages by yukinarit in https://github.com/yukinarit/pyserde/pull/316
Documentation
* Migrate to Github's changelog by yukinarit in https://github.com/yukinarit/pyserde/pull/311
* Update contributors by yukinarit in https://github.com/yukinarit/pyserde/pull/317
* Document (de)serializing dataclasses without serde by yukinarit in https://github.com/yukinarit/pyserde/pull/319

New Contributors
* Kobzol made their first contribution in https://github.com/yukinarit/pyserde/pull/312

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

Page 7 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.