Metadata-Version: 1.1
Name: leonardo-channels
Version: 0.0.2
Summary: Channels for Leonardo CMS.
Home-page: https://github.com/leonardo-modules/leonardo-channels
Author: Michael Kuty
Author-email: 6du1ro.n@gmail.com
License: UNKNOWN
Description: ==========================
        Leonardo leonardo-channels
        ==========================
        
        Channels for Leonardo CMS. As an example this module has implemented django-messages.
        
        .. contents::
            :local:
        
        Installation
        ------------
        
        .. code-block:: bash
        
            pip install leonardo-channels
        
        Integrate
        ---------
        
        .. code-block:: javascript
        
            var basepath = "ws://" + window.location.hostname + ":" + window.location.port;
        
            socket = new WebSocket(basepath + "/messages?session_key={{ request.session.session_key }}");
        
            /* Bind django-messages */
            socket.onmessage = function(e) {
                msg = JSON.parse(e.data)
                horizon.alert(msg.level, msg.message, msg.extra_tags)
            }
        
        Use from python
        
        .. code-block:: python
        
            from leonardo_channels import router
            router.route("websocket.connect", ws_add)
            router.include("websocket.myroutes", path=r"/chat")
        
        Use channels for messages
        
        .. code-block:: python
        
            from leonardo_channels.messages import add_message
            add_message(user, level, message)
        
        
        Read More
        =========
        
        * https://github.com/django-leonardo/django-leonardo
        
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
