BSD Ports

devel/py-msgspec 0.22.0 MidnightBSD

Fast serialization and validation library

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
0feab98580
License
bsd3
Categories
devel, 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.

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

In the other systems

The newest version among them is 0.22.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/py-msgspec0.22.0 newestno data-[email protected]2026-11-08
FreeBSDdevel/py-msgspec0.22.0 newestnone known-[email protected]2026-11-01
OpenBSDdevel/py-msgspec0.19.0p0 behind since 2026-11-01no data-The OpenBSD ports mailing-list <[email protected]>-
NetBSDdevel/py-msgspec0.21.1 behind since 2026-11-01none known-[email protected]2026-10-16
DragonFlydevel/py-msgspec0.21.1 behind since 2026-11-01none known-[email protected]-
HardenedBSDdevel/py-msgspec0.21.1 behind since 2026-11-01no data-[email protected]-
GhostBSDdevel/py-msgspec0.21.1 behind since 2026-11-01no data-[email protected]-

Compare across BSDs

Version history 1

  1. 0.22.0 c6150612c8

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}msgspec

From mports:

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

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

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}msgspec>0:devel/py-msgspec

Dependency graph

Ports that need it on the left, what it needs to run on the right (to build, as it needs nothing to run); at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Build 1

Test 8

Build dependencies 1

No port depends on this one.

Configuration

Options name: devel_msgspec

OptionDefaultDescription
TOMLon
YAMLon
USES
python:3.10+ python-setuptools:83
Service scripts
none

Files

distinfo 1
FileSizeSHA256
msgspec-0.22.0.tar.gz3431880a13624a4969159fe35d8c2a3d377b2b61bbd8585e327440d5e52725affcce38
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
0feab98580 Lucas Holt devel/py-msgspec: honor pytest epoch in test dependency
Include epoch 1 so older pytest releases cannot satisfy the pytest 9 test requirement. AI-Assisted-by: GPT-6 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
c6150612c8 Lucas Holt devel/py-msgspec: add serialization library 0.22.0
AI-Assisted-by: GPT-6 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>