A wrapper around PySide's QtWebKit library which helps developer create beautiful UI with HTML5, CSS and Javascript for standalone applications.
Project description
<h1>htmlPy</h1>
<h4>HTML5-CSS3-Javascript based GUI library in Python</h4>
<a href="https://travis-ci.org/amol-mandhane/htmlPy" class="badges" target="_blank">
<img src="https://img.shields.io/travis/amol-mandhane/htmlPy/master.svg">
</a>
<a href="https://pypi.python.org/pypi/htmlPy/" class="badges" target="_blank">
<img style="max-width:100%;" src="https://img.shields.io/pypi/v/htmlPy.svg">
</a>
<a href="https://pypi.python.org/pypi/htmlPy/" class="badges" target="_blank">
<img style="max-width:100%;" src="https://img.shields.io/pypi/dm/htmlPy.svg">
</a>
<br><br>
<p>htmlPy is a wrapper around <a href="https://pyside.org/" target="_blank">PySide</a>'s QtWebKit library. It helps with creating beautiful GUIs using <b>HTML5, CSS3 and Javascript</b> for standalone Python applications. It is built on <a href="http://qt.io/" target="_blank">Qt</a> which makes it highly <b>customizable and cross-platform</b>. htmlPy is compatible with both <b>Python2 and Python3</b>. It can be used with any python library or environment like <a href="https://www.djangoproject.com/" target="_blank">django</a>, <a href="http://flask.pocoo.org/" target="_blank">flask</a>, <a href="http://www.scipy.org/" target="_blank">scipy</a>, <a href="http://virtualenv.readthedocs.org/" target="_blank">virtualenv</a> etc. You can use front-end libraries and frameworks like <a href="http://getbootstrap.com/" target="_blank">bootstrap</a>, <a href="http://jquery.com/" target="_blank">jQuery</a>, <a href="http://jqueryui.com/" target="_blank">jQuery UI</a> etc. and create GUIs for your applications in no time.</p>
<h2>Documentation</h2>
<p>The documentation is hosted at <a href="http://htmlpy.readthedocs.org/">http://htmlpy.readthedocs.org/</a>. It contains <b>installation instructions, tutorials, reference guide</b>, compatibility details, and more.</p>
<h2>Example</h2>
<table style="width: 150%; margin-left: -25%;">
<tr>
<td>
<h3>Back-end <br> <small class="typewriter">back_end.py</small></h3>
<pre>
<code class="language-python">
import htmlPy
from main import app
class BackEnd(htmlPy.Object):
@htmlPy.Slot()
def say_hello_world():
app.html = u"Hello, world"
</code>
</pre></td>
<td>
<h3>GUI <br> <small class="typewriter">main.py</small></h3>
<pre>
<code class="language-python">
import htmlPy
from back_end import BackEnd
app = htmlPy.AppGUI(
title=u"Sample application")
app.maximized = True
app.bind(BackEnd())
app.template = ("index.html", {})
if __name__ == "__main__":
app.start()
</code>
</pre></td>
<td>
<h3>Front-end <br> <small class="typewriter">index.html</small></h3>
<pre>
<code class="language-markup highlight">
<html>
<body>
<a
href="BackEnd.say_hello_world"
data-bind="true">
Click to say "Hello, world"
</a>
</body>
</html>
</code>
</pre></td>
</tr>
</table>
<h2>Code</h2>
<p>htmlPy source code is hosted on <a href="https://github.com/amol-mandhane/htmlPy" target="_blank">GitHub</a>, tested on <a href="https://travis-ci.org/amol-mandhane/htmlPy" target="_blank">Travis CI</a> and released on <a href="https://pypi.python.org/pypi/htmlPy/" target="_blank">PyPI</a>.</p>
</div>
<h4>HTML5-CSS3-Javascript based GUI library in Python</h4>
<a href="https://travis-ci.org/amol-mandhane/htmlPy" class="badges" target="_blank">
<img src="https://img.shields.io/travis/amol-mandhane/htmlPy/master.svg">
</a>
<a href="https://pypi.python.org/pypi/htmlPy/" class="badges" target="_blank">
<img style="max-width:100%;" src="https://img.shields.io/pypi/v/htmlPy.svg">
</a>
<a href="https://pypi.python.org/pypi/htmlPy/" class="badges" target="_blank">
<img style="max-width:100%;" src="https://img.shields.io/pypi/dm/htmlPy.svg">
</a>
<br><br>
<p>htmlPy is a wrapper around <a href="https://pyside.org/" target="_blank">PySide</a>'s QtWebKit library. It helps with creating beautiful GUIs using <b>HTML5, CSS3 and Javascript</b> for standalone Python applications. It is built on <a href="http://qt.io/" target="_blank">Qt</a> which makes it highly <b>customizable and cross-platform</b>. htmlPy is compatible with both <b>Python2 and Python3</b>. It can be used with any python library or environment like <a href="https://www.djangoproject.com/" target="_blank">django</a>, <a href="http://flask.pocoo.org/" target="_blank">flask</a>, <a href="http://www.scipy.org/" target="_blank">scipy</a>, <a href="http://virtualenv.readthedocs.org/" target="_blank">virtualenv</a> etc. You can use front-end libraries and frameworks like <a href="http://getbootstrap.com/" target="_blank">bootstrap</a>, <a href="http://jquery.com/" target="_blank">jQuery</a>, <a href="http://jqueryui.com/" target="_blank">jQuery UI</a> etc. and create GUIs for your applications in no time.</p>
<h2>Documentation</h2>
<p>The documentation is hosted at <a href="http://htmlpy.readthedocs.org/">http://htmlpy.readthedocs.org/</a>. It contains <b>installation instructions, tutorials, reference guide</b>, compatibility details, and more.</p>
<h2>Example</h2>
<table style="width: 150%; margin-left: -25%;">
<tr>
<td>
<h3>Back-end <br> <small class="typewriter">back_end.py</small></h3>
<pre>
<code class="language-python">
import htmlPy
from main import app
class BackEnd(htmlPy.Object):
@htmlPy.Slot()
def say_hello_world():
app.html = u"Hello, world"
</code>
</pre></td>
<td>
<h3>GUI <br> <small class="typewriter">main.py</small></h3>
<pre>
<code class="language-python">
import htmlPy
from back_end import BackEnd
app = htmlPy.AppGUI(
title=u"Sample application")
app.maximized = True
app.bind(BackEnd())
app.template = ("index.html", {})
if __name__ == "__main__":
app.start()
</code>
</pre></td>
<td>
<h3>Front-end <br> <small class="typewriter">index.html</small></h3>
<pre>
<code class="language-markup highlight">
<html>
<body>
<a
href="BackEnd.say_hello_world"
data-bind="true">
Click to say "Hello, world"
</a>
</body>
</html>
</code>
</pre></td>
</tr>
</table>
<h2>Code</h2>
<p>htmlPy source code is hosted on <a href="https://github.com/amol-mandhane/htmlPy" target="_blank">GitHub</a>, tested on <a href="https://travis-ci.org/amol-mandhane/htmlPy" target="_blank">Travis CI</a> and released on <a href="https://pypi.python.org/pypi/htmlPy/" target="_blank">PyPI</a>.</p>
</div>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
htmlPy-2.0.3.tar.gz
(16.5 kB
view details)
Built Distribution
htmlPy-2.0.3-py2-none-any.whl
(17.5 kB
view details)
File details
Details for the file htmlPy-2.0.3.tar.gz
.
File metadata
- Download URL: htmlPy-2.0.3.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3156b217436bb229a597c2a5f66564d6174627ff4ac55b123ec9c146edcfc313 |
|
MD5 | b6bff31a79b2bc347e1897e8b16bb966 |
|
BLAKE2b-256 | 6f29af19f36618961c18d31da9dfa25b00bc062b36948cbb3c1ba0ed7ad39471 |
File details
Details for the file htmlPy-2.0.3-py2-none-any.whl
.
File metadata
- Download URL: htmlPy-2.0.3-py2-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aebfa3033e456fd406fce529153dd1536a11e4eb2aa068376a555923ba24ff98 |
|
MD5 | 6375749e06619415ddb30f8e582a7da5 |
|
BLAKE2b-256 | d11f7bc993618d846bbf0c757805bd0d2514b536fbe64ed3a40d9b959229b445 |