Skip to main content

Bottle Manage

Bottle Manage – Short description.

Build Status Coverals http://img.shields.io/pypi/v/bottle-manage.svg?style=flat-square http://img.shields.io/pypi/dm/bottle-manage.svg?style=flat-square Donate

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.

Metadata

Release files for bottle-manage 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bottle-manage 0.2.2
File Size Uploaded
bottle-manage-0.2.2.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bottle-manage 0.2.2
File Interpreter ABI Platform
bottle_manage-0.2.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.4 kB

Release files / bottle-manage-0.2.2.tar.gz

Download URL bottle-manage-0.2.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f2af090be7d5c2e48624cdeed3e8bba356b9f6e96ee292694d28ecb9a642b956
BLAKE2b-256 checksum
How to use checksums
4f5a04a8a6d7f3385c3c8da9435a7e20182e50bf1897b3a5562d838e32e4fb17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bottle_manage-0.2.2-py2.py3-none-any.whl

Download URL bottle_manage-0.2.2-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a1d3a0809bdb882b5eabb0519a6fb3c163e0ae767175399d1d0c806b40dc1abb
BLAKE2b-256 checksum
How to use checksums
2637c7c2cb2ac0538fb598fca095b239a90015c7b6fe8987fcf4fa2a9ad67e0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page