Skip to content
plwgPublic

About

Count raw strings in Python files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Usage

uvx pystrfreq

The tool will walk through the current directory, parse all .py file and then tabluate the frequency of string in the parsed files.

Options

To check all usage options:

uvx pystrfreq -h

Known Caveats

  • Requires Python 3.11 to 3.15.
  • Results depend on the Python version running pystrfreq: files are parsed with that interpreter's grammar, so files using newer syntax (e.g. t-strings, 3.14+) are skipped with a warning on an older Python. Run with the newest Python your codebase targets, e.g. uvx --python 3.15 pystrfreq.
  • FormmatedValue in f-string are not supported, while the f-string will be broken into its constant parts and tabulated.

License

This project is licensed under the MIT License.

About

Count raw strings in Python files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages