How to use the handright._core._Renderer function in handright

To help you get started, we’ve selected a few handright examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Gsllchb / Handright / handright / View on Github external
`template` could be a Template instance or a Sequence of Template
    instances. If pass a Template Sequence, the inside Template instances will
    be applied cyclically to the output pages.

    `seed` could be used for reproducibility.

    A different implementation of map built-in function (only accept one
    Iterable though) could be passed to `mapper` to boost the page rendering
    process, e.g. ``.
    if isinstance(template, Template):
        templates = (template,)
        templates = template
    pages = _draft(text, templates, seed)
    renderer = _Renderer(templates, seed)
    return mapper(renderer, pages)


A lightweight Python library for simulating Chinese handwriting

Latest version published 1 month ago

Package Health Score

75 / 100
Full package analysis

Similar packages