BSD Ports

devel/py-cattrs 26.2.0 FreeBSD

Composable complex class support for attrs and dataclasses

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
ef74fb4754
License
MIT
Categories
devel, python
Package size
142.4 KiB, 844.6 KiB installed

Description

cattrs is an open source Python library for structuring and unstructuring data. cattrs works best with attrs classes, dataclasses and the usual Python collections, but other kinds of classes are supported by manually registering converters.

Python has a rich set of powerful, easy to use, built-in data types like dictionaries, lists and tuples. These data types are also the lingua franca of most data serialization libraries, for formats like json, msgpack, yaml or toml.

Data types like this, and mappings like dict s in particular, represent unstructured data. Your data is, in all likelihood, structured: not all combinations of field names or values are valid inputs to your programs. In Python, structured data is better represented with classes and enumerations. attrs is an excellent library for declaratively describing the structure of your data, and validating it.

When you're handed unstructured data (by your network, file system, database...), cattrs helps to convert this data into structured data. When you have to convert your structured data into data types other libraries can handle, cattrs turns your classes and enumerations into dictionaries, integers and strings.

In the other systems

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

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
FreeBSDdevel/py-cattrs26.2.0 behind since 2026-09-28none known-[email protected]2026-09-12
OpenBSDdevel/py-cattrs26.2.1 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-10-16
NetBSDdevel/py-cattrs26.2.0 behind since 2026-09-28none known-[email protected]2026-10-16
DragonFlydevel/py-cattrs24.1.2 behind since 2026-09-07none known-[email protected]-
MidnightBSDdevel/py-cattrs23.2.3_1 behind since 2026-09-07no data-[email protected]-
HardenedBSDdevel/py-cattrs26.2.0 behind since 2026-09-28no data-[email protected]-
GhostBSDdevel/py-cattrs26.2.0 behind since 2026-09-28no data-[email protected]-

Compare across BSDs

Version history 1

  1. 26.2.0 ef74fb4754

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:

pkg install py312-cattrs

From the ports tree:

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

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

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

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:latest26.2.026.2.022.2.025.1.126.2.0
FreeBSD:14:quarterly26.2.026.2.0n/a25.1.126.2.0
FreeBSD:15:latest26.2.026.2.0n/a25.1.125.1.1
FreeBSD:15:quarterly26.2.026.2.0n/an/an/a
FreeBSD:16:latest26.2.026.2.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependency graph

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

Dependencies

As this port's Makefile names them.

Build 2

Runtime 2

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

Build dependencies 22
Run dependencies 9

Configuration

Options name: devel_cattrs

OptionDefaultDescription
CBOR2offcobr2 serialization support
MSGPACKoffmsgpack serialization support
MSGSPECoffmsgspec serialization support
ORJSONofforjson serialization support
PYYAMLoffPyYAML serialization support
TOMLKITofftomlkit serialization support
TOMLLIBofftomli/tomli-w serialization support
UJSONoffUltraJSON serialization support
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
cattrs-26.2.0.tar.gz5249933cf49f69df8326bcf17a3cb3d3d3ec4a856858fe3a7473746c9044c317d3ba55
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
ef74fb4754 Po-Chuan Hsieh devel/py-cattrs: Update to 26.2.0
Changes: https://github.com/python-attrs/cattrs/releases