没有项目描述
bottle-peewee的Python项目详细描述
bottle peewee–提供与bottle框架的peewee orm集成。
Requirements
- python=2.6
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授权。