Metadata-Version: 1.1
Name: aiocassandra
Version: 1.0.3
Summary: Simple threaded cassandra wrapper for asyncio
Home-page: https://github.com/wikibusiness/aiocassandra
Author: wikibusiness
Author-email: osf@wikibusiness.org
License: UNKNOWN
Description: aiocassandra
        ============
        
        :info: Simple threaded cassandra wrapper for asyncio
        
        .. image:: https://img.shields.io/travis/wikibusiness/aiocassandra.svg
            :target: https://travis-ci.org/wikibusiness/aiocassandra
        
        .. image:: https://img.shields.io/pypi/v/aiocassandra.svg
            :target: https://pypi.python.org/pypi/aiocassandra
        
        Installation
        ------------
        
        .. code-block:: shell
        
            pip install aiocassandra
        
        Usage
        -----
        
        .. code-block:: python
        
            import asyncio
        
            from aiocassandra import aiosession
            from cassandra.cluster import Cluster
        
            cluster = Cluster()
            session = cluster.connect()
        
            # best way is to use cassandra prepared statements
            cql = session.prepare('SELECT now() FROM system.local;')
        
            @asyncio.coroutine
            def main(*, loop):
                # patches and adds `execute_future` to `cassandra.cluster.Session`
                aiosession(session, loop=loop)
                return (yield from session.execute_future(cql))
        
            loop = asyncio.get_event_loop()
        
            try:
                response = loop.run_until_complete(main(loop=loop))
                print(response)
            finally:
                cluster.shutdown()
                loop.close()
        
        
        Python 2.7(trollius), 3.3+ and PyPy are supported.
        
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.0
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: PyPy
