Serpyco-rs

Latest version: v1.9.0

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

Scan your dependencies

Page 1 of 8

1.9.0

Updates

**Added Support for typing.NewType**: We've introduced support for `typing.NewType` in serialization and deserialization. This allows users to create distinct types with a single value item, providing an extra layer of safety in type checking.

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.8.0...v1.9.0

1.8.0

Updates

**Added Custom Type Support**: We've added the ability to handle custom types in serialization and deserialization. Users can now define their own types using the `CustomType` class and use the `custom_type_resolver` parameter to specify how these types should be handled.


**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.7.1...v1.8.0

1.7.1

Bug Fix

**Added Missing 'description' Field**: A missing 'description' field in the JSON schema for boolean fields has been added.

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.7.0...v1.7.1

1.7.0

Updates:

**Added JsonSchemaBuilder**: We've introduced a new JsonSchemaBuilder feature, allowing users to customize the generated JSON schemas according to their specific requirements.

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.6.1...v1.7.0

1.6.1

Updates:

**Discard microseconds when deserializing time/date**: Python's datetime module, does not support microseconds in time/date objects. Now when parsing time/date strings containing microseconds, any extra microseconds beyond the standard precision are discarded.


**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.6.0...v1.6.1

1.6.0

New Features

**Added Flag for Serializer**: We've introduced a new flag for the serializer called `naive_datetime_to_utc`. When enabled, this flag ensures that naive datetimes are converted to UTC time zone during serialization. This feature provides greater control over datetime handling and helps maintain consistency in data representation.

Performance Improvements

**Accelerated Serialization of Date/Time/Datetime Types**: In this release, we've significantly accelerated the serialization process for date, time, and datetime types. The serialization speed for these types has been improved by approximately 2 times, resulting in faster data processing and improved efficiency.

---

**Full Changelog**: https://github.com/ermakov-oleg/serpyco-rs/compare/v1.5.0...v1.6.0

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.