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.
Metadata
Release files for count-unique-chars 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| count_unique_chars-0.0.4.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| count_unique_chars-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / count_unique_chars-0.0.4.tar.gz
| Download URL | count_unique_chars-0.0.4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9332402f6ee19199d133f3dec3dcfe1ae87f8102328804f8ac9a0165d74fe4d
|
|
BLAKE2b-256 checksum How to use checksums |
32c0c7308056fd732eb7ffb7fce83f6c7a916c7b92efa5e0d99a7d9bb2ec19c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.9
|
Release files / count_unique_chars-0.0.4-py3-none-any.whl
| Download URL | count_unique_chars-0.0.4-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89a9ee5be378a350a69184adb63968f213556fd721d63f22f61cf815b37a27c3
|
|
BLAKE2b-256 checksum How to use checksums |
37519eb4a15fcd80fc772b905cd7c20aa92c6df4008ab937bdf4bfef8e946ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.9
|