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
uv 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.2.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.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eliot_char_counter_pkg-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4e5dab26e2700ce9b7e6ebf7238c8e86eee0f785dc297551ff083457c74c98c2
MD5 ba29bb5a02efb07b21474ed07974450a
BLAKE2b-256 5503675ab5212dd6de50c4aa319fbed9feac517971aa93a9ff31e3ae4dbdb977

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eliot_char_counter_pkg-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d0d019c56e52e1a415c7ec2d41d8d22169903726e4417cfc9616de756c103585
MD5 afcdd560dce7f636b19c8ea25e7a0cab
BLAKE2b-256 ac0e34935f6b9bac0566996600ae7181555b4ec6339680640b476f2641b5359e

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