title: What's Python's equivalent to Java InputStream's available method?
body: <p>Java's InputStream provides a method named <code>available</code> which returns the number of bytes that can be read without blocking. </p>
  
  <p>How can I achieve this in Python?</p>