UNKNOWN
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.0.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file bottle-peewee-0.1.0.tar.gz
.
File metadata
- Download URL: bottle-peewee-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9b3e220362c21d0598ddd53af3315ea99b394e493bd7109f89fd07815c942dc |
|
MD5 | 66be29538dc0469ad507bbefe0d4775f |
|
BLAKE2b-256 | 5c5c08e2cfaa1bff2003f337a5404ecaf2588f43af12329e0a92bdb68e2c3967 |
File details
Details for the file bottle_peewee-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: bottle_peewee-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 097927ec07107d3f93efd4d5465f0e0a3bc600853f42854e89ad67fd7ffff932 |
|
MD5 | 1fcaac3350845287665dce37efad4acf |
|
BLAKE2b-256 | 335b27e38d913f11e295454b8792459c8610d154d68211b20466fdf7dab0ea3f |