1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/devel/py-msgspec/pkg-descr
Po-Chuan Hsieh e6ffc0453c
devel/py-msgspec: Add py-msgspec 0.18.6
msgspec is a fast serialization and validation library, with builtin support for
JSON, MessagePack, YAML, and TOML. It features:
- High performance encoders/decoders for common protocols. The JSON and
 MessagePack implementations regularly benchmark as the fastest options for
  Python.
- Support for a wide variety of Python types. Additional types may be supported
  through extensions.
- Zero-cost schema validation using familiar Python type annotations. In
  benchmarks msgspec decodes and validates JSON faster than orjson can decode it
  alone.
- A speedy Struct type for representing structured data. If you already use
  dataclasses or attrs, structs should feel familiar. However, they're 5-60x
  faster for common operations.

All of this is included in a lightweight library with no required dependencies.
2024-04-05 08:36:56 +08:00

16 lines
818 B
Plaintext

msgspec is a fast serialization and validation library, with builtin support for
JSON, MessagePack, YAML, and TOML. It features:
- High performance encoders/decoders for common protocols. The JSON and
MessagePack implementations regularly benchmark as the fastest options for
Python.
- Support for a wide variety of Python types. Additional types may be supported
through extensions.
- Zero-cost schema validation using familiar Python type annotations. In
benchmarks msgspec decodes and validates JSON faster than orjson can decode it
alone.
- A speedy Struct type for representing structured data. If you already use
dataclasses or attrs, structs should feel familiar. However, they're 5-60x
faster for common operations.
All of this is included in a lightweight library with no required dependencies.