Skip to content

Improve template support in PersonaGenerator #101

@sergioburdisso

Description

@sergioburdisso

We should improve the template support to be able to provide any text along with it and only replace the random value where it is marked.

pg = PersonaGenerator(Persona(name="Loco Polaco", language=["English", "Spanish"]))

pg.set_attribute_generators(
    age="{{10-30}} meters"
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions