Commit Graph

  • ec8695ba0c Filter snapshot lines through --grep like change records main LeoVasanko 2026-09-21 19:13:19 +00:00
  • a4efbca55b Clarify diagnostic log messages; simplify describe_callback fallback v0.9.2 LeoVasanko 2026-09-16 02:55:10 +00:00
  • 44c1ed191e Configure kanta event loggers at import time, inheriting the root level. LeoVasanko 2026-09-16 02:16:58 +00:00
  • a41f34d332 Route all diagnostic logging through the plain "kanta" logger. LeoVasanko 2026-09-16 02:16:58 +00:00
  • 7a7716ec7b Make kanta.diff/patch functions public API. v0.9.1 LeoVasanko 2026-09-13 00:29:02 +00:00
  • c608e749a7 Implement kanta --grep (intelligent search string) with highlight marks. LeoVasanko 2026-09-13 00:21:26 +00:00
  • 8e780d7ee4 Show package version number on kanta CLI LeoVasanko 2026-09-12 22:15:17 +00:00
  • 2e6f48bac5 Implement support for NO_COLOR/FORCE_COLOR env with isatty and journald checks for autodetection. LeoVasanko 2026-09-12 22:07:37 +00:00
  • ab5b7584c9 Updated docs v0.9.0 LeoVasanko 2026-09-02 17:06:43 +00:00
  • d33f3f9c2f Add @kanta.validate integrity-validation callbacks LeoVasanko 2026-09-02 17:02:14 +00:00
  • aee6c13996 Implement database rotation with n days retention (#2) LeoVasanko 2026-09-02 16:46:19 +00:00
  • 94c5ddeaba Inject state dicts by name (prev/state), rename MigrationResult to MigrationReport. v0.8.2 LeoVasanko 2026-08-27 14:50:34 +00:00
  • 4ef74e027f Re-export from kanta configure_logging. LeoVasanko 2026-08-27 13:41:31 +00:00
  • 6839b48f6d Support filesystem paths in --data, --migrations, and --kanta arguments. v0.8.1 LeoVasanko 2026-08-13 21:31:21 +00:00
  • 955fdd8e1c Locate only the current Python version's site-packages in nearby .venv dirs. LeoVasanko 2026-08-13 21:27:14 +00:00
  • 20694576c7 Scope sys.path additions around dynamic imports and include nearby .venv site-packages. LeoVasanko 2026-08-13 21:23:28 +00:00
  • 8be44bd490 Add CWD to sys.path so CLI can import target modules. LeoVasanko 2026-08-13 21:12:59 +00:00
  • f8a0a85158 Pretty-print snapshot lines and drop microseconds from CLI timestamps. LeoVasanko 2026-08-13 21:12:33 +00:00
  • 8e436295aa Add experimental kanta CLI for inspecting databases. v0.8.0 LeoVasanko 2026-08-13 18:44:46 +00:00
  • 0b8c1d2da9 Ruff v0.7.1 LeoVasanko 2026-08-11 01:34:39 +00:00
  • 33a8c07043 Make tests follow the earlier change of merging version and msgspec migration records into one. LeoVasanko 2026-08-11 01:34:06 +00:00
  • be3acaed3e Smarter change record formatting to 80ch wide, shortened with ellipsis character rather than three dots. LeoVasanko 2026-08-11 01:21:34 +00:00
  • f489216c2a All remaining events through logformat, cleaner migration message, prettier demo. v0.7.0 LeoVasanko 2026-08-07 17:12:29 +00:00
  • 08f3c44f1f Group all migration events into one row migrate:vN (if version changed) OR migrate:msgspec - Log as a single event - Logging config has debug parameter to lower level to DEBUG, showing migration diffs LeoVasanko 2026-08-07 16:20:56 +00:00
  • e0046ae9d9 Cleanup LeoVasanko 2026-08-07 16:10:46 +00:00
  • c101f187d8 Implement richer, fully customizable logging; customizable timestamps (#1) LeoVasanko 2026-08-07 15:08:28 +00:00
  • 3a56bfbb10 Add kanta.bootstrap logger and configurable logging setup v0.6.0 LeoVasanko 2026-06-20 19:10:58 +00:00
  • 55fa475a13 Log new database creation, bootstrap like a transaction. LeoVasanko 2026-06-20 18:15:08 +00:00
  • 753b7eba86 Add separate migration logging, logmigr callback, and log= override v0.5.0 LeoVasanko 2026-06-15 23:13:03 +00:00
  • 42789e6619 Revised migration context: don't store changerecord unless something was changed, and always snapshot if and after changes done. LeoVasanko 2026-06-15 22:14:03 +00:00
  • c4726e6728 Stricter versioning: always store migrate version record, file must be within versions included in migrations. Log only for migrations that made changes. Allow deleting older migration functions when no longer required. v0.4.3 LeoVasanko 2026-06-15 03:09:45 +00:00
  • 66e92739ab Refactor Migrations internals, add caching to avoid reloading per each Kanta instance. Naming changed from MigrationRegistry to Migration, module from migrate to kanta.migrations. v0.4.2 LeoVasanko 2026-06-15 01:12:42 +00:00
  • 4dc2f0648e Fix creation of new database, ensuring that a bootstrap record of the initial state is always written. v0.4.1 LeoVasanko 2026-06-15 00:27:49 +00:00
  • bec4635460 Add kanta.ctx SimpleNamespace for user variables. This is passed to migration functions if they take a second argument. Remove the old MigrationCtx system. v0.4.0 LeoVasanko 2026-06-14 19:54:23 +00:00
  • c04a245366 Add read only mode that doesn't use locking. Useful for inspection while the database is in use or when no changes are intended (except in RAM). LeoVasanko 2026-06-14 19:35:06 +00:00
  • b501fcca86 Only Kanta exported at root, others available from submodules. v0.3.0 LeoVasanko 2026-06-13 21:26:35 +00:00
  • 7e553bd868 Improved log formatting support by @kanta.logfmt, which replaces old resolver and user_display arguments (breaking change). LeoVasanko 2026-06-13 21:22:05 +00:00
  • 4db046d627 Implement proper bootstrap and fatal error handling via decorators. Breaks compatibility. v0.2.0 LeoVasanko 2026-06-13 02:53:09 +00:00
  • acabc049e7 Fixed typing. LeoVasanko 2026-06-13 00:59:18 +00:00
  • 43f2cdbd53 Removed useless lock. LeoVasanko 2026-06-13 00:55:05 +00:00
  • ebfed10f24 Proper ts/mtime setting and tracking. Added Kanta.mtime property for reading current change time. LeoVasanko 2026-06-13 00:49:35 +00:00
  • e8d123a748 Don't make package root a module (debug). LeoVasanko 2026-06-13 00:31:07 +00:00
  • 56b955cfdf Fix imports v0.1.1 LeoVasanko 2026-06-12 19:23:23 +00:00
  • c254970ae5 Initial commit v0.1.0 LeoVasanko 2026-06-12 19:15:46 +00:00