Skip to main content

A utility to count the number of unique characters in a string or file.

Project description

Count-unique-chars

A small Python utility to count the number of unique characters in a given string or file.

Installation

You can install the count_unique_chars package using pip:

pip install count-unique-chars

Dependencies

pytest==7.3.1
pytest-mock==3.10.0	

Usage

Run the script with a file argument

count_unique_chars --file path/to/file

Run the script with a string argument

count_unique_chars --string "your string"

When both --file and --string are provided, --file takes priority

count_unique_chars --file path/to/file --string "your string"

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

count_unique_chars-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

count_unique_chars-0.0.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file count_unique_chars-0.0.4.tar.gz.

File metadata

  • Download URL: count_unique_chars-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for count_unique_chars-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a9332402f6ee19199d133f3dec3dcfe1ae87f8102328804f8ac9a0165d74fe4d
MD5 db3d468d0a9eb98cedeef16fa54e5678
BLAKE2b-256 32c0c7308056fd732eb7ffb7fce83f6c7a916c7b92efa5e0d99a7d9bb2ec19c3

See more details on using hashes here.

File details

Details for the file count_unique_chars-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for count_unique_chars-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 89a9ee5be378a350a69184adb63968f213556fd721d63f22f61cf815b37a27c3
MD5 b3da41d0525df234e71e1b8534c4707b
BLAKE2b-256 37519eb4a15fcd80fc772b905cd7c20aa92c6df4008ab937bdf4bfef8e946ae5

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