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.

Files for wwidget, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size wwidget-0.0.7-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wwidget-0.0.7.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page