没有项目描述

bottle-peewee的Python项目详细描述


bottle peewee–提供与bottle框架的peewee orm集成。

Build StatusCoveralshttp://img.shields.io/pypi/v/bottle-peewee.svg?style=flat-squarehttp://img.shields.io/pypi/dm/bottle-peewee.svg?style=flat-squareDonate

Requirements

  • python=2.6

Installation

bottle peewee应该使用pip安装:

pip install bottle-peewee

Usage

from bottle import Bottle
from bottle_peewee import PeeweePlugin
from peewee import Model, CharField

app = Bottle()
db = PeeweePlugin('sqlite:///:memory:')

class User(Model):
    name = CharField()

    class Meta(object):
        database = db.proxy

app.install(db)

db.database.create_table(User)
User.create(name='test')
assert [user for user in User.select()]

Configuration

peewee_connection–到数据库的连接字符串

Bug tracker

如果您有任何建议、错误报告或 烦恼请向问题追踪者报告 在https://github.com/klen/bottle-peewee/issues

Contributors

  • klen(基里尔·克莱诺夫)

License

根据BSD license授权。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
有没有一种方法可以将不同的java web应用程序组合到一个web应用程序(war)中而不相互影响?   java一次屏蔽两位   java如何在多个类上初始化元素?   java在后台服务中处理通知或使用GCM(或其他推送通知服务)   java从const方法调用JNI函数   javascript如何使用函数/方法返回?   Java优化:声明类变量与使用临时变量   java字符算术基数8 vs基数10   Java流收集要存储的对象列表   swing我正在用Java中的keyListener制作一个精灵移动器   在Gradle构建脚本中使用Scala(或java)方法   java Android Mediaplayer下一步按钮不起作用   Java Sound API在播放音频文件后将其锁定   java将变量从外部类传递到内部类的最佳方法   使用play framework的博客web应用程序出现java逻辑错误   java我们可以在Spring批处理中处理大型zip文件吗?   java如何检查JTable的选定行的特定列中的值是否已经在JList中?