An open API service indexing awesome lists of open source software.

https://github.com/nandoflorestan/pytangular

Describe a web form in Python, have it generated in AngularJS
https://github.com/nandoflorestan/pytangular

Last synced: 4 months ago
JSON representation

Describe a web form in Python, have it generated in AngularJS

Awesome Lists containing this project

README

        

==========
pytangular
==========

**pytangular** is an open source,
`(MIT licensed) `_,
bridge between Python and AngularJS, such that a web form
specification (containing form fields etc.) can cross the language chasm.

Why?
====

Remember that, in software development, **repetition is the root of all evil**.
You already define your forms in the Python web server in order to validate
them. So you should not have to recreate the same forms in the client.

We support Python versions 3.5 and 3.6.

How does it work?
=================

pytangular has a Python component and a JS component with JSON communication
between them.

Basically, you define a web form in Python using the excellent
`Colander `_ schema generator.
Still in Python, you have pytangular serialize your schema to json.
Then you get the json in javascript and the js component of pytangular
creates an AngularJS template containing the web form.

Although pytangular can be used with any web framework, it is developed and
tested with Pyramid.

Retail rendering of the form is supported. I mean, you have the flexibility of putting fields where you want them.

TODO: Examples and how to use it.

Collaboration
=============

We are open to bug reports, feature requests, suggestions
and (especially) pull requests. Reach us at
https://github.com/nandoflorestan/pytangular/issues

Authors
=======

- Andre Malta Maia
- Nando Florestan