Skip to main content

A small example package

Project description

CLI char counter

CharCounter is a command-line tool that counts the number of unique characters in a given string or a file containing a sequence of characters.

Usage

To use CharCounter, follow the instructions below:

Installation

  • Download package from PyPi by following command:

python -m pip install --index-url https://test.pypi.org/simple/ --no-deps example-package-shinumerde

Make sure you have Python installed on your machine.

Running the Application:

  • Navigate to the app directory:

cd app

  • Run the application using the following command:

python prog.py --string "your_sequence_here"

for a string sequence or the command below for proccessing sequence from a file

python prog.py --file path/to/your/file.txt

  • Replace "your_sequence_here" with the actual string you want to analyze or provide the path to a file containing the sequence.

Options

  • --string: Input a string for counting unique characters.
  • --file: Input a file with a sequence for counting unique characters.
Example

python char_counter.py --string "abbccd"

This will output:

2

which represents the number of unique characters in the given string.

LICENSE

This project is licensed under the GNU Public License - see the LICENSE file for details.

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

example_package_shinumerde-2024.2.8.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

example_package_shinumerde-2024.2.8-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file example_package_shinumerde-2024.2.8.tar.gz.

File metadata

File hashes

Hashes for example_package_shinumerde-2024.2.8.tar.gz
Algorithm Hash digest
SHA256 88c720688804aac6a65c2463d0ae853b8673b55f69a1086344aae288a7ef03e9
MD5 7f0cd3355845470e477181d0aa452a82
BLAKE2b-256 f8cb362f4f51e92e8709e9ad5584faf818c94cb8d5639b0389817bcb9a7047a1

See more details on using hashes here.

File details

Details for the file example_package_shinumerde-2024.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for example_package_shinumerde-2024.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 28b0ad0f4c20fffb6c0403aee758302084e85b447b3bda7aaa39115060bf42f4
MD5 6388c4a58ef98751ae3fe746b9402894
BLAKE2b-256 a341aa78c637023a073c68608f37e71cc2f28dd24143317807399ca1cc3136ea

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