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.3.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file bottle-peewee-0.1.3.tar.gz
.
File metadata
- Download URL: bottle-peewee-0.1.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c634cfb23524b7ec90cf508bd21d0b74b4d81fa0ff35701e0d601032318da9 |
|
MD5 | b5d738272f0f1cfdbe0942dcd8153494 |
|
BLAKE2b-256 | d8f1e1cc93abf1e07ab09165f59a247c6a1e7eff295ed00dfd79b9af6ce226f1 |
File details
Details for the file bottle_peewee-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_peewee-0.1.3-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 | 9d358a12cbb5ef488be04a6c02dfd961a385bcc0982cb8ca4001a4b4d55fec02 |
|
MD5 | df238b8d5cc079fa85d2f7123229279e |
|
BLAKE2b-256 | 92cd6bf819281e22869fe0d7b80025655d548689fa8a14cddb24053befd49291 |