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-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for countonlyonechar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dbaaa0084d181824c6e053c82855f755a2a115383dfa0bf7d1a9bbdef9005c84
MD5 fc8b4775bff974268a430b6aee2eadaa
BLAKE2b-256 8768cfec2e96c969b9cbd730d64e9be628e6d42ada4b259528861c975fe337df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for countonlyonechar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31a061d2dba3a56dac83edc7e7b119b1b1d96fac08fc93a4c7808ba5b7b6e352
MD5 b7973233dc182eaa113897e4b53bcba8
BLAKE2b-256 35d690f43d6fb65d771ffda48161f87348712d10f875d0ff82015ce9d4db14b5

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