No project description provided
Project description
Bottle Peewee – Provide Peewee ORM integration to Bottle framework.
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.2.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file bottle-peewee-0.1.2.tar.gz
.
File metadata
- Download URL: bottle-peewee-0.1.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d766a61197665116966c1332b40cb0f336c9d77585a188b8e628752fec3b09 |
|
MD5 | 1dbe4d57e5f753646e5987369f129e34 |
|
BLAKE2b-256 | 343873668b7451b0d630ebfde194fda9ef4ea57b775569ca1b7ed597b055b5e6 |
File details
Details for the file bottle_peewee-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_peewee-0.1.2-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 | 5c72bd2a08ef681a1628188c8fe8bd66d35efa94dbd0e4feb25dd29a4a9dbb78 |
|
MD5 | f0987f241fd89e3fe09faa4b7b58aaa7 |
|
BLAKE2b-256 | 320a8d06b3e8fa31983bca31e6ce9f8ecba56bd0bdb75b7d3b3edc705a3b01c3 |