Metadata-Version: 1.1
Name: torsession
Version: 0.1.2
Summary: An asynchronous session backend with mongodb for tornado
Home-page: https://github.com/shiyanhui/torsession
Author: Lime YH.Shi
Author-email: shiyanhui66@gmail.com
License: http://www.apache.org/licenses/LICENSE-2.0
Description: ==========
        Torsession
        ==========
        
        :Info: Torsession is an asynchronous session backend with Mongodb for Tornado
        :Author: Lime YH.Shi
        
        .. image:: https://pypip.in/v/torsession/badge.png
                :target: https://crate.io/packages/torsession
        
        .. image:: https://pypip.in/d/torsession/badge.png
                :target: https://crate.io/packages/torsession
        
        
        Installation
        ============
            
        .. code-block:: bash
        
            $ pip install git+https://github.com/mongodb/motor.git
            $ pip install torsession
            
        Dependencies
        ============
        
        * tornado 3+
        * motor 0.1+
        
        Example
        =======
        
        1. Create a new session after login::
        
            yield session.new_session()
        
        2. Clear current session when logout::
        
            yield session.delete_session()
        
        3. Get a value::
        
            yield session.get(key)
        
        4. Set a value::
        
            yield session.set(key, value)
        
        5. Delete a value::
        
            yield session.delete(key)
        
        6. Refresh session id::
        
            yield session.refresh_session()
        
        7. Get session id::
        
            session.session_id
        
        8. Set session id::
        
            session.session_id = new_session_id
            
Keywords: torsession,mongo,mongodb,motor,session,backend,tornado,asynchronous
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Natural Language :: English
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.3
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation :: CPython
