Skip to main content

A package to fast embed HTML snippets to any websites or applications

Project description

WWIDGET

This package is to fast embed html snippets to any web application

WWIDGET Usage

from wwidget.login.login import LoginWidget

tpl = LoginWidget(
    template='a_login.html',
    username={
        'required': True,
        'id': 'username'
    },
    password={
        'required': True
    },
    button={
        'value': 'Sign in'
    },
    form_attrs={}
)

tpl.output

Options

  • form_attrs: supports any attributes
  • action: if not set empty url is taken as default
  • method: if not set POST is taken as default
  • username, password: as a dictionary holding required, id, class
  • button: as a dictionary holding value, type, class, id, name, style

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

wwidget-0.0.7.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

wwidget-0.0.7-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file wwidget-0.0.7.tar.gz.

File metadata

  • Download URL: wwidget-0.0.7.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for wwidget-0.0.7.tar.gz
Algorithm Hash digest
SHA256 8dd7552b15041d6d2c2854c859102e255492ab238d7f69a9068c0337091f4fcc
MD5 330c57a4984e1ecfcdb688f127fc0f3b
BLAKE2b-256 b00b57ba9888ba8f28d7f271c97971688e540bd1c9ff92beacb91308632e8500

See more details on using hashes here.

File details

Details for the file wwidget-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: wwidget-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for wwidget-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c47ab493b10923a44a91730fbcfa90754c14b69f4bbf183187769b8656de0287
MD5 6cd5b96e8fc0ee1aa7a34797cfc1ed5d
BLAKE2b-256 7ec1f07b48fc9540de05b547b4a8f4f06cf7f32bb37102633e55adfd4c447c55

See more details on using hashes here.

Supported by

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