python module introduce

本文介绍了多个Python Web开发工具和框架,包括FormAlchemy、ToscaWidgets、Repoze.what Quickstart、Repoze.who、SqlSoup、Rum、Sprox、RESTKit等,涵盖了表单生成、验证、身份验证、数据访问等多个方面,为开发者提供了丰富的选择。
摘要由CSDN通过智能技术生成

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:

posted on 2010-09-10 22:02  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2010/09/10/1823648.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值