全部搜索项
trixie  ] [  sid  ]
[ 源代码: flexparser  ]

软件包:python3-flexparser(0.3.1-2)

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.6 kB209.0 kB [文件列表]