No project description provided
Project description
exponential_counter
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for exponential_counter-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b073a231192031e3bc028dd356ff97e65af0e5e71f61740a0495f149e86665 |
|
MD5 | 3752eb8dabe0990437ecf1d212adfd99 |
|
BLAKE2b-256 | da99b87cbc29a1b733acb3f015f2105f6b35ec4eb23691b1ed834f4a346fe641 |
Close
Hashes for exponential_counter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 466237ac168be40c72e111e97a167ef827787c6294d019b6321e51c500618ee2 |
|
MD5 | 77679ca2ba6bab4b3df299bff0853fc8 |
|
BLAKE2b-256 | cfa99cbfad3ea5118004f377b23b8085724af815ab03ff2bc850337e91211541 |