Metadata-Version: 2.4
Name: tw2.core
Version: 2.3.0
Summary: The runtime components for ToscaWidgets 2, a web widget toolkit.
Home-page: http://toscawidgets.org/
Download-URL: https://pypi.python.org/pypi/tw2.core/
Author: Paul Johnston, Christopher Perkins, Alberto Valverde Gonzalez & contributors
Author-email: toscawidgets-discuss@googlegroups.com
License: MIT
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Environment :: Web Environment :: ToscaWidgets
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
Classifier: Topic :: Software Development :: Widget Sets
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
License-File: LICENSE.txt
Requires-Dist: WebOb>=0.9.7
Requires-Dist: PasteDeploy
Requires-Dist: speaklater
Requires-Dist: decorator
Requires-Dist: markupsafe
Requires-Dist: six
Provides-Extra: genshi
Requires-Dist: Genshi>=0.3.5; extra == "genshi"
Provides-Extra: mako
Requires-Dist: Mako>=0.1.1; extra == "mako"
Provides-Extra: jinja
Requires-Dist: jinja2; extra == "jinja"
Provides-Extra: kajiki
Requires-Dist: kajiki>=0.5.0; extra == "kajiki"
Provides-Extra: chameleon
Requires-Dist: chameleon; extra == "chameleon"
Provides-Extra: test
Requires-Dist: nose; extra == "test"
Requires-Dist: sieve; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: Formencode>=1.3.0; extra == "test"
Requires-Dist: Genshi>=0.3.5; extra == "test"
Requires-Dist: Mako>=0.1.1; extra == "test"
Requires-Dist: jinja2; extra == "test"
Requires-Dist: kajiki>=0.5.0; extra == "test"
Requires-Dist: chameleon; extra == "test"
Requires-Dist: WebTest; extra == "test"
Provides-Extra: tests
Requires-Dist: nose; extra == "tests"
Requires-Dist: sieve; extra == "tests"
Requires-Dist: coverage; extra == "tests"
Requires-Dist: Formencode>=1.3.0; extra == "tests"
Requires-Dist: Genshi>=0.3.5; extra == "tests"
Requires-Dist: Mako>=0.1.1; extra == "tests"
Requires-Dist: jinja2; extra == "tests"
Requires-Dist: kajiki>=0.5.0; extra == "tests"
Requires-Dist: chameleon; extra == "tests"
Requires-Dist: WebTest; extra == "tests"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: download-url
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

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
------------

.. |travis-master| image:: https://secure.travis-ci.org/toscawidgets/tw2.core.png?branch=master
   :alt: Build Status - master branch
   :target: http://travis-ci.org/#!/toscawidgets/tw2.core

.. |travis-develop| image:: https://secure.travis-ci.org/toscawidgets/tw2.core.png?branch=develop
   :alt: Build Status - develop branch
   :target: http://travis-ci.org/#!/toscawidgets/tw2.core

.. |coveralls-master| image:: https://coveralls.io/repos/toscawidgets/tw2.core/badge.svg?branch=master&service=github
   :alt: Test Coverage - master branch
   :target: https://coveralls.io/github/toscawidgets/tw2.core?branch=master

.. |coveralls-develop| image:: https://coveralls.io/repos/toscawidgets/tw2.core/badge.svg?branch=develop&service=github
   :alt: Test Coverage - develop branch
   :target: https://coveralls.io/github/toscawidgets/tw2.core?branch=develop

+--------------+------------------+---------------------+
| Branch       | Build Status     | Test Coverage       |
+==============+==================+=====================+
| **master**   | |travis-master|  | |coveralls-master|  |
+--------------+------------------+---------------------+
| **develop**  | |travis-develop| | |coveralls-develop| |
+--------------+------------------+---------------------+

Documentation
-------------

Documentation is hosted at `ReadTheDocs <http://tw2core.rtfd.org>`_.
