code: def get_version(filename):
      
      with open(filename) as in_fh:
          for line in in_fh:
              if line.startswith('__version__'):
                  return line.split('=')[1].strip()[1:-1]
      raise ValueError("Cannot extract version from %s" % filename)
docs: Extract the package version