Skip to main content

Tabulate the frequency of string object in a python codebase

Project description

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

usage: pystrfreq [-h] [--min-count MIN_COUNT] [files_or_dirs ...]

count strings in Python files

positional arguments:
  files_or_dirs         files or directories to scan

optional arguments:
  -h, --help            show this help message and exit
  --min-count MIN_COUNT, -m MIN_COUNT
                        show only strings with count equals to or is above this threshold

Known Caveats

  • This package does not support parsing python version < 3.9
  • 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystrfreq-0.2.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystrfreq-0.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pystrfreq-0.2.0.tar.gz.

File metadata

  • Download URL: pystrfreq-0.2.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for pystrfreq-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8e1ab21dd351f1a30f69843bf0d4ed263306d9cb45975fd893c79ba6f36f8979
MD5 635852405d75a70eddf904dedb553347
BLAKE2b-256 58d19ad9d9a297e9fbaf110301a71a63e5a7092cc33a42beef03d9a3ebafb06c

See more details on using hashes here.

File details

Details for the file pystrfreq-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pystrfreq-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for pystrfreq-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5aa465074521d71a12423084e51c806521cf04007ca1da3b2364da7fce1955c
MD5 468c87fe18c14fb5d7dbc6fd625787e3
BLAKE2b-256 f2dacc84d7f38b3e110409cf4979f001526961455b8a82742a654f78efef315a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page