BSD Ports

devel/py-msgspec 0.19.0p0 OpenBSD

serialization/validation for common data interchange formats

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, lang/python

Description

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.

In the other systems

SystemPortVersion
OpenBSDdevel/py-msgspec0.19.0p0
FreeBSDdevel/py-msgspec0.21.1
NetBSDdevel/py-msgspec0.21.1
DragonFlydevel/py-msgspec0.19.0

Install

Binary package:

pkg_add py3-msgspec

From the ports tree:

cd /usr/ports/devel/py-msgspec && make install

Dependencies

Build dependencies 6
Run dependencies 1
Required by 1