# usage: $ zstdcat lichess_db.pgn.zst | python script.py import sys for line in sys.stdin: print(line)