Skip to content

v0.3.0

Choose a tag to compare

@kbzowski kbzowski released this 18 May 11:28
· 15 commits to main since this release

Features

  • Admin-only inline customization override on create_jobs. New parameter customization_config_override: dict | None lets admin API keys override the resolved customization config for the created jobs only, without modifying the stored customization group. Non-admin callers receive 403 from the server.
  • MiviaClient.get_resolved_customization_config(customization_id) — fetch the fully resolved baseline config (after parent merge) from /admin/customizations/groups/{id}/resolved-settings. Admin-only.
  • mivia.deep_merge(base, patch) — exported helper. Recursive dict merge; lists and scalars in the patch replace. Inputs not mutated.
  • Sync mirrors on SyncMiviaClient.

Usage

client = SyncMiviaClient()  # admin API key
config = client.get_resolved_customization_config(customization_id)
config["thresholds"]["min_area"] = 0.05
client.create_jobs(
    image_ids=[...], model_id=..., customization_id=customization_id,
    customization_config_override=config,
)

Requires the corresponding server change (customizationConfigOverride on POST /jobs).