Metadata-Version: 2.1
Name: dazzler
Version: 0.1.0
Summary: Async Web Framework
Home-page: https://github.com/T4rk1n/dazzler
Author: Philippe Duval
Author-email: t4rk@outlook.com
License: MIT
Description: # Dazzler
        
        Dazzler is a Python (>=3.6) async web framework. 
        Create dazzling fast pages with a layout of python components and bindings to update from the backend.
        
        ## Install 
        
        Install with pip: `$ pip install dazzler `
        
        ## Basic example
        
        Create a page with a layout and assign a binding to set the output component
        children when clicked on.
        
        ```python
        from dazzler import Dazzler
        from dazzler.system import Page, Trigger, BindingContext
        from dazzler.components import core
        
        app = Dazzler(__name__)
        page = Page(
            'my-page',
            core.Container([
                core.Html('H2', 'My dazzler page'),
                core.Input(identity='input', placeholder='Enter name'),
                core.Button('Click me', identity='click-me'),
                core.Container(identity='output')
            ])
        )
        app.add_page(page)
        
        
        @page.bind(Trigger('click-me', 'clicks'))
        async def on_click(context: BindingContext):
            name = await context.get_aspect('input', 'value')
            await context.set_aspect(
                'output', children=f'Hello {name}'
            )
        
        
        if __name__ == '__main__':
            app.start()
        ```
        
Keywords: async,web,react,asyncio,aiohttp
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Description-Content-Type: text/markdown
Provides-Extra: redis
