Skip to main content

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


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.17.tar.gz (52.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mypygui-0.0.17-py3-none-any.whl (71.5 kB view details)

Uploaded Python 3

File details

Details for the file mypygui-0.0.17.tar.gz.

File metadata

  • Download URL: mypygui-0.0.17.tar.gz
  • Upload date:
  • Size: 52.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for mypygui-0.0.17.tar.gz
Algorithm Hash digest
SHA256 c735d45fcfce4be207e8c170c7b1c8db6c728f84c4714f5168d2ea086b1076d5
MD5 d9751a3d4884dd7eb095b0f9edeb259e
BLAKE2b-256 35ea94385c3d61bfdceaf7fd2d1babf2269370e28f59cf1ee0e1026d02affd79

See more details on using hashes here.

File details

Details for the file mypygui-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: mypygui-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 71.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for mypygui-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 5684a3db330523174426e3651003abea6cc7d583e42c389383b98fdabc431e5b
MD5 65d112290095b0806c7cc38f1184f786
BLAKE2b-256 12e24e083e0467c63c078d735f0a7f79672272d69c3d3827992dea02cfda52c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page