coleifer / peewee

a small, expressive orm -- supports postgresql, mysql, sqlite and cockroachdb

Home Page:http://docs.peewee-orm.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

peewee

Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use.

  • a small, expressive ORM
  • python 2.7+ and 3.4+
  • supports sqlite, mysql, mariadb, postgresql and cockroachdb
  • tons of extensions

New to peewee? These may help:

Examples

Defining models is similar to Django or SQLAlchemy:

Connect to the database and create tables:

Create a few rows:

Queries are expressive and composable:

Check out the example twitter app.

Learning more

Check the documentation for more examples.

Specific question? Come hang out in the #peewee channel on irc.libera.chat, or post to the mailing list, http://groups.google.com/group/peewee-orm . If you would like to report a bug, create a new issue on GitHub.

Still want more info?

image

I've written a number of blog posts about building applications and web-services with peewee (and usually Flask). If you'd like to see some real-life applications that use peewee, the following resources may be useful:

About

a small, expressive orm -- supports postgresql, mysql, sqlite and cockroachdb

http://docs.peewee-orm.com/

License:MIT License


Languages

Language:Python 96.2%Language:Cython 3.2%Language:C 0.5%Language:Shell 0.1%