Python runtime environment flags.
Python
Switch branches/tags
Nothing to show
Latest commit c1d6472 Mar 6, 2013 @kennethreitz kennethreitz Merge pull request #6 from pombredanne/master
Adding cygwin detection
Permalink
Failed to load latest commit information.
LICENSE LICENSE May 8, 2012
README.rst Added bitness and endianness May 8, 2012
its.py Added cygwin detection Jan 2, 2013
setup.py /s/it/its May 8, 2012

README.rst

its.py

Python runtime environment flags.

Usage

Usage is super simple:

Python 2.7.3 (default, Apr 24 2012, 20:23:13)
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import its

>>> its.py2
True

>>> its.py26
False

>>> its.py27
True

>>> its.pypy
False

>>> its.osx
True

>>> its.bit64
True

>>> its.little_endian
True

Installation

Installation is simple with pip:

$ pip install its