Pygmars

Latest version: v0.9.0

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

Scan your dependencies

0.9.0

-------------

- Drop support for Python 3.8, add Python 3.12
- Improve debug tracing

0.8.1

-------------

- Update link references of ownership from nexB to aboutcode-org

0.8.0

-----------------

- Improve error message and exception for faulty lexing regexes.

- Adopt latest skeleton, including now using a venv/ directory =rather than tmp/
to store the local virtualenv

- Ensure the Tree.pformat() output has a correct children indentation

0.7.0

-----------------

- Improve tracing: it is now possible to trace lexing. Tracing parsing
only reports which parsing actually was applied (rather than listing all)

- Enable custom regex re flags in Lexer.

- Convert generators to list when building a Tree.

- When using Pygments lexers, the token label crafted from a Pygments token
type is stripped from the leading "Token."

- Improve Tree representation to make it easier to read traces

0.6.0

---------------

- Use raw strings for regexes to avoid deprecation warnings

- Significantly refactor code: top level are lex, parse and tree

- Parsing is now restructured with only Parser and Rule, plus ParseString
used internally for parsing.

- Code has been streamlined and simplified removing all parts that are not used
As an unintended side effect, parsing is now roughly twice faster.
For instance the scancode copyright test suite runs now in ~70 sec and was
running in ~160 sec before this.

- Lexer now accepts callables that behave like re.match in addition to regexp

- Add minimal support to reuse Pygments lexer outputs and convert to Tokens to
feed a Parser. This allow to build simple grammar-driven parser from Pygments
lexers

0.5.0

---------------

- Initial version derived from NLTK HEAD at a5690ee

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.