BSD Ports

devel/py-msgspec 0.21.1 FreeBSD

Fast serialization and validation library

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
devel, python
Package size
185.1 KiB, 622.3 KiB installed

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.

All of this is included in a lightweight library with no required dependencies.

In the other systems

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

Install

Binary package:

pkg install py312-msgspec

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-msgspec>0:devel/py-msgspec

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.21.10.21.1-0.19.00.21.1
FreeBSD:14:quarterly0.21.10.21.1n/a0.19.00.21.1
FreeBSD:15:latest0.21.10.21.1n/a0.19.00.19.0
FreeBSD:15:quarterly0.21.10.21.1n/an/an/a
FreeBSD:16:latest0.21.10.21.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

The full lists below include those, and their dependencies in turn.

Build dependencies 17
Run dependencies 10

Configuration

Options name: devel_msgspec

OptionDefaultDescription
TOMLonTOML format or parser support
YAMLonYAML format or parser support
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
msgspec-0.21.1.tar.gz3191932313508e394b0d208f8f56892ca9b2799e2561329de9763b19619595a6c0f72c
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.