Repository navigation
Full Changelog: v2.1.1-alpha...v2.2.0-alpha
Schema files
- New
schemas/schema_{connection}.pyfiles describe a connection's tables in Python. Scribe compares them with the live database;.sqlmigrations remain the only way the database changes scribe schema init,pull,diff, andstatus(read-only), plusscribe schema generateto write a migration from the differences. Changes that could lose data are written commented out under-- REVIEWscribe schema applywrites and runs a migration of the additive changes, for connections with"auto_migrate": truescope()limits which tables a schema file covers, for large shared databases- See docs/06_SCHEMA_FILES.md
IDE
- New Schema tab: each table's status against the database, a managed toggle, and Pull / Generate migration / Apply / Run pending migrations. Generated SQL is always previewed before anything is written
- Schema files appear in the file sidebar; files in nested folders under migrations/ no longer land in a duplicated folder
- Saving a file now clears its unsaved marker
New projects
scribe new myappnow creates a minimal project with no example content to clean up: configuration, a layout, one page, and emptymigrations/andschemas/scribe new myapp --democreates the starter app from earlier releases (tasks, login, and registration)
Migrations
- Migrations can run per connection: set
"migrations"and"auto_migrate"on each connection in scribe.json, and use--databasewithscribe db migrate. Newscribe db status - Each SQLite migration file runs in one transaction, so a failed migration leaves nothing half-applied
- Startup warns when a PostgreSQL or MSSQL
defaultconnection doesn't say whether Scribe may change it, and Scribe won't create migrations for it until it does
Routes and scribe-build
- New
@csrf_exemptroute decorator for API endpoints called with a bearer token or from another service (see docs/02_TEMPLATE_SYNTAX.md). Each route handler now has its own name, so the exemption applies only to the decorated route scribe-buildcompiles a project into a standalone executable (precompiled routes andlib/helpers, secrets stripped from the bundled scribe.json). It ships asscribe-build-linuxand is installed by install.sh
Builds and fixes
- Linux binaries are built with a standalone Python 3.14 and run on glibc 2.28+ (Debian 10, RHEL 8, Ubuntu 20.04 and newer)
scribe --versionandscribe-build --versionreport the right version- Unreachable databases give a one-line error instead of a traceback
- Startup warns when a project's .venv uses a different Python version than Scribe
Install
tar -xzf scribe-v2.2.0-alpha.tar.gz
./install.sh