Skip to main content

A professional CLI tool to count unique characters

Project description

Character Counter Package

A professional Python CLI tool for counting unique characters in strings and text files. Built with modern standards using src-layout and uv.

Features

  • Flexible Input: Process raw text strings or local files.
  • Priority Rule: If both parameters are provided, --file takes higher priority, and the --string input is ignored.
  • CLI Ready: Once installed, the tool is available as a standalone command.
  • Robustness: Fully covered by unit tests.

Installation

To install the package from the local directory using uv, run:

pip install eliot-char-counter-pkg

Usage

  • After installation, you can use the char-counter command directly from your terminal.

using string

char-counter --string "your string"

using file

char-counter --file path/to/your/file.txt

Priority Logic

The application follows a strict priority rule: if both arguments are provided, the tool will process the file and ignore the string input.

char-counter --file data.txt --string "this text will be ignored"

Help

To see all available options and command descriptions, run:

char-counter --help

Documentation

Technical specifications and design decisions are documented separately in the RFC.md file.

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

eliot_char_counter_pkg-0.1.1.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

eliot_char_counter_pkg-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file eliot_char_counter_pkg-0.1.1.tar.gz.

File metadata

  • Download URL: eliot_char_counter_pkg-0.1.1.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for eliot_char_counter_pkg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fb5584033cdd2de5062f09ec92ce875a51eda2b191b7626cd13f00d233244c54
MD5 06b77c35f540dc763f36d42deba9a2b7
BLAKE2b-256 2f0be9833f79b9c408a7b53e2ad11966004ae0dbd85718c42ab9c96e7a4af6cf

See more details on using hashes here.

File details

Details for the file eliot_char_counter_pkg-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for eliot_char_counter_pkg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af0039fc7d866c87c3d1f5e94c0fb2f6aba563203a0d6966cc8a5624867cdbeb
MD5 fa6dbc60ef9bfac2724976b0734c9ea3
BLAKE2b-256 73942bf984e88b189798ec564e4375f1009390571bd84ba024ae2753334cddce

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