Package: python3-cattr (22.2.0-1)
Links for python3-cattr
Debian Resources:
Download Source Package python-cattrs:
- [python-cattrs_22.2.0-1.dsc]
- [python-cattrs_22.2.0.orig.tar.xz]
- [python-cattrs_22.2.0-1.debian.tar.xz]
Maintainers:
External Resources:
- Homepage [github.com]
Similar packages:
composable complex class support for attrs and dataclasses
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...), uattrs 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.
Other Packages Related to python3-cattr
|
|
|
|
-
- dep: python3
- interactive high-level object-oriented language (default python3 version)
-
- dep: python3-attr
- attributi senza codice ripetuto (Python 3)
-
- dep: python3-exceptiongroup
- backport di PEP 654 (gruppi di eccezioni)
- or python3 (>> 3.11)
- interactive high-level object-oriented language (default python3 version)
-
- dep: python3-typing-extensions
- Backported and Experimental Type Hints for Python
- or python3 (>> 3.8)
- interactive high-level object-oriented language (default python3 version)
Download python3-cattr
Architecture | Package Size | Installed Size | Files |
---|---|---|---|
all | 31.5 kB | 159.0 kB | [list of files] |