一些用于金字塔中restful api开发的工具包。
pyramid_restful_toolkit的Python项目详细描述
一个用于金字塔中restful api开发的工具包。json呈现器
2。http身份验证策略(基本,摘要)
3。使用sqlalchemy的一些实用程序,cqlengine
----
api
----
代码块::python
config.include('pyramid_restful_toolkit')
添加json作为带有一些默认适配器的默认呈现程序。您可以通过“金字塔restful”工具包访问
为公共验证程序库添加一些错误处理程序,例如:formencode,
colander,schema。
只需包含tween
“金字塔restful”工具包。jsonice“uncaught”例外“tween”工厂。这是
通常在production.ini中使用的
http身份验证策略
只需包含它。
config.include(“pyramid_restful_toolkit.auth”)
config.include(“pyramid\u restful\u toolkit.auth.models.sqlalchemy”)
带有*development.ini*
pyramid\u restful\u toolkit.auth.dbsession=app.models.dbsession
使用*pyramid\u restful\u toolkit.auth.models.sqlalchemy.restfuluser*管理用户。它的表
名称是*rest_user*
----
更改日志
----
<1.1.1
===
*为datetime添加默认呈现程序。date
1.1.0
==
*添加python 3支持
*删除auth,移动到“金字塔httpauth(https://github.com/tarzanjw/pyramid-httpauth)”`
>1.0.3
==
*为cqlengine.columns.valuequoter、cqlengine.model.model添加默认的json呈现程序
<1.0.2
=
*为deform.validationfailure添加默认的错误处理程序支持
2。http身份验证策略(基本,摘要)
3。使用sqlalchemy的一些实用程序,cqlengine
----
api
----
代码块::python
config.include('pyramid_restful_toolkit')
添加json作为带有一些默认适配器的默认呈现程序。您可以通过“金字塔restful”工具包访问
为公共验证程序库添加一些错误处理程序,例如:formencode,
colander,schema。
只需包含tween
“金字塔restful”工具包。jsonice“uncaught”例外“tween”工厂。这是
通常在production.ini中使用的
http身份验证策略
只需包含它。
config.include(“pyramid_restful_toolkit.auth”)
config.include(“pyramid\u restful\u toolkit.auth.models.sqlalchemy”)
带有*development.ini*
pyramid\u restful\u toolkit.auth.dbsession=app.models.dbsession
使用*pyramid\u restful\u toolkit.auth.models.sqlalchemy.restfuluser*管理用户。它的表
名称是*rest_user*
----
更改日志
----
<1.1.1
===
*为datetime添加默认呈现程序。date
1.1.0
==
*添加python 3支持
*删除auth,移动到“金字塔httpauth(https://github.com/tarzanjw/pyramid-httpauth)”`
>1.0.3
==
*为cqlengine.columns.valuequoter、cqlengine.model.model添加默认的json呈现程序
<1.0.2
=
*为deform.validationfailure添加默认的错误处理程序支持