文件名称:bfh:用于模式转换的Python DSL
文件大小:219KB
文件格式:ZIP
更新时间:2024-06-06 13:32:52
Python
高炉 用于模式转换的Python DSL 文件: : 看,您可以将方钉放在圆Kong中: class SquarePeg ( Schema ): id = IntegerField () name = UnicodeField () width = NumberField () class RoundHole ( Schema ): id = UnicodeField () name = UnicodeField () diameter = NumberField () def largest_square ( width ): return math . sqrt ( 2 * width ** 2 ) class SquarePegToRoundHole ( Mapping ): source_schema = S
【文件预览】:
bfh-master
----setup.py(594B)
----.gitignore(93B)
----build-requirements.txt(12B)
----requirements.txt(20B)
----Makefile(1KB)
----bfh()
--------interfaces.py(3KB)
--------transformations.py(10KB)
--------__init__.py(8KB)
--------fields.py(11KB)
--------common.py(1KB)
--------version.py(22B)
--------exceptions.py(302B)
----LICENSE(235B)
----doc()
--------Makefile(7KB)
--------index.rst(243B)
--------conf.py(9KB)
--------bfh.rst(125B)
--------_config.yml(100B)
--------transformations.rst(586B)
--------site()
--------exceptions.rst(156B)
--------fields.rst(441B)
----CHANGELOG.md(2KB)
----README.md(3KB)
----tests()
--------test_transformations.py(17KB)
--------test_bfh.py(18KB)
--------test_fields.py(12KB)
----.circleci()
--------config.yml(302B)
----tox.ini(367B)