def extract_version():
    """Extract the version from the package."""
    with open('pdftools/__init__.py', 'r') as f:
        content = f.read()

    version_match = _version_re.search(content)
    version = str(ast.literal_eval(version_match.group(1)))
    return version
def extract_version ( ) : with open ( 'pdftools/__init__.py' , 'r' ) as f : content = f . read ( ) version_match = _version_re . search ( content ) version = str ( ast . literal_eval ( version_match . group ( 1 ) ) ) return version
Extract the version from the package.