Skip to main content

Package for counting unique characters in a string

Project description

countonlyonechar

Package for counting unique characters in the string occurring only once.

Installation

Use the package manager pip to install countonlyonechar.

pip install countonlyonechar

Usage

import countonlyonechar

# returns 4
countonlyonechar.count_only_one_char('word')

# returns <string in file>
countonlyonechar.read_txt_file(path_to_text_file)
countonlyonechar --string 'word'
# returns 4

countonlyonechar --file <file_path>
# returns the number of characters in the file occurring only once

License

MIT

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

countonlyonechar-0.1.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

countonlyonechar-0.1.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: countonlyonechar-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for countonlyonechar-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fdeff9cfcef6963d84442d1f0e3d60554e02df6e6c7912e9776645e07a0798ee
MD5 5ae4bd506114404c4ccd777a504d689b
BLAKE2b-256 5cfa2476fb3f8f23361498962ea17c53d7aa80b3c4c488f5547c5cb126661299

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for countonlyonechar-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 914ca38a2b17af9e6a2d01be96d57830ab0b2bfb0adbf008905f3b88f647872f
MD5 9434755c94b90d869de3718db3f2ea17
BLAKE2b-256 d77101f6c22a6f38ffaf452d8fcf3ae30f6877e4254819d7dfb5adc55577b12d

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