Skip to content
..
Failed to load latest commit information.
tests APSW conn hooks, fixes #845
README.md readme
__init__.py Fiddling around w/extras
_speedups.pyx Rename speedups cython to _speedups.pyx.
_sqlite_ext.pyx Inline the code.
_sqlite_udf.pyx Adding sqlite user-defined functions and aggregates.
apsw_ext.py APSW conn hooks, fixes #845
berkeleydb.py Check sqlite lib version, fixes #852
csv_loader.py Fixes.
csv_utils.py py3k import.
dataset.py xx
db_url.py Support for additional db url providers, fixes #781
djpeewee.py djpeewee: Use `model_field.column` instead of `get_attname()`
fields.py Change to `type(self)`, fixes #838
flask_utils.py Nicer flaskdb api.
gfk.py Support create_or_get, refs #313
hybrid.py Add support for 'on conflict' in insert+update, fixes #587
kv.py De-dupe code in kv module.
migrate.py Fix MySQL migrations, esp w/r/t foreign keys. Fixes #751
pool.py Better mysql connection handling, fixes #822.
postgres_ext.py Clean up cast for lookup types.
pskel Some code cleanup.
read_slave.py Documenting `Using`.
reflection.py Fix #757, thanks @SarahFowler73
shortcuts.py xx
signals.py Replace get_id, set_id and pk_expr with private method names, fixes #435
sqlcipher_ext.py Fixing bug where connect_kwargs is stomped on by re-init.
sqlite_ext.py APSW conn hooks, fixes #845
sqlite_udf.py Experimenting with vtfuncs.
test_utils.py Some code cleanup.

README.md

Playhouse

The playhouse namespace contains numerous extensions to Peewee. These include vendor-specific database extensions, high-level abstractions to simplify working with databases, and tools for low-level database operations and introspection.

Vendor extensions

  • SQLite extensions
    • User-defined aggregates, collations, and functions
    • Full-text search (FTS3/4/5)
    • BM25 ranking algorithm implemented as SQLite C extension, backported to FTS4
    • Virtual tables and C extensions
    • Closure tables
  • APSW extensions: use Peewee with the powerful APSW SQLite driver.
  • BerkeleyDB: compile BerkeleyDB with SQLite compatibility API, then use with Peewee.
  • SQLCipher: encrypted SQLite databases.
  • Postgresql extensions
    • JSON and JSONB
    • HStore
    • Arrays
    • Server-side cursors
    • Full-text search

High-level libraries

Database management and framework support

  • pwiz: generate model code from a pre-existing database.
  • Schema migrations: modify your schema using high-level APIs. Even supports dropping or renaming columns in SQLite.
  • Connection pool: simple connection pooling.
  • Reflection: low-level, cross-platform database introspection
  • Database URLs: use URLs to connect to database
  • Read slave
  • Flask utils: paginated object lists, database connection management, and more.
  • Django integration: generate peewee models from Django models, use Peewee alongside your Django ORM code.
Something went wrong with that request. Please try again.