Skip to content

Releases: bdvllrs/attributes-to-language

v0.4.0

27 Jun 10:22
c3d3c68
Compare
Choose a tag to compare

Types and parsers

In this release, I added types to the project.

I also removed everything using regex to use a simple custom parser.

Their should not be any breaking change.

v0.3.0

03 Jan 15:38
Compare
Choose a tag to compare

Changes:

  • a new optional choices parameter is available for all writers and Composer. It allows to manually set the choices instead of randomly picking variants;
  • the writers and Composer now returns the choices used for generation in addition to the generated text.

Breaking changes:

Before

writer_text = writer(val="test")
final_text = composer({"shape": 1, ...})

After

writer_text, writer_choices = writer(val="test")
final_text, choices = composer({"shape": 1, ...})

v0.2.0

03 Jan 15:30
Compare
Choose a tag to compare

Changes:

  • variants can add attributes or other variants. They will be resolved recursively;
  • variants can be callable functions. In that case, the callable will receive an attributes dictionary with the writer attributes;
  • the structure can have groups delimited by < and > that will be randomly permuted;

See examples in the examples folder.

v0.1.1

21 Apr 14:43
Compare
Choose a tag to compare

Update mistake in readme.

Initial release v0.1.0

21 Apr 14:34
Compare
Choose a tag to compare
Initial commit