Skip to main content

No project description provided

Project description

exponential_counter

PyPI - Version PyPI - Python Version


Table of Contents

Usage

from exponential_counter import ExponentialCounter, LinearCounter
counter = LinearCounter(max_value=4)
values = [counter() for i in range(8)]
# [0, 1, 2, 3, 4, 4, 4, 4]

counter = ExponentialCounter(start=4, step=3, max_value=32)
values = [counter() for i in range(6)]
# [4, 12, 32, 32, 32, 32]

Installation

pip install exponential-counter

License

exponential-counter is distributed under the terms of the MIT license.

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

exponential_counter-0.0.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

exponential_counter-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file exponential_counter-0.0.2.tar.gz.

File metadata

  • Download URL: exponential_counter-0.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.0

File hashes

Hashes for exponential_counter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a0b073a231192031e3bc028dd356ff97e65af0e5e71f61740a0495f149e86665
MD5 3752eb8dabe0990437ecf1d212adfd99
BLAKE2b-256 da99b87cbc29a1b733acb3f015f2105f6b35ec4eb23691b1ed834f4a346fe641

See more details on using hashes here.

File details

Details for the file exponential_counter-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for exponential_counter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 466237ac168be40c72e111e97a167ef827787c6294d019b6321e51c500618ee2
MD5 77679ca2ba6bab4b3df299bff0853fc8
BLAKE2b-256 cfa99cbfad3ea5118004f377b23b8085724af815ab03ff2bc850337e91211541

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