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

<script src="./definitions.py"/>
<script 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.13.tar.gz (51.9 kB view details)

Uploaded Source

Built Distribution

mypygui-0.0.13-py3-none-any.whl (71.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mypygui-0.0.13.tar.gz
  • Upload date:
  • Size: 51.9 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.13.tar.gz
Algorithm Hash digest
SHA256 f677fa1a5292e7ab38917f48516790229fb7cedc7b872e206e93b0ace3333031
MD5 f2458b473ae67cdd1cc45f3a1cc5714a
BLAKE2b-256 8b31f57ad2c24e8ed6d410b9edcc1cb62b1012eeb8c5a692dadb75cd8f66e711

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mypygui-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 71.1 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 8038e7099dcc0fbaa9d05fae52d41cb3f4792471edca2482634a48fe104c58ee
MD5 116be62175e0b60d62451abce8cc8f6f
BLAKE2b-256 2a46a803cee28db3f6acfb21d5ae779a63d24a6d65ddd260b3905e7262b0177f

See more details on using hashes here.

Supported by

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