Incremental Counter
Project description
incremental-counter
Incremental Counter
>>> from incremental_counter import Counter >>> c = Counter("/tmp/counter.txt") >>> c.current() 0 >>> c.inc() 1 >>> c.inc() 2 >>> c.reset() 0 >>> c.set(3) 3 >>> c.dec() 2 >>> c.dec() 1 >>> c.dec() 0 >>> c.dec() 0 >>> c.dec() 0
history
- 0.1.1 2018.11.03 first version
- 0.1.3 2018.11.07 remove redundant class
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
Close
Hashes for incremental_counter-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00880505d9050a6a7fc5340e971c5df7c4a77d886cee7294039b048a264ae8ef |
|
MD5 | 582922e1924ef620f1eeb24ce675e409 |
|
BLAKE2-256 | 85cb84bae31a4c68876758380a2a40043b841bc2a6268efbcd894d4fca72fa43 |