marshmallow-annotations:允许通过类型注释声明棉花糖模式

时间:2024-05-23 20:39:36
【文件属性】:

文件名称:marshmallow-annotations:允许通过类型注释声明棉花糖模式

文件大小:41KB

文件格式:ZIP

更新时间:2024-05-23 20:39:36

Python

棉花糖注释 棉花糖注解允许您从带有注解的类中创建棉花糖架构 # schema.py from marshmallow_annotations import AnnotationSchema from . music import Album , Artist class AlbumScheme ( AnnotationSchema ): class Meta : target = Album register_as_scheme = True class ArtistScheme ( AnnotationSchema ): class Meta : target = Artist register_as_scheme = True scheme = ArtistScheme () scheme . dump (


【文件预览】:
marshmallow-annotations-master
----readthedocs.yml(124B)
----MANIFEST.in(113B)
----requirements()
--------lint.txt(37B)
--------requirements-types.txt(12B)
--------black.txt(14B)
--------requirements-travis.txt(82B)
--------requirements-docs.txt(111B)
--------requirements-dev.txt(79B)
--------requirements-test.txt(37B)
--------requirements-cov.txt(16B)
----README.rst(3KB)
----mypy.ini(367B)
----.bumpversion.cfg(186B)
----src()
--------marshmallow_annotations()
----AUTHORS.rst(280B)
----.travis.yml(1KB)
----tox.ini(1KB)
----LICENSE(1KB)
----test()
--------test_converter.py(3KB)
--------test_type_registry.py(2KB)
--------conftest.py(797B)
--------test_scheme_from_target.py(6KB)
--------ext()
----setup.py(1KB)
----docs()
--------make.bat(827B)
--------conf.py(5KB)
--------installation.rst(554B)
--------customizing.rst(4KB)
--------quickstart.rst(10KB)
--------index.rst(2KB)
--------Makefile(621B)
--------ext()
--------api.rst(2KB)
--------changelog.rst(42B)
----.editorconfig(253B)
----.gitignore(1KB)
----.coveragerc(535B)
----CHANGELOG(930B)

网友评论