Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

This version
History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
bottle_manage-0.2.2-py2.py3-none-any.whl
(5.2 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Feb 24, 2015
bottle-manage-0.2.2.tar.gz
(4.3 kB) Copy SHA256 Hash SHA256
Source None Feb 24, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting