Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extensions to attrs

Tin Tvrtković edited this pageJan 19, 2025 ·24 revisions

The following libraries build onattrs to provide additional functionality or have special support forattrs classes:

  • attrs2bin: Binary serializer forattrs-based classes.
  • attrs-strict: runtime validation for attributes specified inattrs dataclasses based on thetype field provided.
  • bfa: Builders forattrs
  • cattrs: for structuring and unstructuring data
  • cyclopts: for modern, easy-to-use command-line interfaces
  • datargs: A paper-thin wrapper aroundargparse that creates type-safe parsers fromdataclass andattrs classes.
  • desert: DRY deserialization for dataclasses andattrs classes.
  • inline-snapshot: create and update inline snapshots in your Python code.
  • marshmallow-attrs: Marshmallow serialization forattrs classes.
  • msgspec: fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML – and first-class support forattrs
  • prettyprinter: an extensible alternative topprint comes withattrs support.
  • related: for creating nested object models that can be serialized to and de-serialized from nested python dictionaries
  • Rich supports pretty-printing ofattrs classes.
  • serde: a performant serialization / deserialization extension to and from plain dicts.
  • spock: lightweight typed and stateful parameter configuration library (mainly for ML) that wrapsattrs
  • typecats: Makeattrs classes act more like structural (rather than nominal) typing; built on top ofcattrs.
  • valid8: provides an alternate way to add validation to attributes, supporting various coding styles to define your validation functions and validation exception types/messages
  • yasoo: Serializes and deserializesattrs anddataclass objects without relying on type hints.

![1000044051](https://github.com/user-attachments/assets/2d5d0642-0649-432e-a29d-54fa26647d1f)

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp