全部搜尋項
bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: python-cattrs  ]

套件:python3-cattr(22.2.0-1)

python3-cattr 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 python-cattrs

維護小組:

外部的資源:

相似套件:

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.

其他與 python3-cattr 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-cattr

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 31。5 kB159。0 kB [檔案列表]