Skip to main content

Package count unique chars in file or string

Project description

Python module for counting unique symbol

Module get nuber of uniq chars in text file, string or function

Install

pip install unique-character==0.0.3

Options:

unique_character.cli_unique_character [-h] 
unique_character.cli_unique_character [--file FILE] 
unique_character.cli_unique_character [--string STRING]
from unique_character import count_letter
assert count_letter('1234') == 4

Examples:

Command:

python3.8 -m unique_character.cli_unique_character --string aaabbcc123

Return:

3

Command:

python3.8 -m unique_character.cli_unique_character --file text_file.txt

Return:

100

Import module in your python file:

test.py
    from unique_character import count_command_line
    print(count_command_line())

python3.8 -m  test.py --string aaabbcc123

Return:

3

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

unique_character-0.0.3.tar.gz (9.5 MB view details)

Uploaded Source

Built Distribution

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

unique_character-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file unique_character-0.0.3.tar.gz.

File metadata

  • Download URL: unique_character-0.0.3.tar.gz
  • Upload date:
  • Size: 9.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.0

File hashes

Hashes for unique_character-0.0.3.tar.gz
Algorithm Hash digest
SHA256 82b7a03cf09c77a248a1293a19f82129c2b5a19ecfb26407bbe1f39e8070d6e3
MD5 b17b370a12fff922bb8985131cbe0a78
BLAKE2b-256 1d00cd1fb4bdaafaf0860cd4f36c8035392b9e00c2c73c1dd609f68080c6bd13

See more details on using hashes here.

File details

Details for the file unique_character-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for unique_character-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dec535a8a14e11f4e6bc45008c2a27af7c8d405f9801fc8783cff28a93ddc51f
MD5 f0a3e79203c7d9d1db878da151cdf855
BLAKE2b-256 167505b67f53ee34c1c9c4f9288617439bd380d23ee841bc46c237ea5b5701ab

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