python module introduce

http://www.formencode.org/

FormEncode is a validation and form generation package. The validation can be used separately from the form generation. The validation works on compound data structures, with all parts being nestable. It is separate from HTTP or any other input mechanism.

formalchemy

http://code.google.com/p/formalchemy/

Introduction

FormAlchemy greatly speeds development with SQLAlchemy mapped classes (models) in a HTML forms environment.

FormAlchemy eliminates boilerplate by autogenerating HTML input fields from a given model. FormAlchemy will try to figure out what kind of HTML code should be returned by introspecting the model's properties and generate ready-to-use HTML code that will fit the developer's application.

Of course, FormAlchemy can't figure out everything, i.e, the developer might want to display only a few columns from the given model. Thus, FormAlchemy is also highly customizable. 

tw.forms Documentation

tw.forms is a set of ToscaWidgets for building HTML forms. It allows a web developer to quickly develop forms that support server-side validation, and report clear error messages to users. Validation is done using FormEncode, a validation library. As well as widgets for the basic HTML form fields, tw.forms includes some more advanced widgets, such as tw.forms.calendars.CalendarDatePicker.

To get started, read Building a Form with tw.forms. For more detailed reference documentation, read the Module Reference.

http://toscawidgets.org/

Camelot is an open source RAD framework that leverages Python, Sqlalchemy and Qt to build rich desktop applications. Many built in features make applications built with Camelot user and developer friendly.

The repoze.what Quickstart plugin

Author:Gustavo Narea.
Latest release:1.0.8

Overview

This plugin allows you to take advantage of a rather simple, and usual, authentication and authorization setup, in which the users’ data, the groups and the permissions used in the application are all stored in a SQLAlchemy or Elixir-managed database.

Put simply, it configures repoze.who and repoze.what in one go so that you can have an authentication and authorization system working quickly – hence the name.

http://what.repoze.org/docs/plugins/quickstart/

repoze.who – WSGI Authentication Middleware

Author:Chris McDonough / Tres Seaver
Version:2.0a2

Overview

repoze.who is an identification and authentication framework for arbitrary WSGI applications. It acts as WSGI middleware.

repoze.who is inspired by Zope 2’s Pluggable Authentication Service (PAS) (but repoze.who is not dependent on Zope in any way; it is useful for any WSGI application). It provides no facility for authorization (ensuring whether a user can or cannot perform the operation implied by the request). This is considered to be the domain of the WSGI application.

It attempts to reuse implementations from paste.auth for some of its functionality.

Introduction

SqlSoup provides a convenient way to access database tables without having to declare table or mapper classes ahead of time.

Suppose we have a database with users, books, and loans tables (corresponding to the PyWebOff dataset, if you're curious). For testing purposes, we'll create this db as follows:

Welcome to Rum

Rum is a framework to develop CRUD web applications, usually used in the "admin" back-end of a website. Are you tired of implementing over and over again those boring forms so the maintainers of a site can update their content? Rum can help you develop them faster and with fewer bugs so you can concentrate on the fun and creative stuff which your clients will pay you for.

Rum is written in the Python programming language and can be plugged into any server or web-application that implements the WSGI API.

It has a pluggable architecture so different data back-ends and user interfaces can be mixed and matched. There's currently only one data back-end implemented to support SQLAlchemy mapped classes and one "static html" user interface which uses tw.forms. There's an AJAX client using Dojo in the works... stay tuned.

Rum is already being used in production as the admin backend of several sites

Sprox is a widget generation library that has a slightly different take on the problem of creating custom web content directly from database schemas. Sprox provides an easy way to create forms for web content which are: automatically generated, easy to customize, and validated. Sprox also has powerful tools to help you display your content the way you want to with table and record viewers. Sprox provides a way to fill your widgets, whether they are forms or other content with customizable data.

http://jimmyg.org/work/code/formbuild/3.0.1/manual.html#introduction

Here are some alternatives:

  • If you want forms generated automatically from SQLAlchemy schema try FormAlchemy.
  • If you want combined validators and fields, try ToscaWidgets.
  • If you just want some helpers to generate the HTML for you try WebHelpers.

Welcome to RESTKit’s documentation!

Restkit is an HTTP resource kit for Python. It allows you to easily access to HTTP resource and build objects around it. It’s the base of couchdbkit a Python CouchDB framework.

You can simply use request function to do any HTTP requests.

Usage example, get a friendpaste paste:

原文地址:https://www.cnblogs.com/lexus/p/1823648.html