Skip to content

python-wells/read-from-stdin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

* COMMENT -*- mode: org -*-
#+Date: 2017-02-23
Time-stamp: <2017-02-23>

** When a python program support reading from stdin, it can accept input from
stdin redirect or shell pipes. For example:

    python main.py < /path/to/foo.txt
    cat /path/to/foo.txt | python main.py

sys.stdin is a file like object, usually you process line by line via
readline() call. You can also read it all though.

About

read from stdin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages