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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/py-msgspec | 0.22.0 newest | no data | - | [email protected] | 2026-11-08 |
| FreeBSD | devel/py-msgspec | 0.22.0 newest | none known | - | [email protected] | 2026-11-01 |
| OpenBSD | devel/py-msgspec | 0.19.0p0 behind since 2026-11-01 | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/py-msgspec | 0.21.1 behind since 2026-11-01 | none known | - | [email protected] | 2026-10-16 |
| DragonFly | devel/py-msgspec | 0.21.1 behind since 2026-11-01 | none known | - | [email protected] | - |
| HardenedBSD | devel/py-msgspec | 0.21.1 behind since 2026-11-01 | no data | - | [email protected] | - |
| GhostBSD | devel/py-msgspec | 0.21.1 behind since 2026-11-01 | no data | - | [email protected] | - |
Version history 1
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
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8: devel/py-setuptools-scm
Test 8
${PYTHON_PKGNAMEPREFIX}attrs>0: devel/py-attrs${PYTHON_PKGNAMEPREFIX}coverage>0: devel/py-coverage${PYTHON_PKGNAMEPREFIX}msgpack>0: devel/py-msgpack${PYTHON_PKGNAMEPREFIX}pytest>=9,1: devel/py-pytest${PYTHON_PKGNAMEPREFIX}pytest-randomly>0: devel/py-pytest-randomly${PYTHON_PKGNAMEPREFIX}tomli-w>0: textproc/py-tomli-w${PYTHON_PKGNAMEPREFIX}pyyaml>0: devel/py-pyyaml${PYTHON_PKGNAMEPREFIX}typing-extensions>0: devel/py-typing-extensions
Build dependencies 1
No port depends on this one.
Configuration
Options name: devel_msgspec
| Option | Default | Description |
|---|---|---|
| TOML | on | |
| YAML | on |
- USES
- python:3.10+ python-setuptools:83
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| msgspec-0.22.0.tar.gz | 343188 | 0a13624a4969159fe35d8c2a3d377b2b61bbd8585e327440d5e52725affcce38 |
Master sites 1
- PYPI
Commit history 2
| Date | Commit | Credits | Log 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]> |