https://github.com/diewland/file-counter
File based Python Counter Utility
https://github.com/diewland/file-counter
counters python utility
Last synced: 3 months ago
JSON representation
File based Python Counter Utility
- Host: GitHub
- URL: https://github.com/diewland/file-counter
- Owner: diewland
- License: mit
- Created: 2018-05-25T14:00:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T07:08:07.000Z (almost 7 years ago)
- Last Synced: 2025-01-12T06:26:13.136Z (4 months ago)
- Topics: counters, python, utility
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# file-counter
File based Python Counter Utility```python
# initial
filename = 'test.tmp'
fc = FileCounter('test_count.dat')# examples
fc.val # return counter value
fc.reset() # reset to zero
fc.set(64) # set value to 64
fc.up() # counter +1
fc.down() # counter -1
fc.remove() # remove file