Skip to main content

ToscaWidgets is a web widget toolkit for Python to aid in the creation, packaging and distribution of common view elements normally used in the web:

import tw2.core as twc

class HelloWidget(twc.Widget):
    inline_engine_name = "kajiki"
    template = """
        <i>Hello ${w.name}</i>
    """

    name = twc.Param(description="Name of the greeted entity")

>>> HelloWidget(name="World").display()
<i>Hello World</i>

The tw2.core package is lightweight and provides the runtime of ToscaWidgets, all machinery related to forms is provided by tw2.forms:

import tw2.core as twc
import tw2.forms as twf

class MovieForm(twf.Form):
    class child(twf.TableLayout):
        title = twf.TextField()
        director = twf.TextField(value='Default Director')
        genres = twf.SingleSelectField(options=['Action', 'Comedy', 'Romance', 'Sci-fi'])

    action = '/save_movie'

Build Status

Branch

Build Status

Test Coverage

master

Build Status - master branch

Test Coverage - master branch

develop

Build Status - develop branch

Test Coverage - develop branch

Documentation

Documentation is hosted at ReadTheDocs.

Metadata

Release files for tw2.core 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tw2.core 2.3.0
File Size Uploaded Provenance Actions
tw2.core-2.3.0.tar.gz 235.9 kB Without provenance Details for tw2.core-2.3.0.tar.gz

Release files / tw2.core-2.3.0.tar.gz

Download URL tw2.core-2.3.0.tar.gz
Size 235.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c321f410354005e33d11c3982ac532f763761d6a476386ec02cbdccd955e7e6c
BLAKE2b-256 checksum
How to use checksums
84d60a4754daf32a1409aa9dd785a88c36c3f3d80a5c72a602ed4262ab179a7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for tw2.core 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page