Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

418sec/peewee

 
 

Repository files navigation

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+ (developed with 3.6)
  • supports sqlite, mysql, postgresql and cockroachdb
  • tons of extensions

image

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.freenode.net, 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 and sqlite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.3%
  • Other 0.7%