Metadata-Version: 1.1
Name: aiotarantool
Version: 1.0.4
Summary: Tarantool connection driver for work with asyncio
Home-page: https://github.com/shveenkov/aiotarantool
Author: Dmitry Shveenkov
Author-email: shveenkov@mail.ru
License: UNKNOWN
Description: Tarantool connection driver for work with asyncio
        ----------------------------------------------------------
        Connector required tarantool version 1.6:
        
            $ pip install aiotarantool
        
        Also, you need to install experimental branch tarantool-python for python 3.4:
        
            $ pip install git+https://github.com/shveenkov/tarantool-python.git@for_python3.4
        
        Try it example:
        
        .. code:: python
        
            import asyncio
            import aiotarantool
        
            cnt = 0
        
            @asyncio.coroutine
            def insert_job(tnt):
                global cnt
        
                for it in range(2500):
                    cnt += 1
                    r = yield from tnt.insert("tester", (cnt, cnt))
        
            loop = asyncio.get_event_loop()
        
            tnt = aiotarantool.connect("127.0.0.1", 3301)
            tasks = [asyncio.async(insert_job(tnt))
                     for _ in range(40)]
        
            loop.run_until_complete(asyncio.wait(tasks))
            loop.run_until_complete(tnt.close())
            loop.close()
        
        Under this scheme the aiotarantool driver makes a smaller number of read/write tarantool socket.
        
        See benchmark results time for insert/select/delete 100K tuples on 1.5KBytes:
        
        =========  =========  ==========
        call       tarantool  aiotarantool
        =========  =========  ==========
        insert     35.938047  12.701088
        select     24.389748  12.746204
        delete     35.224515  13.905095
        =========  =========  ==========
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.4
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Database :: Front-Ends
