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.6
Filename, size File type Python version Upload date Hashes
Filename, size wwidget-0.0.6-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wwidget-0.0.6.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page