全部搜尋項
trixie  ] [  sid  ]
[ 原始碼: flexparser  ]

套件:python3-flexparser(0.4-1)

python3-flexparser 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 flexparser

維護小組:

外部的資源:

相似套件:

Parsing using Python typing

The idea behind flexparser is quite simple. To write a class for every type of content (called here `ParsedStatement`) one needs to parse. Each class have a `from_string` constructor. The `typing` module is used extensively to make the output structure easy to use and less error prone.

The fuse of frozen dataclass is not necessary but it convenient. Being a dataclass you get the init, str, repr, etc for free. Being frozen, sort of immutable, makes them easier to reason around.

The result is a collection of `ParsedStatement` or `ParsingError`.

其他與 python3-flexparser 有關的套件

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

下載 python3-flexparser

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