mashumaro:基于数据类的快速且经过良好测试的序列化框架

时间:2021-02-03 20:49:42
【文件属性】:
文件名称:mashumaro:基于数据类的快速且经过良好测试的序列化框架
文件大小:121KB
文件格式:ZIP
更新时间:2021-02-03 20:49:42
python yaml serialization json marshalling mashumaro(マシュマロ) mashumaro是基于数据类的快速且经过良好测试的序列化框架。 使用数据类时,通常需要根据描述的方案转储和加载对象。 该框架不仅增加了以不同格式进行序列化的能力,而且使序列化Swift进行。 目录 安装 使用pip安装: $ pip install mashumaro 支持的序列化格式 该框架添加了以下格式的转储和加载方法: 当您需要将dict对象传递给第三方库(例如MongoDB的客户端)时,无格式dict可能会很有用。 支持的字段类型 标准键入模块支持通用类型: List Tuple Set FrozenSet Deque Dict
【文件预览】:
mashumaro-master
----.travis.yml(189B)
----requirements-dev.txt(361B)
----benchmark()
--------marshmallow_setup.py(1KB)
--------mashumaro_setup.py(946B)
--------sample.py(10KB)
--------dacite_setup.py(812B)
--------enums.py(312B)
--------charts()
--------run.py(7KB)
--------__init__.py(0B)
--------pydantic_setup.py(837B)
--------cattr_setup.py(2KB)
----.coveragerc(22B)
----pyproject.toml(245B)
----mashumaro()
--------serializer()
--------helper.py(290B)
--------types.py(1KB)
--------__init__.py(499B)
--------meta()
--------exceptions.py(2KB)
----docs()
--------index.md(6KB)
----.github()
--------workflows()
----mkdocs.yml(39B)
----tests()
--------test_msgpack.py(855B)
--------test_helper.py(449B)
--------test_yaml.py(512B)
--------test_meta.py(3KB)
--------utils.py(767B)
--------test_data_types.py(29KB)
--------test_json.py(7KB)
--------test_timezones.py(3KB)
--------__init__.py(0B)
--------entities.py(1KB)
--------test_exceptions.py(3KB)
--------test_hooks.py(4KB)
--------test_metadata_options.py(6KB)
----LICENSE(11KB)
----setup.cfg(37B)
----examples()
--------json_remapping.py(2KB)
----setup.py(1KB)
----.gitignore(761B)
----README.md(19KB)
----.editorconfig(461B)

网友评论