Metadata-Version: 1.1
Name: version-probe
Version: 0.1
Summary: Probe Python source code for language version.
Home-page: http://github.com/abingham/python-version-probe
Author: Austin Bingham
Author-email: austin@sixty-north.com
License: MIT License
Description: ======================
         python version probe
        ======================
        
        A tool for detecting the Python major version for a body of source
        code.
        
        Quickstart
        ==========
        
        ```
        from version_probe import detect_version
        
        # Find the version used in sources files under ~/projects/ipv7
        v = detect_version("~/projects/ipv7")
        
        # something so advanced is, of course, written in Python 3
        assert v == 3
        
        v = detect_version("/opt/old_project")
        assert v == 2
        
        try:
            detect_version("~/projects/experimental")
        except ValueError as e:
            print("Syntax error detected in the experimental project: {}".format(e))
        ```
        
Keywords: Python
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
