Metadata-Version: 1.1
Name: readchar
Version: 0.2-test1
Summary: Utilities to read single characters and key-strokes
Home-page: https://github.com/magmax/python-readchar
Author: Miguel Ángel García
Author-email: miguelangel.garcia@gmail.com
License: MIT
Description: ==============  ===============  =========  ============
        VERSION         DOWNLOADS        TESTS      COVERAGE
        ==============  ===============  =========  ============
        |pip version|   |pip downloads|  |travis|   |coveralls|
        ==============  ===============  =========  ============
        
        Library to easily read single chars and key strokes.
        
        Goal and Philosophy
        ===================
        
        Born as a `python-inquirer`_ requirement.
        
        The idea is to have a portable way to read **single** characters and **key-strokes**.
        
        
        Documentation
        =============
        
        Installation
        ------------
        
        ::
        
           pip install readchar
        
        The `readchar` library is compatible with python 2.6, 2.7, 3.2 and 3.3.
        
        Usage
        -----
        
        Usage example:
        
        .. code:: python
        
          import readchar
        
          c = readchar.readchar()
          key = readchar.readkey()
        
        API
        ----
        
        There are just two methods:
        
        `readchar()`
        
        Reads the next char from `stdin`, returning it as a string with length 1.
        
        
        `readkey()`
        
        Reads the next key-stroke from `stdin`, returning it as an string.
        
        A key-stroke can have:
        
        - 1 character for normal keys: 'a', 'z', '9'...
        - 2 characters for combinations with ALT: ALT+A, ...
        - 3 characters for cursors: ->, <-, ...
        - 4 characters for combinations with CTRL and ALT: CTRL+ALT+SUPR, ...
        
        There is a list of previously captured chars with their names in `readchar.key`, in order to be used in comparations and so on. This list is not enough tested and it can have mistakes, so use it carefully. Please, report them if found.
        
        
        SO Support
        ----------
        
        Sadly, this library has only being probed in GNU/Linux. Please, if you can try it in another SO and find a bug, put an issue or send the pull-request.
        
        Thank you!
        
        
        License
        =======
        
        Copyright (c) 2014 Miguel Ángel García (`@magmax9`_).
        
        Based on previous work on gist `getch()-like unbuffered character reading from stdin on both Windows and Unix (Python recipe)`_, started by `Danny Yoo`_.
        
        Licensed under `the MIT license`_.
        
        
        .. |travis| image:: https://travis-ci.org/magmax/python-readchar.png
          :target: `Travis`_
          :alt: Travis results
        
        .. |coveralls| image:: https://coveralls.io/repos/magmax/python-readchar/badge.png
          :target: `Coveralls`_
          :alt: Coveralls results_
        
        .. |pip version| image:: https://pypip.in/v/readchar/badge.png
            :target: https://pypi.python.org/pypi/readchar
            :alt: Latest PyPI version
        
        .. |pip downloads| image:: https://pypip.in/d/readchar/badge.png
            :target: https://pypi.python.org/pypi/readchar
            :alt: Number of PyPI downloads
        
        .. _python-inquirer: https://github.com/magmax/python-inquirer
        .. _Travis: https://travis-ci.org/magmax/python-readchar
        .. _Coveralls: https://coveralls.io/r/magmax/python-readchar
        .. _@magmax9: https://twitter.com/magmax9
        
        .. _the MIT license: http://opensource.org/licenses/MIT
        .. _getch()-like unbuffered character reading from stdin on both Windows and Unix (Python recipe): http://code.activestate.com/recipes/134892/
        .. _Danny Yoo: http://code.activestate.com/recipes/users/98032/
        
Keywords: stdin,command line
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: User Interfaces
