strgen:用于生成随机数据的模板语言的Python模块

时间:2021-05-04 15:05:26
【文件属性】:
文件名称:strgen:用于生成随机数据的模板语言的Python模块
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-04 15:05:26
python random template-language regular-expression random-generation 力量 使用模板语言可以非常快速地生成测试数据,唯一ID,密码,凭证或其他随机文本数据。 模板语言从表面上类似于正则表达式,但是它没有定义如何匹配或捕获字符串,而是定义了如何生成随机字符串。 一个非常简单的调用,以产生一个长度为30个字符的单词字符的随机字符串: from strgen import StringGenerator as SG SG ( r"[\w]{30}" ). render () 'wQjLVRIj1sjjslORpqLJyDObaCnDR2' 当前软件包需要Python 3.6或更高版本。 如果要使用Python 2.7或更早版本的Python 3,请使用0.3.4或更早版本。 注意:对于0.4.2版,生成唯一列表的首选方法是StringGenerator.render_set()而不是render_list() 。 在几秒钟内生成50000个唯一的安全令牌
【文件预览】:
strgen-master
----.flake8(154B)
----.gitignore(399B)
----README.rst(4KB)
----.github()
--------workflows()
----docs()
--------make.bat(795B)
--------debugging.rst(856B)
--------conf.py(955B)
--------progress.rst(572B)
--------installation.rst(308B)
--------index.rst(3KB)
--------makeme(454B)
--------recipes.rst(4KB)
--------render_set.rst(3KB)
--------randomizer.rst(2KB)
--------usage.rst(10KB)
--------rationale.rst(2KB)
--------count.rst(2KB)
--------syntax.rst(1KB)
--------Makefile(634B)
----LICENSE(1KB)
----register.py(248B)
----profile()
--------profilesg.py(2KB)
----strgen()
--------tests.py(9KB)
--------__init__.py(22KB)
--------countries.py(3KB)
----.coveragerc(33B)
----requirements.txt(42B)
----CHANGES.txt(2KB)
----cover.sh(45B)
----pyproject.toml(143B)
----setup.py(1KB)
----.travis.yml(152B)

网友评论