D20

Latest version: v1.1.2

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

Scan your dependencies

Page 4 of 4

0.3.0

- Added AST caching to speed up parsing of common dice strings using a LFU cache
- Made sure the grammar file actually made it into the package

0.2.0

0.1.0

- Added `allow_comments=False` kwarg to `roll()` to only look at dice expressions by default
- Added logic when `allow_comments` is True to check against ambiguities
- Fixed ambiguous cases in the grammar where branches were matching before they were supposed to
- Added test suite

Page 4 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.