From f722aafc18de7afb170a436c633a7324372124e8 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 14 May 2025 10:18:27 +0200 Subject: [PATCH] chore(cli/inventory): add deprecation note for old python module --- pkgs/clan-cli/clan_cli/inventory/__init__.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/inventory/__init__.py b/pkgs/clan-cli/clan_cli/inventory/__init__.py index 087d9beb0..b210a74a8 100644 --- a/pkgs/clan-cli/clan_cli/inventory/__init__.py +++ b/pkgs/clan-cli/clan_cli/inventory/__init__.py @@ -1,15 +1,14 @@ """ -All read/write operations MUST use the inventory. +DEPRECATED: -Machine data, clan data or service data can be accessed in a performant way. +Don't use this module anymore -This file exports stable classnames for static & dynamic type safety. +Instead use: +'clan_lib.persistence.inventoryStore' -Utilize: +Which is an abstraction over the inventory -- load_inventory_eval: To load the actual inventory with nix declarations merged. -Operate on the returned inventory to make changes -- save_inventory: To persist changes. +Interacting with 'clan_cli.inventory' is NOT recommended and will be removed """ import contextlib