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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-msgspec | 0.21.1 |
| OpenBSD | devel/py-msgspec | 0.19.0p0 |
| NetBSD | devel/py-msgspec | 0.21.1 |
| DragonFly | devel/py-msgspec | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.21.1 | 0.21.1 | - | 0.19.0 | 0.21.1 |
| FreeBSD:14:quarterly | 0.21.1 | 0.21.1 | n/a | 0.19.0 | 0.21.1 |
| FreeBSD:15:latest | 0.21.1 | 0.21.1 | n/a | 0.19.0 | 0.19.0 |
| FreeBSD:15:quarterly | 0.21.1 | 0.21.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.21.1 | 0.21.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}setuptools>=61: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
The full lists below include those, and their dependencies in turn.
Build dependencies 17
Run dependencies 10
Required by 18
- biology/py-pydeseq2
- databases/py-harlequin
- databases/py-harlequin-mysql
- databases/py-harlequin-postgres
- devel/py-anndata
- devel/py-marimo
- devel/py-xarray-simlab
- devel/py-zarr
- devel/pytype
- filesystems/py-kerchunk
- graphics/py-olmocr
- math/py-mnnpy
- misc/py-pinecone
- misc/py-vllm
- www/bunkerweb
- www/py-flask-session
- www/py-litestar
- www/py-searxng-devel
Configuration
Options name: devel_msgspec
| Option | Default | Description |
|---|---|---|
| TOML | on | TOML format or parser support |
| YAML | on | YAML format or parser support |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| msgspec-0.21.1.tar.gz | 319193 | 2313508e394b0d208f8f56892ca9b2799e2561329de9763b19619595a6c0f72c |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.