No project description provided
Project description
Bottle Manage – Short description.
Requirements
python >= 2.6
Installation
Bottle Manage should be installed using pip:
pip install bottle-manage
Usage
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
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/bottle-manage/issues
Contributing
Development of Bottle Manage happens at: https://github.com/klen/bottle-manage
Contributors
klen (Kirill Klenov)
License
Licensed under a BSD license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bottle-manage-0.2.1.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file bottle-manage-0.2.1.tar.gz
.
File metadata
- Download URL: bottle-manage-0.2.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f34d2289c9d857f2fb2a74905b0efa1ac828230b873c35f05de1eb2c8ad083df |
|
MD5 | 0548bfb89bcf06eadb01093615a2084a |
|
BLAKE2b-256 | 2f19471521c0b00da9dd90a24d57f15302731b8c62765d38c125a1a96befc5d7 |
File details
Details for the file bottle_manage-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_manage-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd93498e980a900c8dd4868440585dad98ba1c8cccd6c0e71c3b1ef26f560740 |
|
MD5 | c7803319350209271d79f1ed34c4bd05 |
|
BLAKE2b-256 | 4829f1f0286471f4ae337528e19b75cc7eaa0a0ddb8074aac28a9d1ba74bc19b |