Repository navigation
Releases
Rusjango v0.1.6
🛡️ Rusjango 0.1.6
Phase 5 adds an admin backend foundation: explicit model registration, permission-gated metadata and data services, and shared admin scaffolding.
✨ Added
- Independent AdminSite registries, synchronous factory configuration, and optional installed-app discovery.
- Explicit list/detail field projection, bounded pagination, stable sorting, strict filter allowlists, and escaped substring search on SQLite and PostgreSQL.
- Trusted AdminIdentity subjects with exact per-model view/add/change/delete grants; denied operations stop before database access.
- Read-only defaults and opt-in typed create/update schemas, protected primary keys, rejected unknown inputs, and authorized form metadata.
add admin/remove adminin Python and Rust CLIs with shared packaged templates and edited-file preservation.- Admin tests in fresh wheel and Docker checks, plus a step-by-step admin tutorial.
📌 Compatibility and setup
ADMIN now accepts None or {"FACTORY": "module:callable"}. Enable the generated scaffold with ADMIN = {"FACTORY": "admin:create_site"} and keep app.load_installed_apps() in your entry point.
Registration requires explicit visible fields and a declared primary key. Each optional installed-app admin module defines synchronous register(site). Both CLIs preserve base settings; disable a factory reference before removing its unchanged scaffold.
Admin write schemas reject unknown inputs. This is specific to the admin service; existing API Schema handling retains its behavior. Updates validate the full update schema and apply its defaults.
Use the current CLI for the feature manifest. A separate Rust CLI must be rebuilt to include the new embedded admin template.
🧪 Validation
155 tests passed on Python 3.11 and 3.14 with both CLIs and live PostgreSQL. Rust checks, clean source/wheel builds, installed-package checks, and Docker runtime/persistence passed. Hosted results are recorded in the Phase 5 validation record.
🧭 Scope
AdminIdentity is a trusted server-side value, not an authentication provider. No dashboard, login, sessions, or HTTP admin routes are installed. Authentication and permissions integration is the next phase before browser exposure.
The ORM still has no transaction API, relationships, or tracked migrations. Rust request acceleration remains pending.
🚀 Install
pip install "rusjango==0.1.6"
# PostgreSQL:
pip install "rusjango[postgres]==0.1.6"Rusjango v0.1.5
📦 Rusjango 0.1.5
Phase 4: validation extensions, Docker scaffolding, and application test scaffolding. Rusjango remains alpha.
✨ Added
- Schema
Fieldconstraints for numeric ranges, collection/string lengths, and full-match regex patterns. - Synchronous
@field_validatorvalue transformations andSchema.validate()cross-field checks. - Opt-in
__coerce__ = Truefor controlled numeric/boolean string conversion. - Strict defaults, exact-type union preference, nested error locations, finite float checks, and protection against dictionary-key collisions after coercion.
add/remove dockerandadd/remove testsin both Python and Rust CLIs.- Shared packaged templates and ownership records that preserve existing or modified files.
- Multi-stage Docker/Compose examples with nonroot execution, explicit allowed hosts, debug disabled, and a persistent SQLite volume.
- Generated ASGI pytest fixtures with an isolated in-memory SQLite database.
RUSJANGO_SETTINGSselection for explicitly configured application instances and migration commands.- Docker build/run checks in CI, installed-wheel feature checks, and beginner guides for validation, containers, and testing.
⬆️ Compatibility
Python 3.11+ and SQLite 3.35+ remain required. Coercion is disabled by default. Existing strict schemas continue to use strict JSON types.
float schema fields now reject NaN/infinity and overflow. Private annotations and ClassVar metadata are not schema fields.
Schema Field comes from rusjango or rusjango.schema; ORM field classes remain in rusjango.orm.
Add/remove feature commands preserve application settings and dependency files. Removal deletes only unchanged tracked scaffold files. It does not remove running containers or database volumes.
✅ Validation
See the Phase 4 validation record for tests, package checks, and the generated-container smoke test.
Auth, admin, OpenAPI, relationship/transaction APIs, tracked migrations, and Rust request acceleration remain pending.
Rusjango v0.1.4
Rusjango 0.1.4
Phase 1–3 correctness and documentation release. Rusjango remains alpha.
Changes
- Fixed literal route matching, 422 validation errors, 405
Allowheaders, and empty 204 responses. - Hardened production Host parsing and kept security headers on rejected requests.
- Added proper ASGI startup/shutdown acknowledgements and database cleanup.
- Fixed per-model table names, concurrent SQLite insert results, null filters, and affected-row counts.
- Fixed PostgreSQL identity keys, update placeholders, and pooled connection release after errors.
- Made Python/Rust scaffolding preserve custom APIs and unrelated settings, reject computed settings before creating files, and honor configured settings paths.
- Embedded Rust CLI templates and propagated migration process failures.
- Added strict schema types, optional fields, independent defaults, nested schemas, lists, and dictionaries.
- Reworked all guides and added regression, live PostgreSQL, distribution, and release gates.
Compatibility and upgrades
Requires Python 3.11+ and SQLite 3.35+. Install into your project environment:
pip install --upgrade rusjango==0.1.4
# For PostgreSQL:
pip install --upgrade 'rusjango[postgres]==0.1.4'Invalid JSON schema types now return 422; strings such as "20" are not coerced to integers. A field annotated with an optional type still requires a default if callers may omit it.
Older databases affected by the default table-name bug may contain a table named model. Back up and inspect existing data, then move rows to the correct app/model tables with explicit SQL. This release does not rename tables or migrate data automatically. migrate only creates missing tables.
Custom APIs are preserved by add orm. Removing ORM keeps application files, so adapt any ORM-dependent handlers yourself.
Validation and limits
The local full suite passed 74 tests on Python 3.11 and 3.14, including both CLIs, SQLite, live PostgreSQL, and a real Uvicorn server. Four Rust tests, formatting, lint, source-archive rebuilds, and fresh installed-wheel checks passed. See the validation record for the exact scope and the release workflow for hosted results.
The Rust runtime remains a placeholder. Auth, admin, OpenAPI, relationships, transactions, tracked migrations, Docker scaffolding, and application test scaffolding are pending. These tests do not establish production readiness or a performance advantage.