ArchiveBox/archivebox/api
Nick Sweeting 6ce2555dfd
fix: rename utils.py → util.py across modules, fix add --index-only, misc cleanups
Renames (no functional change, just consistency with the rest of the codebase):
- cli/cli_utils.py → cli/cli_util.py
- core/host_utils.py → core/host_util.py
- core/tag_utils.py → core/tag_util.py
- crawls/schedule_utils.py → crawls/schedule_util.py
- machine/env_utils.py → machine/env_util.py

Functional fixes:
- archivebox add --index-only now materializes Snapshot rows synchronously
  via crawl.create_snapshots_from_urls() instead of just queueing the Crawl
  and leaving the index empty. The previous behavior broke every test that
  expected --index-only to populate the index, since the runner is never
  started in index-only mode.
- config/collection.py: add _coerce_from_str_dict as the inverse of
  _coerce_to_str_dict so JSON-encoded INI values are decoded back to native
  dict/list types when mirrored into Machine.config (a JSONField). Without
  this, downstream consumers like MachineEvent / abx-dl get raw JSON
  strings where they expect dicts.

Plus matching admin / middleware / model touch-ups, the registration
password_change_form template, and assorted small cleanups the user
worked through while validating the deploy path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-30 14:30:33 -07:00
..
migrations wip 2026-03-23 03:58:32 -07:00
__init__.py wip 2026-03-23 03:58:32 -07:00
admin.py release: archivebox 0.9.31rc42 2026-05-24 15:40:51 -07:00
apps.py wip 2026-03-23 03:58:32 -07:00
auth.py backup: save in-progress dev changes 2026-05-28 05:20:52 -07:00
middleware.py wip 2026-03-23 03:58:32 -07:00
models.py wip 2026-03-23 03:58:32 -07:00
urls.py fix: rename utils.py → util.py across modules, fix add --index-only, misc cleanups 2026-05-30 14:30:33 -07:00
v1_api.py Prepare ArchiveBox 0.9.30rc81 demo release 2026-05-18 01:51:55 -07:00
v1_auth.py wip 2026-03-23 03:58:32 -07:00
v1_cli.py wip: snapshot live progress, universal --init, runner perms, supervisord SIGINT 2026-05-30 04:45:15 -07:00
v1_core.py fix: rename utils.py → util.py across modules, fix add --index-only, misc cleanups 2026-05-30 14:30:33 -07:00
v1_crawls.py release: archivebox 0.9.33rc45 2026-05-30 05:42:53 -07:00
v1_machine.py wip 2026-03-23 03:58:32 -07:00
v1_personas.py release: archivebox 0.9.33rc45 2026-05-30 05:42:53 -07:00
webhooks.py release: archivebox 0.9.31rc41 2026-05-24 14:07:33 -07:00