未提供项目描述
项目描述
瓶体管理 - 简短描述。
要求
python >= 2.6
安装
瓶体管理 应使用pip安装
pip install bottle-manage
使用
manage.py:
from bottle import Bottle from bottle_manage import Manage app = Bottle() manage = Manage(app) @manage.shell def context(): from .models import Partner, Record, db # noqa ctx = locals() ctx['app'] = app ctx['db'] = db.database return ctx @manage.command def db(): """ Initialize the database.""" from peewee_migrate.core import Router router = Router( os.path.join(app.config['ROOT_DIR'], 'migrations'), DATABASE=app.config['DATABASE_URI']) router.run() @manage.command def runserver(reloader=False, debug=False, port=5000): """ Run the application. """ app.run(reloader=reloader, debug=debug, port=port) if __name__ == '__main__': manage()
$ ./manage.py --help
错误跟踪器
如果您有任何建议、错误报告或烦恼,请向https://github.com/klen/bottle-manage/issues 的问题跟踪器报告。
贡献
瓶体管理的开发发生在:https://github.com/klen/bottle-manage
贡献者
klen (Kirill Klenov)
许可协议
在BSD许可协议 下授权。
项目详情
关闭
bottle-manage-0.2.2.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f2af090be7d5c2e48624cdeed3e8bba356b9f6e96ee292694d28ecb9a642b956 |
|
MD5 | b4931363f0d151eff0fb388b8604b027 |
|
BLAKE2b-256 | 4f5a04a8a6d7f3385c3c8da9435a7e20182e50bf1897b3a5562d838e32e4fb17 |
关闭
bottle_manage-0.2.2-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | a1d3a0809bdb882b5eabb0519a6fb3c163e0ae767175399d1d0c806b40dc1abb |
|
MD5 | 497f3f1267ba773b3d7a946794f7832d |
|
BLAKE2b-256 | 2637c7c2cb2ac0538fb598fca095b239a90015c7b6fe8987fcf4fa2a9ad67e0d |