blueprint:程序生成内容的神奇蓝图。 大致基于http

时间:2021-06-06 02:43:23
【文件属性】:
文件名称:blueprint:程序生成内容的神奇蓝图。 大致基于http
文件大小:30KB
文件格式:ZIP
更新时间:2021-06-06 02:43:23
Python 蓝图 程序生成内容的神奇蓝图。 大致基于 Sean Howard 的。 。 介绍 蓝图是数据对象。 基本思想是您编写blueprint.Blueprint子类,其中包含定义其值的一般参数(例如 0 到 10 之间的整数)的字段。 当您实例化蓝图时,您将获得一个“精通”蓝图,其中每个字段都有明确定义的值。 Mastered 蓝图可以定义特殊的“生成器”实例方法,从 master 构建最终对象。 将其视为 Python 的原型继承! (是的,我可能不知道我在说什么。) 大多数大型活动部件在文档字符串中都有其文档,通常带有示例。 蓝图最好在命令行中使用,尝试一下它是如何工作的。 对于不耐烦的人,举个例子: import blueprint class Item(blueprint.Blueprint): value = 1 tags = 'foo bar' clas
【文件预览】:
blueprint-master
----MANIFEST.in(99B)
----README.rst(9KB)
----features()
--------dice.feature(954B)
--------factory.feature(354B)
--------tag-queries.feature(859B)
--------mods.feature(422B)
--------blueprints.feature(1KB)
--------steps()
----distribute_setup.py(15KB)
----blueprint()
--------mods.py(1KB)
--------collection.py(1KB)
--------markov.py(2KB)
--------factories.py(2KB)
--------taggables.py(7KB)
--------__init__.py(826B)
--------fields.py(11KB)
--------dice.py(3KB)
--------base.py(8KB)
----LICENSE(1KB)
----setup.cfg(0B)
----setup.py(1KB)
----.gitignore(119B)
----CONTRIBUTORS(117B)

网友评论