Skip to main content

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.

Metadata

Release files for bottle-peewee 0.1.5

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-peewee 0.1.5
File Size Uploaded
bottle-peewee-0.1.5.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / bottle-peewee-0.1.5.tar.gz

Download URL bottle-peewee-0.1.5.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c20dec29701eed9d74ccc793f73f25153dc9426762be3a76ad064c7bc964c381
BLAKE2b-256 checksum
How to use checksums
248a50c4a1a747d948c22ffb7fd031088e38d5ad72c5e7718aacc292680ca496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bottle_peewee-0.1.5-py2.py3-none-any.whl

Download URL bottle_peewee-0.1.5-py2.py3-none-any.whl
Size 4.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
74ed3a0a619c9d4655f57984dd8b2f4e470bc9fdb5076362aed02d2efb434db4
BLAKE2b-256 checksum
How to use checksums
3c96f554881e3f78ad3165562bd42907c2e5bfa0eff9727c8282897435c05644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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