This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.0 KiB

ViUR html5

html5 is a DOM-abstraction layer and API that is used to create client-side Web-Apps running in the browser and written in Python.

Look here for a short introduction.

About

This API and framework is used to implement HTML5 web-apps using the Python programming language. The framework is an abstraction layer for a DOM running in Pyodide, a Python 3 interpreter compiled to web-assembly.

It provides

  • class abstraction for all HTML5-DOM-elements, e.g. html5.Div()
  • a built-in HTML parser and executor to generate DOM objects from HTML-code
  • helpers for adding/removing classes, arrange children, handling events etc.

The most prominent software completely established on this library is ViUR-vi, the visual administration interface for ViUR-based applications.

ViUR is a free software development framework for the Google App Engine.

Quick Start

Warning: This section is incomplete, a working example will follow soon!

import html5

class Game(html5.Div):
	def __init__(self):
		super().__init__(
        """
            <label>
                Your Name:
                <input [name]="myInput" type="text" placeholder="Name">
            </label>
            
            <h1>Hello <span [name]="mySpan" class="name">Enter Name</span>!</h1>
        """)
		self.sinkEvent("onChange")

	def onChange(self, event):
		if html5.utils.doesEventHitWidgetOrChildren(event, self.myInput):
			self.mySpan.appendChild(self.myInput["value"], replace=True)

Game()

Contributing

We take a great interest in your opinion about ViUR. We appreciate your feedback and are looking forward to hear about your ideas. Share your visions or questions with us and participate in ongoing discussions.

Credits

ViUR is developed and maintained by Mausbrand Informationssysteme GmbH, from Dortmund in Germany. We are a software company consisting of young, enthusiastic software developers, designers and social media experts, working on exciting projects for different kinds of customers. All of our newer projects are implemented with ViUR, from tiny web-pages to huge company intranets with hundreds of users.

Help of any kind to extend and improve or enhance this project in any kind or way is always appreciated.

License

Copyright (C) 2012-2020 by Mausbrand Informationssysteme GmbH.

Mausbrand and ViUR are registered trademarks of Mausbrand Informationssysteme GmbH.

You may use, modify and distribute this software under the terms and conditions of the GNU Lesser General Public License (LGPL). See the file LICENSE provided within this package for more information.