{"repo":"codelv/enaml-web","free":true,"listed":false,"github":"https://github.com/codelv/enaml-web","clone":"git clone https://github.com/codelv/enaml-web.git","description":"Build interactive websites with enaml","language":"Python","stars":108,"topics":["enaml","lxml","python","web-components","web"],"license":"MIT","category":"ui-components","readme_excerpt":"Enaml Web # A web component toolkit for enaml that let's you build websites in python declaratively. You can use enaml-web to build \"interactive\" websites using python, enaml, and a few lines of simple javascript (see the simple pandas dataframe viewer example). The view state (dom) is stored on the server as an enaml view and interaction works by syncing changes between between the client(s) and server using websockets (or polling). To demonstrate, the following interaction is all handled with enaml-web Examples See the examples folder - www.codelv.com - Built entirely using enaml-web - SMD Component search - View and search a pandas dataframe Have a site? Feel free to share it! Why? It makes it easy to build websites without a lot of javascript. Short intro To use enaml web, you simply replace html tags with the enaml component (the capitalized tag name). For example: Calling render() on an instance of this enaml view then generates the html from the view. This is shown in the simple case of a static site generator: You can also use it in a request handler with your favorite web framework. For example with tornado web you can do something like this: So what's the advantage over plain html? It's as simple as html but it's python so you can, loop over lists, render conditionally, format variables, etc... Also, it's not just formatting a template, the server maintains the page state so you can interact with the page after it's rendered. This is something that no other python t","default_branch":null,"files":null,"tree":[],"storefront":"/r/codelv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codelv/enaml-web/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}