Skip to main content

No project description provided

Project description

# Count unique characters

This package allows you to protect the unique characters that it receives at the entrance. Works with files and strings.

## Getting started

The program receives files as input, processes them and passes them to the script.

` parser.add_argument(’–word’, help=’Enter the string’) `

` parser.add_argument(’–file’, type=argparse.FileType(‘r’)) `

` arguments = parser.parse_args() `

## Function run_function The function receives an object as an input and determines the type, transfers the data to a specific function.

_args - object witch is the result of parser.parse_args()_

Returns the number of unique characters

## Function count_letter

Counts unique letters from given string. To speed up the work, the function has a cache, which, in case of repetition of input data, returns a ready value.

_word - input string _

Returns <int> the number of unique characters

## Function count_letter_in_file

Function read string from file

_file -input file objects _

Returns the result of function _count_letter_ or None, when file is not valid No newline at end of 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

unique_variable-1.0.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file unique_variable-1.0.tar.gz.

File metadata

  • Download URL: unique_variable-1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.0

File hashes

Hashes for unique_variable-1.0.tar.gz
Algorithm Hash digest
SHA256 9ad538b82c1f1df89131ab50fca143de969363ab7b3e6ee424183a08fb066fb3
MD5 85d3d97f155fa52589dbe13b022daeab
BLAKE2b-256 6a3ee5b9a771d10ee5710ef7e1476bbe4cce7ab027ee5bb0c803e30639ab64e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page