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:

uv pip install .
uv pip install -e . development mode

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.0.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.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eliot_char_counter_pkg-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 7fbb69cef2ece33331e529ab515ec923d9061636324ae032705be95bb914273f
MD5 a5d18559e9123a7b9a1da8bd2b91da1d
BLAKE2b-256 6c419b1cb0b187f36ecf67ec860fd0818a1938598a8254946112a4ec417b870d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eliot_char_counter_pkg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe206c6c11337cf632eebffcd94773c8e103a592d229755a6c44121c01c3e6e2
MD5 2f9bf62287a7ef66fb6058cad8d27c40
BLAKE2b-256 40a14826adb0e0328b031ab337d9cbf0c5236e4284ce9b2820291fea366a6460

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