Giter Site home page Giter Site logo

phorward / viur-html5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from viur-framework/html5

1.0 1.0 0.0 204 KB

Framework for writing HTML5 web-apps in Python (using Pyodide, and formerly PyJS)

License: GNU Lesser General Public License v3.0

Python 100.00%

viur-html5's Introduction

ViUR html5

html5 is a HTML5-DOM library that has been written in Python.

About

This library serves as a DOM-toolkit for writing HTML5 web-apps using the Python programming language.

The most prominent software completely implemented using 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.

Prerequisites

This library currently works with PyJS, a Python-to-JavaScript transpiling framework.

We're also working on a Python 3 port to run with pyodide.

Quick Start

Let's create a simple game app!

import html5, pyjd

class game(html5.Div):
	def __init__(self, *args, **kwargs):
		super(game, self).__init__()
		self.sinkEvent("onChange")

		self.fromHTML(
		"""
			<label>
				Your Name:
				<input [name]="myInput" type="text" placeholder="Name">
			</label>

			<h1>Hello <span [name]="mySpan" class="name">Enter Name</span>!</h1>
		""")

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

if __name__ == '__main__':
	pyjd.setup()
	html5.Body().appendChild(game())
	pyjd.run()

Just compile it with

$ pyjsbuild game.py

Contributing

We take great interest in your opinion about ViUR. We appreciate your feedback and are looking forward to hear about your ideas. Share your vision 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-2019 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.

viur-html5's People

Contributors

achimschumacher avatar phorward avatar sveneberth avatar xnopasaranx avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.