未提供项目描述
项目描述
Bottle Peewee – 为Bottle框架提供Peewee ORM集成。
要求
python >= 2.6
安装
Bottle Peewee 应使用pip安装
pip install bottle-peewee
使用
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()]
配置
PEEWEE_CONNECTION – 数据库连接字符串
错误跟踪器
如果您有任何建议、错误报告或烦恼,请向https://github.com/klen/bottle-peewee/issues的issue tracker报告
贡献
Bottle Peewee的开发发生在: https://github.com/klen/bottle-peewee
贡献者
klen (Kirill Klenov)
许可证
在BSD许可证下授权。
项目详情
关闭
bottle-peewee-0.1.5.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c20dec29701eed9d74ccc793f73f25153dc9426762be3a76ad064c7bc964c381 |
|
MD5 | ec5f8ba997ba8478e056e87775174cca |
|
BLAKE2b-256 | 248a50c4a1a747d948c22ffb7fd031088e38d5ad72c5e7718aacc292680ca496 |
关闭
bottle_peewee-0.1.5-py2.py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 74ed3a0a619c9d4655f57984dd8b2f4e470bc9fdb5076362aed02d2efb434db4 |
|
MD5 | 83feb2cec31063dcdb7279c97136a5d3 |
|
BLAKE2b-256 | 3c96f554881e3f78ad3165562bd42907c2e5bfa0eff9727c8282897435c05644 |