xeger-0.4.0
توضیحات
A library for generating random strings from a valid regular expression.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | xeger-0.4.0 |
| نام | xeger |
| نسخه کتابخانه | 0.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Colm O'Connor |
| ایمیل نویسنده | colm.oconnor.github@gmail.com |
| آدرس صفحه اصلی | https://github.com/crdoconnor/xeger |
| آدرس اینترنتی | https://pypi.org/project/xeger/ |
| مجوز | BSD |
.. image:: https://travis-ci.org/crdoconnor/xeger.svg?branch=master
:target: https://travis-ci.org/crdoconnor/xeger
Xeger
=====
Library to generate random strings from regular expressions.
To install, type:
::
pip install xeger
To use, type:
>>> from xeger import Xeger
>>> x = Xeger(limit=10) # default limit = 10
>>> x.xeger("/json/([0-9]+)")
u'/json/15062213'
About
=====
Code adapted and refactored from the Python library
`rstr by Leapfrog Online <https://github.com/leapfrogonline/rstr>`_ (now iProspect),
in turn inspired by the Java library `Xeger <http://code.google.com/p/xeger/>`_.
نحوه نصب
نصب پکیج whl xeger-0.4.0:
pip install xeger-0.4.0.whl
نصب پکیج tar.gz xeger-0.4.0:
pip install xeger-0.4.0.tar.gz