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.5.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file bottle-peewee-0.1.5.tar.gz
.
File metadata
- Download URL: bottle-peewee-0.1.5.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c20dec29701eed9d74ccc793f73f25153dc9426762be3a76ad064c7bc964c381 |
|
MD5 | ec5f8ba997ba8478e056e87775174cca |
|
BLAKE2b-256 | 248a50c4a1a747d948c22ffb7fd031088e38d5ad72c5e7718aacc292680ca496 |
File details
Details for the file bottle_peewee-0.1.5-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_peewee-0.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ed3a0a619c9d4655f57984dd8b2f4e470bc9fdb5076362aed02d2efb434db4 |
|
MD5 | 83feb2cec31063dcdb7279c97136a5d3 |
|
BLAKE2b-256 | 3c96f554881e3f78ad3165562bd42907c2e5bfa0eff9727c8282897435c05644 |