Incremental Counter
Project description
incremental-counter
Incremental Counter
>>> from incremental_counter import counter
>>> c = counter.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
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e7c58e4bb0f35fb9149d36c511d204b70176ce494e2f7518cc5adcc1deb7d19 |
|
MD5 | 972ecc905344759d020cedd51f7d250d |
|
BLAKE2b-256 | 9bf40dfc660934af60715665c7a35a8ee17192386f695e4631c1f3212ef268bb |