Metadata-Version: 1.1
Name: pycompat
Version: 0.2.1
Summary: Library to check Python and System version in a easy way
Home-page: https://github.com/alexandrevicenzi/pycompat
Author: Alexandre Vicenzi
Author-email: vicenzi.alexandre@gmail.com
License: The MIT License (MIT)

Copyright (c) 2014 Alexandre Vicenzi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Description: pycompat |Build Status| |Version|
        =================================
        
        Library to check Python and System version in a easy way
        
        Compatibility
        ~~~~~~~~~~~~~
        
        Works with all major versions of Python.
        
        Tested on Python 1.5, 2.2, 2.3, 2.4, 2.6, 2.7, 3.0, 3.2, 3.3, 3.4 and
        PyPy.
        
        Install
        ~~~~~~~
        
        ``pip install pycompat``
        
        or
        
        ``python setup.py install``
        
        How to use?
        ~~~~~~~~~~~
        
        .. code:: python
        
            from pycompat import python as py
        
        .. code:: python
        
            py.is2xx
            >>> True
        
        .. code:: python
        
            py.is27x
            >>> True
        
        .. code:: python
        
            py.is3xx
            >>> False
        
        .. code:: python
        
            py.is_gt(2, 5)
            >>> True
        
        .. code:: python
        
            py.is_lt(3)
            >>> True
        
        .. code:: python
        
            py.is_eq(2, 7, 5)
            >>> True
        
        .. code:: python
        
            py.is_cpython
            >>> True
        
        .. code:: python
        
            py.is_pypy
            >>> False
        
        .. code:: python
        
            from pycompat import system as sys
        
        .. code:: python
        
            sys.is_64bits
            >>> True
        
        .. code:: python
        
            sys.is_linux
            >>> True
        
        .. code:: python
        
            sys.is_linux2
            >>> True
        
        .. code:: python
        
            sys.is_linux3
            >>> False
        
        List of all attributes/methods
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        .. code:: python
        
            # Constants
            pycompat.WIN_32
            pycompat.CYGWIN
            pycompat.LINUX
            pycompat.LINUX2
            pycompat.LINUX3
            pycompat.MAC_OS_X
            pycompat.OS2
            pycompat.OS2_EMX
            pycompat.CPYTHON
            pycompat.IRONPYTHON
            pycompat.JYTHON
            pycompat.PYPY
            pycompat.MAX_SIZE
        
            # Python version
            pycompat.major
            pycompat.minor
            pycompat.micro
            pycompat.release
        
            # Python info
            python.is1xx
            python.is10x
            python.is15x
            python.is16x
            python.is2xx
            python.is20x
            python.is21x
            python.is22x
            python.is23x
            python.is24x
            python.is25x
            python.is26x
            python.is27x
            python.is3xx
            python.is30x
            python.is31x
            python.is32x
            python.is33x
            python.is34x
            python.is35x
        
            python.is_pypy
            python.is_ironpython
            python.is_jython
            python.is_cpython
        
            python.is_32bits
            python.is_64bits
        
            python.is_gt(2, 7, 5)
            python.is_lt(2, 7, 5)
            python.is_eq(2, 7, 5)
        
            python.is_alpha
            python.is_beta
            python.is_candidate
            python.is_final
        
            # System info
            system.is_windows
            system.is_cygwin
            system.is_linux
            system.is_linux2
            system.is_linux3
            system.is_mac_os
        
            system.is_32bits
            system.is_64bits
        
        Changelog
        ~~~~~~~~~
        
        0.2.1
        ^^^^^
        
        -  Fix `#3`_.
        
        0.2
        ^^^
        
        -  Better approach for ``is_lt``, ``is_gt`` and ``is_eq``.
        -  Add Python release info.
        
        Want more?
        ~~~~~~~~~~
        
        Feel free to request more functions or contribute in this project.
        
        .. _#3: https://github.com/alexandrevicenzi/pycompat/issues/3
        
        .. |Build Status| image:: https://travis-ci.org/alexandrevicenzi/pycompat.svg?branch=master
           :target: https://travis-ci.org/alexandrevicenzi/pycompat
        .. |Version| image:: https://pypip.in/version/pycompat/badge.png
           :target: https://pypi.python.org/pypi/pycompat
Keywords: python,system,sys,info,compatibility,py2to3
Platform: 
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Topic :: System
Classifier: Topic :: Utilities
