Skip to main content

No project description provided

Project description

Bottle Peewee – Provide Peewee ORM integration to Bottle framework.

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

Requirements

  • python >= 2.6

Installation

Bottle Peewee should be installed using pip:

pip install bottle-peewee

Usage

from bottle import Bottle
from bottle_peewee import PeeweePlugin
from peewee import Model, CharField

app = Bottle()
db = PeeweePlugin('sqlite:///:memory:')

class User(Model):
    name = CharField()

    class Meta(object):
        database = db.proxy

app.install(db)

db.database.create_table(User)
User.create(name='test')
assert [user for user in User.select()]

Configuration

PEEWEE_CONNECTION – A connection string to database

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/bottle-peewee/issues

Contributing

Development of Bottle Peewee happens at: https://github.com/klen/bottle-peewee

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-peewee-0.1.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

bottle_peewee-0.1.4-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bottle-peewee-0.1.4.tar.gz.

File metadata

File hashes

Hashes for bottle-peewee-0.1.4.tar.gz
Algorithm Hash digest
SHA256 332e1410b7b3d8dd0c39b13af3f2fb25603b15677cb91108005866f3fcf587b3
MD5 6934f2e64ebe0694cdef36edc72866e2
BLAKE2b-256 3298f336a033dcefa04efe5a9f1fdab38de98ad4022ba2dadc44a0b082447697

See more details on using hashes here.

File details

Details for the file bottle_peewee-0.1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bottle_peewee-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cda93fb3e51512617802c2b3febf470073add6e15b939e6ad307c5cc0985493a
MD5 4ef07f9cb20196a23f3c5ad04876eb52
BLAKE2b-256 0b954d8a7da13c351c02177fee18e2e38939670c81265d8fb3ed744de55b5796

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page