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.

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 hashes)

Uploaded source

Built Distribution

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