Formatron

Latest version: v0.4.9

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.4.8

- Custom vocabulary processors by lukaszkolodziejczyk
- `Properties` keyword is now optional for type: `object` json schema

0.4.7

- Support `substring_of` as a constraint metadata in typing.Annotated and `substringOf` as a custom constraint in json schema on the generated string.
- Support `FormatterBuilder.regex_complement` to allow constraining the output to be a string that does *not* match the string anywhere.

0.4.6

- Support more non-type level constraints(see https://github.com/Dan-wanna-M/formatron/issues/12)
- Update docs to reflect newest features and potential issues
- Bug fix for `FormatterBuilder.str()`
- Make accept bytes behaviour consistent with accept token

0.4.5

- Fix quality degradation when duplicate tokens(tokens that correspond to the same bytes but different token ids) are present in vocabulary.

0.4.4

Bug fix: typing.Literal["xxx"] will now actually work correctly with JsonExtractor

0.4.3

- Bug fix: typing.Literal["xxx"] will now work correctly with JsonExtractor
- Top level array is now supported in json schema with JsonExtractor

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.