rust-pyo3-dirstate: DirstateMap simple read-only methods
This takes care of all read-only methods except:
- copymap methods
- methods returning iterators
These two categories will be done in forthcoming changesets.
#!/usr/bin/env python3
#
# A tool to help producing large and poorly compressible files
#
# Usage:
# $TESTDIR/seq.py 1000 | $TESTDIR/sha256line.py > my-file.txt
import hashlib
import sys
for line in sys.stdin:
print(hashlib.sha256(line.encode('utf8')).hexdigest())