Skip to main content

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

Project description

collekt framework

A Python package to count the number of characters that occur only once in a string or a text file, with caching for performance.

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: cacher-cli --string "aabccddef"

Conclusion: Number of unique characters occurring only once: 2

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

  • Option 2: Use as a Python module: python -m cacher --string "hello world"

  • 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.0.tar.gz (4.1 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.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ovcharuk_cacher-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 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.0.tar.gz
Algorithm Hash digest
SHA256 9f62e488456b018caad5b2d8add9bc10fcde0a31885492243c19fdccb75c2519
MD5 e59c2aede534ce69d9c86fbf1414a74f
BLAKE2b-256 e7e09659ef984c2d1968971a29aeae463eba9fd78d8fd9c00289891b6796dd79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ovcharuk_cacher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e3e970cbaba3ef1ed48c1eee0b094e1b19c4b019fe07d7b03dd290822a07123
MD5 e75bfcb15005aa17fb0319c723a30a3a
BLAKE2b-256 2885adf4a5443503ecc1ace894c63249f924b34d93bbd9f43093f2b6ff502aca

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