Skip to main content

A module for caching function results that contain unique characters in string.

Project description

ovcharuk-cacher

ovcharuk-cacher is a Python package that counts the number of unique characters in a string or text file.

Features

  • Counts unique characters in a string or file
  • Uses' functools.cache to cache reated calls for the same input.
  • Provides a command-line interface (CLI).

Installation

Install packet PyPi:

bach

pip install cacher

How it's work:

  • Option 1: Using via CLI: ovcharuk-cacher-cli --string "aabbcde"

Conclusion: Number of unique characters occurring only once: 3

Using with file: ovcharuk-cacher-cli --file path/to/file.txt

  • Option 2: Use as a Python module: python -m ovcharuk_cacher --string "aabbcde"

  • Testing: pytest

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

ovcharuk_cacher-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

ovcharuk_cacher-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file ovcharuk_cacher-0.1.1.tar.gz.

File metadata

  • Download URL: ovcharuk_cacher-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.13.0

File hashes

Hashes for ovcharuk_cacher-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ac5a3b8be13448f887f0b74905ed092fd90639a22effb8251f509792bbdc027
MD5 cadd37f772552b2131691aeeb00b43fe
BLAKE2b-256 afa8f19987bf2d7089885178ca10cabdcdfcd044813f4db42b450bf2c6700111

See more details on using hashes here.

File details

Details for the file ovcharuk_cacher-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovcharuk_cacher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d69ddb7a738340dcbfa3f6ebb8aa176bf47510e3252cdd7440294b2708df60c
MD5 4c21bb231d74b5f40840eeb23f431a34
BLAKE2b-256 57e20da30e78390414c459d0743ac0e3770a2ce3a5f10667c3a179e9aa53c41c

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