mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 23:50:18 +00:00
14 lines
295 B
Python
14 lines
295 B
Python
"""
|
|
You can run this script as
|
|
$ python read_stdin.py < ishelve.bat
|
|
"""
|
|
from __future__ import with_statement
|
|
import sys
|
|
from ishelve import ishelve
|
|
import plac
|
|
|
|
if __name__ == '__main__':
|
|
with plac.Interpreter(ishelve) as i:
|
|
for line in sys.stdin:
|
|
print(i.send(line))
|