def gen_cyrillic(length=10):

    # Validate length argument
    _is_positive_int(length)

    random.seed()

    # Generate codepoints, then convert the codepoints to a string. The
    # valid range of Cyrillic codepoints is 0x410 - 0x4ff, inclusive. Python 2
    # and 3 support the `unichr` and `chr` functions, respectively.
    codepoints = [random.randint(0x0400, 0x04FF) for _ in range(length)]
    try:
        # (undefined-variable) pylint:disable=E0602
        output = u''.join(unichr(codepoint) for codepoint in codepoints)
    except NameError:
        output = u''.join(chr(codepoint) for codepoint in codepoints)
    return _make_unicode(output)
Add a new command to the blueprint.
dataset/ETHPy150Open omaciel/fauxfactory/fauxfactory/__init__.py/gen_cyrillic--crossover with--dataset/ETHPy150Open sdispater/orator/orator/schema/blueprint.py/Blueprint._add_command