Port details |
- py-cattrs23 Composable complex class support for attrs and dataclasses
- 23.2.3 devel
=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2024-10-14 05:30:08
- Last Update: 2024-10-14 04:45:07
- Commit Hash: dabbe84
- Also Listed In: python
- License: MIT
- WWW:
- https://catt.rs/en/stable/
- https://github.com/python-attrs/cattrs
- 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.
- ¦ ¦ ¦ ¦
- 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.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}cattrs23>0:devel/py-cattrs23@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-cattrs23/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-cattrs23
- pkg install py311-cattrs23
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-cattrs23 listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-cattrs23
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1701363700
SHA256 (cattrs-23.2.3.tar.gz) = a934090d95abaa9e911dac357e3a8699e0b4b14f8529bcc7d2b1ad9d51672b9f
SIZE (cattrs-23.2.3.tar.gz) = 610215
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-hatch-vcs>=0 : devel/py-hatch-vcs@py311
- py311-hatchling>=0 : devel/py-hatchling@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-attrs>=23.1.0 : devel/py-attrs@py311
- python3.11 : lang/python311
- This port is required by:
- for Run
-
- www/py-requests-cache93
Configuration Options:
- No options to configure
- Options name:
- devel_py-cattrs23
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|