No project description provided
Project description
Bottle Manage – Short description.
Docs are available at https://bottle-manage.readthedocs.org/. Pull requests with documentation enhancements and/or fixes are awesome and most welcome.
Requirements
python >= 2.6
Installation
Bottle Manage should be installed using pip:
pip install bottle-manage
Usage
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
Built Distribution
File details
Details for the file bottle-manage-0.2.0.tar.gz
.
File metadata
- Download URL: bottle-manage-0.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42895aae84e787203da69bbc6cb7b8532c52116d4bb5743311a90f3c24f76d0a |
|
MD5 | 2da926939f30e9d2ce79f4acf469c2ce |
|
BLAKE2b-256 | ea319d309cbae1cd6e2a406b523c372c20841932ed0f9f3aadfcf42968cee469 |
File details
Details for the file bottle_manage-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_manage-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de44c12d0933ebb57680454df3159efdbcf5c329201d28a503248874b6d5027 |
|
MD5 | 8f33b906c509dfa42fb70e601e8d2f29 |
|
BLAKE2b-256 | ac8510ae590c5f6051d875716d2e1659fb7395b31a6d224db6e957f2b36d0aac |