Render basic html in python
Project description
mypygui
github repo: https://github.com/Dragon-KK/mypygui
documentation: https://dragon-kk.github.io/mypygui/
Dependencies
- python >= 3.10
- pillow >= 9.1.0
- tinycss2 >= 1.1.1
- webcolors >= 1.12
- colorama >= 0.4.4
- requests >= 2.28.1
html
Any element that isn't supported will be treated like a div
Supported elements
- input
- img
- span
NOTE: Only text inside span elements are shown
CSS
NOTE: currently some of the supported css properties may not work exactly according to the spec
A list of all supported css properties
background-color
border-width
border-bottom-left-radius
border-bottom-right-radius
border-top-left-radius
border-top-right-radius
border-style
border-color
color
display
position
z-index
visibility
box-sizing
top
right
bottom
left
aspect-ratio
height
width
max-heigth
max-width
min-height
min-width
font-family
font-size
font-weight
font-variant
margin-bottom
margin-left
margin-right
margin-top
padding-bottom
padding-left
padding-right
padding-top
transform-origin-x
transform-origin-y
overflow-x
overflow-y
Script
All scripts will be executed globally Some dom apis will be given to the scripts
<pyscript src="./definitions.py"/>
<pyscript src="./myscript.py"/>
eg: myscript.py
document.get_element_by_id('my-elem')
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
mypygui-0.0.15.tar.gz
(52.1 kB
view details)
Built Distribution
mypygui-0.0.15-py3-none-any.whl
(71.3 kB
view details)
File details
Details for the file mypygui-0.0.15.tar.gz
.
File metadata
- Download URL: mypygui-0.0.15.tar.gz
- Upload date:
- Size: 52.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7e4738e3849a3707102e63ead533251186dbc92d08e4b714e95d4a264298ed3 |
|
MD5 | 6e8f8659ee9fbdddbe4d675bfe964197 |
|
BLAKE2b-256 | 826d0b1a6dbaab2381fbae4edd45df6345ea88128aa3c11237b78b87031b8123 |
File details
Details for the file mypygui-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: mypygui-0.0.15-py3-none-any.whl
- Upload date:
- Size: 71.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a8618ebaa4dd983d18898943401ba6365281c5b8f06a855030786ea1cb8995 |
|
MD5 | da1ce4407717e9a46a867a55dba45c99 |
|
BLAKE2b-256 | c6b095a89d1fc53e3d387bc44f1cca2c4201b4c9e6b91acb112df0bb90ca3d1b |