PWIZ(1)

πŸ’– PWIZ β€” the peewee model generator, bestie edition πŸ’–

okay so. this is the manual page for pwiz, aka the peewee model generator ✨ it's giving "point me at a database and I'll write your models for you" and honestly? iconic.


🌸 NAME 🌸

pwiz β€” peewee model generator πŸŽ€


✨ SYNOPSIS ✨

pwiz [options] database_name

πŸ‘‘ OPTIONS πŸ‘‘

bestie, here's the whole roster. every single one. no skipping, we don't do that here πŸ’…

  • -h, --help β€” shows this help message and then dips out (exits). your classic escape hatch 🫢
  • -H HOST, --host=HOST β€” the host. the manpage gives us literally no description here, so she stays mysterious 😭
  • -p PORT, --port=PORT β€” the port. also undescribed. also mysterious. we respect her privacy πŸ™ˆ
  • -u USER, --user=USER β€” the user. again, no blurb in the original. just vibes ✨
  • -P, --password β€” the password flag. still no description. the original is playing hard to get fr fr πŸ’€
  • -e ENGINE, --engine=ENGINE β€” the database type! like sqlite, mysql, postgresql or cockroachdb. the default is "postgresql". main character engine, no cap πŸ‘‘
  • -s SCHEMA, --schema=SCHEMA β€” the schema. yes, also description-less. consistency queen πŸŽ€
  • -t TABLES, --tables=TABLES β€” only generates the tables you actually named. got multiple? separate them with commas, like a little comma-separated bestie list 🌸
  • -v, --views β€” generates model classes for your VIEWs in addition to tables. views said "let me in" and pwiz said okay πŸͺŸβœ¨
  • -i, --info β€” adds database information and other metadata to the top of the generated file. receipts at the top, love that for us πŸ§ΎπŸ’–
  • -o, --preserve-order β€” the model definition's column ordering matches the source table. order preserved, chaos declined πŸ’…
  • -I, --ignore-unknown β€” ignores fields whose type cannot be determined. if we can't figure out the type, we simply pretend we didn't see it πŸ™ˆ
  • -L, --legacy-naming β€” uses the legacy table- and column-name generation. retro era activated πŸ¦‹

heads up bestie: a bunch of these flags ship with zero description in the original page, and I'm not about to make stuff up about them. what you see is what's there πŸ’€πŸ«Ά

🌈 that's the whole page 🌈

pwiz lives at version 3.18.3+dfsg and this page is dated March 2026 β€” so yeah, she's fresh, she's documented, she's slaying. go generate some models, bestie. periodt πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from