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()]
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.1.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file bottle-peewee-0.1.1.tar.gz
.
File metadata
- Download URL: bottle-peewee-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b1c9bc8cda26248bfca5eccbcdf449f3767a726fc24b64c6a78889f7b4716f |
|
MD5 | d75d7b1e61c0c3e10c386c89e15f195c |
|
BLAKE2b-256 | 24739dfaf4852fed19301cbe70b7a99fcd27274dcb85350893fd7618ed1e1dd6 |
File details
Details for the file bottle_peewee-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_peewee-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a58777686a8dedb7836eb54671804e6334e66a795db4aba8f5e0246a6922f3 |
|
MD5 | 2ba1b05cacc99120f547d60d27d6b7bb |
|
BLAKE2b-256 | 0db864228534fb5f6cfdbc0ee00bca5e4f59eb71612980e61e0ace8e5d1685e2 |