notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Port details on branch 2026Q4
py-msgspec Fast serialization and validation library
0.21.1 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.21.1Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2024-04-05 00:45:12
Last Update: 2026-04-27 13:07:20
Commit Hash: 94bcc1a
Also Listed In: python
License: BSD3CLAUSE
WWW:
https://jcristharif.com/msgspec/
https://github.com/jcrist/msgspec
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.
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}msgspec>0:devel/py-msgspec@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-msgspec/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-msgspec
  • pkg install py311-msgspec
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-msgspec listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-msgspec
Package flavors (<flavor>: <package>)
  • py311: py311-msgspec
distinfo:
TIMESTAMP = 1777252648 SHA256 (msgspec-0.21.1.tar.gz) = 2313508e394b0d208f8f56892ca9b2799e2561329de9763b19619595a6c0f72c SIZE (msgspec-0.21.1.tar.gz) = 319193

Packages (timestamps in pop-ups are UTC):
py311-msgspec
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64leriscv64
FreeBSD:13:latest0.20.00.21.1n/an/an/an/an/an/an/a
FreeBSD:13:quarterly0.20.00.20.0n/an/an/an/an/an/an/a
FreeBSD:14:latest---0.19.0-----
FreeBSD:14:quarterly---0.19.0-----
FreeBSD:15:latest--n/a0.19.0n/an/a---
FreeBSD:15:quarterly--n/a-n/an/a---
FreeBSD:16:latest--n/a-n/an/a---
 

py312-msgspec
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64leriscv64
FreeBSD:13:latest--n/an/an/an/an/an/an/a
FreeBSD:13:quarterly--n/an/an/an/an/an/an/a
FreeBSD:14:latest0.21.10.21.1--0.21.1----
FreeBSD:14:quarterly0.21.10.21.1--0.21.1----
FreeBSD:15:latest0.21.10.21.1n/a-n/an/a---
FreeBSD:15:quarterly0.21.10.21.1n/a-n/an/a---
FreeBSD:16:latest0.21.10.21.1n/a-n/an/a---
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>=61 : devel/py-setuptools@py311
  2. py311-setuptools-scm>=8 : devel/py-setuptools-scm@py311
  3. py311-wheel>=0 : devel/py-wheel@py311
  4. python3.11 : lang/python311
  5. py311-build>=0 : devel/py-build@py311
  6. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. py311-tomli-w>=0 : textproc/py-tomli-w@py311
  2. py311-pyyaml>=0 : devel/py-pyyaml@py311
  3. python3.11 : lang/python311
This port is required by:
for Build
  1. devel/py-marimo
  2. www/py-searxng-devel
for Run
  1. databases/py-harlequin
  2. devel/py-marimo
  3. devel/py-zarr
  4. devel/pytype
  5. misc/py-pinecone
  6. misc/py-vllm
  7. www/py-flask-session
Expand this list (9 items / 2 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. www/py-litestar
  3. www/py-searxng-devel
  4. Collapse this list.

Configuration Options:
===> The following configuration options are available for py311-msgspec-0.21.1: TOML=on: TOML format or parser support YAML=on: YAML format or parser support ===> Use 'make config' to modify these settings
Options name:
devel_py-msgspec
USES:
python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/m/msgspec/
  2. https://pypi.org/packages/source/m/msgspec/
Collapse this list.

There are no commits on branch 2026Q4 for this port