Skip to main content

charfreq

Get the frequency of characters in your files! Outputs JSON with character counts

Install

pip3 install charfreq

Example usage

charfreq --only "[()]" ./**/*.py

This outputs the following JSON

{
    "(": 83281,
    ")": 83286
}

More random examples

# Have a look at the options available
charfreq --help

# Check a file
charfreq script.py

# Check many files
charfreq script.py test.py api.js

# Test all py files recursively using glob (only tested on bash shell)
charfreq ./**/*.py

# Use multiple globs! (only tested on bash shell)
charfreq ./**/*.py ./**/*.html

# Exclude characters based on regex
charfreq --exclude "[a-zA-Z]" ./**/*.py

# Only capture characters based on regex
charfreq --only "[a-zA-Z]" ./**/*.py

Metadata

Release files for charfreq 23.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for charfreq 23.8.2
File Size Uploaded Provenance Actions
charfreq-23.8.2.tar.gz 5.3 kB Without provenance Details for charfreq-23.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for charfreq 23.8.2
File Interpreter ABI Platform Actions
charfreq-23.8.2-py3-none-any.whl Python 3 none any Details for charfreq-23.8.2-py3-none-any.whl

Total release size: 10.3 kB

Release files / charfreq-23.8.2.tar.gz

Download URL charfreq-23.8.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d535c79cd4d0a1d25be1dfec63c3573705bb98bdf930513fd6fd35b5199deaa4
BLAKE2b-256 checksum
How to use checksums
5948011967e72ec7cd47376858c08f220d4ecd16bfc05e89561dfde4f3ea1f77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / charfreq-23.8.2-py3-none-any.whl

Download URL charfreq-23.8.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5d0d8277cea3c9d9a6c4291d2f8924686d37419c96ec4db8e06320b25637776
BLAKE2b-256 checksum
How to use checksums
42c5640d2526588b6c0a71534ef872d37dc25877244b5967e22c5d99bc595176
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Security for charfreq 23.8.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

23.8.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page