Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

incremental_counter-0.1.3.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file incremental_counter-0.1.3.tar.gz.

File metadata

  • Download URL: incremental_counter-0.1.3.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13

File hashes

Hashes for incremental_counter-0.1.3.tar.gz
Algorithm Hash digest
SHA256 00880505d9050a6a7fc5340e971c5df7c4a77d886cee7294039b048a264ae8ef
MD5 582922e1924ef620f1eeb24ce675e409
BLAKE2b-256 85cb84bae31a4c68876758380a2a40043b841bc2a6268efbcd894d4fca72fa43

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