mgraph-ai-service-cache-client 0.3.0__tar.gz → 0.18.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/PKG-INFO +2 -3
  2. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/README.md +1 -1
  3. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/Client__Cache__Service.py +22 -0
  4. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/Cache__Service__Fast_API__Client.py +96 -0
  5. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/Cache__Service__Fast_API__Client__Config.py +23 -0
  6. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/admin_storage/Service__Fast_API__Client__Admin__Storage.py +121 -0
  7. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/data/Service__Fast_API__Client__Data__Delete.py +4 -4
  8. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/data/Service__Fast_API__Client__Data__Retrieve.py +18 -6
  9. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/data_store/Service__Fast_API__Client__Data__Store.py +56 -37
  10. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/delete/Service__Fast_API__Client__File__Delete.py +6 -4
  11. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/exists/Service__Fast_API__Client__File__Exists.py +1 -1
  12. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/info/Service__Fast_API__Client__Info.py +1 -1
  13. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/namespace/Service__Fast_API__Client__Namespace.py +59 -0
  14. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/namespaces/Service__Fast_API__Client__Namespace.py +22 -0
  15. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/retrieve/Service__Fast_API__Client__File__Retrieve.py +252 -0
  16. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/store/Service__Fast_API__Client__File__Store.py +23 -34
  17. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/update/Service__Fast_API__Client__File__Update.py +61 -0
  18. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/zip/Service__Fast_API__Client__Zip.py +9 -9
  19. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/Cache__Decorator.py +91 -0
  20. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/Decorator__Cache.py +175 -0
  21. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/_previous/Cache__Decorator.py +165 -0
  22. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/_previous/Cache__Decorator__Key__Generator.py +77 -0
  23. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/cache_operations/Cache__Decorator__Operations.py +160 -0
  24. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/cache_operations/Cache__Key__Builder.py +209 -0
  25. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/cache_operations/__init__.py +0 -0
  26. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/exceptions/Cache__Decorator__Exceptions.py +53 -0
  27. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/exceptions/__init__.py +0 -0
  28. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/schemas/Schema__Cache__Decorator__Config.py +26 -0
  29. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/schemas/Schema__Cache__Decorator__Data.py +13 -0
  30. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/schemas/__init__.py +0 -0
  31. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/schemas/configs/Cache__Decorator__Configs.py +40 -0
  32. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/schemas/configs/__init__.py +0 -0
  33. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/schemas/enums/Enum__Cache__Decorator__Mode.py +7 -0
  34. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/schemas/enums/__init__.py +1 -0
  35. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/requests/Cache__Service__Fast_API__Client__Requests.py +146 -0
  36. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/requests/__init__.py +0 -0
  37. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/requests/schemas/Schema__Cache__Service__Fast_API__Client__Requests__Result.py +13 -0
  38. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/requests/schemas/__init__.py +0 -0
  39. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/requests/schemas/enums/Enum__Client__Mode.py +7 -0
  40. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/testing/Cache_Client_Test_Helpers.py +616 -0
  41. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/testing/__init__.py +0 -0
  42. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/__init__.py +0 -0
  43. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/Cache_Id.py +5 -0
  44. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Delete__Success.py +1 -0
  45. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Retrieve__Success.py +3 -2
  46. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Update__Response.py +21 -0
  47. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/__init__.py +0 -0
  48. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/data/__init__.py +0 -0
  49. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/enums/Enum__Cache__Data_Type.py +7 -0
  50. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/enums/__init__.py +0 -0
  51. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/file/__init__.py +0 -0
  52. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/store/Schema__Cache__Store__Metadata.py +13 -10
  53. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/store/__init__.py +0 -0
  54. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/zip/__init__.py +0 -0
  55. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/zip/enums/__init__.py +0 -0
  56. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/cache/zip/safe_str/__init__.py +0 -0
  57. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/client/__init__.py +0 -0
  58. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/client_builder/__init__.py +0 -0
  59. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/consts/__init__.py +0 -0
  60. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/consts/const__Fast_API.py +1 -1
  61. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/errors/__init__.py +0 -0
  62. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/routes/__init__.py +0 -0
  63. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/schemas/routes/admin/Schema__Routes__Admin__Storage__Files_All__Response.py +11 -0
  64. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/utils/__init__.py +0 -0
  65. mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/version +1 -0
  66. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/pyproject.toml +1 -2
  67. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client/Cache__Client.py +0 -6
  68. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client/Cache__Client__Config.py +0 -7
  69. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client/Cache__Client__Health_Checks.py +0 -38
  70. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client/Cache__Client__Requests.py +0 -50
  71. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client_builder/Fast_API__Client__Builder.py +0 -49
  72. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client_contract/Service__Fast_API__Client.py +0 -77
  73. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client_contract/Service__Fast_API__Client__Config.py +0 -14
  74. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client_contract/Service__Fast_API__Client__Requests.py +0 -146
  75. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client_contract/admin_storage/Service__Fast_API__Client__Admin__Storage.py +0 -113
  76. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client_contract/namespace/Service__Fast_API__Client__Namespace.py +0 -48
  77. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client_contract/retrieve/Service__Fast_API__Client__File__Retrieve.py +0 -169
  78. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/enums/Enum__Cache__Data_Type.py +0 -6
  79. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/store/Schema__Store__Context.py +0 -32
  80. mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/version +0 -1
  81. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/LICENSE +0 -0
  82. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/__init__.py +0 -0
  83. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/client/__init__.py +0 -0
  84. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/__init__.py +0 -0
  85. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/client_builder → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/admin_storage}/__init__.py +0 -0
  86. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/auth/Service__Fast_API__Client__Set_Cookie.py +0 -0
  87. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/auth}/__init__.py +0 -0
  88. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/data/Service__Fast_API__Client__Data.py +0 -0
  89. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/data}/__init__.py +0 -0
  90. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/data → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/data_store}/__init__.py +0 -0
  91. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/enums → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/delete}/__init__.py +0 -0
  92. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/file → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/exists}/__init__.py +0 -0
  93. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/store → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/info}/__init__.py +0 -0
  94. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/zip → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/namespace}/__init__.py +0 -0
  95. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/zip/enums → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/namespaces}/__init__.py +0 -0
  96. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/cache/zip/safe_str → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/retrieve}/__init__.py +0 -0
  97. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client}/client_contract/server/Service__Fast_API__Client__Server.py +0 -0
  98. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/client → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/server}/__init__.py +0 -0
  99. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/client_builder → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/store}/__init__.py +0 -0
  100. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/consts → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/client_contract/zip}/__init__.py +0 -0
  101. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/schemas/errors → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator}/__init__.py +0 -0
  102. {mgraph_ai_service_cache_client-0.3.0/mgraph_ai_service_cache_client/utils → mgraph_ai_service_cache_client-0.18.0/mgraph_ai_service_cache_client/client/decorator/_previous}/__init__.py +0 -0
  103. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Binary__Reference.py +0 -0
  104. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Exists__Response.py +0 -0
  105. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Metadata.py +0 -0
  106. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Namespace__Stats.py +0 -0
  107. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Namespaces__List.py +0 -0
  108. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Retrieve__Request.py +0 -0
  109. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Stats__Response.py +0 -0
  110. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/Schema__Cache__Store__Response.py +0 -0
  111. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/consts__Cache_Service.py +0 -0
  112. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/data/Schema__Cache__Data__Delete__All_Files__Response.py +0 -0
  113. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/data/Schema__Cache__Data__Files__List.py +0 -0
  114. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/data/Schema__Cache__Data__Retrieve__Request.py +0 -0
  115. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/data/Schema__Cache__Data__Retrieve__Response.py +0 -0
  116. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/data/Schema__Cache__Data__Store__Request.py +0 -0
  117. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/data/Schema__Cache__Data__Store__Response.py +0 -0
  118. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/enums/Enum__Cache__File_Type.py +0 -0
  119. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/enums/Enum__Cache__Storage_Mode.py +0 -0
  120. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/enums/Enum__Cache__Store__Strategy.py +0 -0
  121. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/file/Schema__Cache__File__Paths.py +0 -0
  122. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/file/Schema__Cache__File__Refs.py +0 -0
  123. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/store/Schema__Cache__Hash__Entry.py +0 -0
  124. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/store/Schema__Cache__Hash__Reference.py +0 -0
  125. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/store/Schema__Cache__Store__Paths.py +0 -0
  126. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/Schema__Cache__Zip__Batch__Request.py +0 -0
  127. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/Schema__Cache__Zip__Batch__Response.py +0 -0
  128. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/Schema__Cache__Zip__Operation__Request.py +0 -0
  129. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/Schema__Cache__Zip__Operation__Response.py +0 -0
  130. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/Schema__Cache__Zip__Store__Request.py +0 -0
  131. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/Schema__Cache__Zip__Store__Response.py +0 -0
  132. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/Schema__Zip__Batch__Operation.py +0 -0
  133. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/Schema__Zip__Operation__Result.py +0 -0
  134. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/enums/Enum__Cache__Zip__Condition.py +0 -0
  135. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/enums/Enum__Cache__Zip__Operation.py +0 -0
  136. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/safe_str/Safe_Str__Cache__Zip__Operation__Message.py +0 -0
  137. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/cache/zip/safe_str/Safe_Str__Cache__Zip__Operation__Pattern.py +0 -0
  138. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/client/Cache__Client__Requests__Result.py +0 -0
  139. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/client/health_checks/Client__Check__Target_Server__Auth.py +0 -0
  140. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/client/health_checks/Client__Check__Target_Server__Status.py +0 -0
  141. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/client_builder/Schema__Fast_API__Client__Server__Details.py +0 -0
  142. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/consts/const__Storage.py +0 -0
  143. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/consts/consts__Cache_Client.py +0 -0
  144. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/errors/Schema__Cache__Error__Base.py +0 -0
  145. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/errors/Schema__Cache__Error__Conflict.py +0 -0
  146. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/errors/Schema__Cache__Error__Gone.py +0 -0
  147. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/errors/Schema__Cache__Error__Invalid_Input.py +0 -0
  148. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/errors/Schema__Cache__Error__Not_Found.py +0 -0
  149. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/errors/Schema__Cache__Error__Service_Unavailable.py +0 -0
  150. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/schemas/errors/Schema__Cache__Error__Unsupported_Media_Type.py +0 -0
  151. {mgraph_ai_service_cache_client-0.3.0 → mgraph_ai_service_cache_client-0.18.0}/mgraph_ai_service_cache_client/utils/Version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mgraph_ai_service_cache__client
3
- Version: 0.3.0
3
+ Version: 0.18.0
4
4
  Summary: MGraph-AI__Service__Cache__Client
5
5
  Home-page: https://github.com/the-cyber-boardroom/MGraph-AI__Service__Cache__Client
6
6
  License: Apache 2.0
@@ -10,14 +10,13 @@ Requires-Python: >=3.12,<4.0
10
10
  Classifier: License :: Other/Proprietary License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.12
13
- Requires-Dist: mgraph_ai_service_cache
14
13
  Requires-Dist: osbot-fast-api-serverless
15
14
  Project-URL: Repository, https://github.com/the-cyber-boardroom/MGraph-AI__Service__Cache__Client
16
15
  Description-Content-Type: text/markdown
17
16
 
18
17
  # MGraph AI Service Cache Client
19
18
 
20
- [![Current Release](https://img.shields.io/badge/release-v0.3.0-blue)](https://github.com/the-cyber-boardroom/MGraph-AI__Service__Cache__Client/releases)
19
+ [![Current Release](https://img.shields.io/badge/release-v0.18.0-blue)](https://github.com/the-cyber-boardroom/MGraph-AI__Service__Cache__Client/releases)
21
20
  [![Python](https://img.shields.io/badge/python-3.12-blue)](https://www.python.org/downloads/)
22
21
  [![FastAPI](https://img.shields.io/badge/FastAPI-0.116.1-009688)](https://fastapi.tiangolo.com/)
23
22
  [![AWS Lambda](https://img.shields.io/badge/AWS-Lambda-orange)](https://aws.amazon.com/lambda/)
@@ -1,6 +1,6 @@
1
1
  # MGraph AI Service Cache Client
2
2
 
3
- [![Current Release](https://img.shields.io/badge/release-v0.3.0-blue)](https://github.com/the-cyber-boardroom/MGraph-AI__Service__Cache__Client/releases)
3
+ [![Current Release](https://img.shields.io/badge/release-v0.18.0-blue)](https://github.com/the-cyber-boardroom/MGraph-AI__Service__Cache__Client/releases)
4
4
  [![Python](https://img.shields.io/badge/python-3.12-blue)](https://www.python.org/downloads/)
5
5
  [![FastAPI](https://img.shields.io/badge/FastAPI-0.116.1-009688)](https://fastapi.tiangolo.com/)
6
6
  [![AWS Lambda](https://img.shields.io/badge/AWS-Lambda-orange)](https://aws.amazon.com/lambda/)
@@ -0,0 +1,22 @@
1
+ from fastapi import FastAPI
2
+ from osbot_utils.decorators.methods.cache_on_self import cache_on_self
3
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
4
+ from osbot_utils.type_safe.type_safe_core.decorators.type_safe import type_safe
5
+ from mgraph_ai_service_cache_client.client.client_contract.Cache__Service__Fast_API__Client import Cache__Service__Fast_API__Client
6
+ from mgraph_ai_service_cache_client.client.client_contract.Cache__Service__Fast_API__Client__Config import Cache__Service__Fast_API__Client__Config
7
+
8
+ # todo: question: should this be called Client__Cache_Service (would make sense when we have multiple of these happening at the same time:
9
+ # like Client__Http_Service, Client__LLMs_Service, Client__News_Service, etc..
10
+ class Client__Cache__Service(Type_Safe):
11
+ config : Cache__Service__Fast_API__Client__Config
12
+
13
+ @cache_on_self
14
+ def client(self):
15
+ return Cache__Service__Fast_API__Client(config=self.config)
16
+
17
+ @type_safe
18
+ def set__fast_api_app(self,
19
+ app: FastAPI
20
+ ) -> 'Client__Cache__Service':
21
+ self.config.fast_api_app = app
22
+ return self
@@ -0,0 +1,96 @@
1
+ from mgraph_ai_service_cache_client.client.requests.schemas.enums.Enum__Client__Mode import Enum__Client__Mode
2
+ from mgraph_ai_service_cache_client.schemas.consts.consts__Cache_Client import ENV_VAR__AUTH__TARGET_SERVER__CACHE_SERVICE__KEY_NAME, ENV_VAR__AUTH__TARGET_SERVER__CACHE_SERVICE__KEY_VALUE, ENV_VAR__URL__TARGET_SERVER__CACHE_SERVICE
3
+ from osbot_utils.utils.Env import get_env
4
+ from mgraph_ai_service_cache_client.client.requests.Cache__Service__Fast_API__Client__Requests import Cache__Service__Fast_API__Client__Requests
5
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
6
+ from osbot_utils.decorators.methods.cache_on_self import cache_on_self
7
+ from .Cache__Service__Fast_API__Client__Config import Cache__Service__Fast_API__Client__Config
8
+ from .namespaces.Service__Fast_API__Client__Namespace import Service__Fast_API__Client__Namespaces
9
+ from .store.Service__Fast_API__Client__File__Store import Service__Fast_API__Client__File__Store
10
+ from .retrieve.Service__Fast_API__Client__File__Retrieve import Service__Fast_API__Client__File__Retrieve
11
+ from .exists.Service__Fast_API__Client__File__Exists import Service__Fast_API__Client__File__Exists
12
+ from .delete.Service__Fast_API__Client__File__Delete import Service__Fast_API__Client__File__Delete
13
+ from .data_store.Service__Fast_API__Client__Data__Store import Service__Fast_API__Client__Data__Store
14
+ from .data.Service__Fast_API__Client__Data import Service__Fast_API__Client__Data
15
+ from .update.Service__Fast_API__Client__File__Update import Service__Fast_API__Client__File__Update
16
+ from .zip.Service__Fast_API__Client__Zip import Service__Fast_API__Client__Zip
17
+ from .namespace.Service__Fast_API__Client__Namespace import Service__Fast_API__Client__Namespace
18
+ from .admin_storage.Service__Fast_API__Client__Admin__Storage import Service__Fast_API__Client__Admin__Storage
19
+ from .server.Service__Fast_API__Client__Server import Service__Fast_API__Client__Server
20
+ from .info.Service__Fast_API__Client__Info import Service__Fast_API__Client__Info
21
+
22
+ class Cache__Service__Fast_API__Client(Type_Safe):
23
+ config : Cache__Service__Fast_API__Client__Config
24
+
25
+ @cache_on_self
26
+ def requests(self) -> Cache__Service__Fast_API__Client__Requests: # Access the unified request handler
27
+ self.setup_config_from_env()
28
+ return Cache__Service__Fast_API__Client__Requests(config=self.config)
29
+
30
+ def setup_config_from_env(self):
31
+ key_name = get_env(ENV_VAR__AUTH__TARGET_SERVER__CACHE_SERVICE__KEY_NAME )
32
+ key_value = get_env(ENV_VAR__AUTH__TARGET_SERVER__CACHE_SERVICE__KEY_VALUE )
33
+ target_url = get_env(ENV_VAR__URL__TARGET_SERVER__CACHE_SERVICE )
34
+ if key_name and key_value and target_url:
35
+ with self.config as _:
36
+ _.api_key_header = key_name # todo : see if we have a use case where we shouldn't be overwriting these self.config values
37
+ _.api_key = key_value
38
+ _.base_url = target_url
39
+ _.mode = Enum__Client__Mode.REMOTE
40
+ return self
41
+
42
+ @cache_on_self
43
+ def store(self) -> Service__Fast_API__Client__File__Store: # Access store operations
44
+ return Service__Fast_API__Client__File__Store(_client=self)
45
+
46
+ @cache_on_self
47
+ def retrieve(self) -> Service__Fast_API__Client__File__Retrieve: # Access retrieve operations
48
+ return Service__Fast_API__Client__File__Retrieve(_client=self)
49
+
50
+ @cache_on_self
51
+ def exists(self) -> Service__Fast_API__Client__File__Exists: # Access exists operations
52
+ return Service__Fast_API__Client__File__Exists(_client=self)
53
+
54
+ @cache_on_self
55
+ def update(self) -> Service__Fast_API__Client__File__Update: # Access exists operations
56
+ return Service__Fast_API__Client__File__Update(_client=self)
57
+
58
+ @cache_on_self
59
+ def delete(self) -> Service__Fast_API__Client__File__Delete: # Access delete operations
60
+ return Service__Fast_API__Client__File__Delete(_client=self)
61
+
62
+ @cache_on_self
63
+ def data_store(self) -> Service__Fast_API__Client__Data__Store: # Access data_store operations
64
+ return Service__Fast_API__Client__Data__Store(_client=self)
65
+
66
+ @cache_on_self
67
+ def data(self) -> Service__Fast_API__Client__Data: # Access data operations
68
+ return Service__Fast_API__Client__Data(_client=self)
69
+
70
+ @cache_on_self
71
+ def zip(self) -> Service__Fast_API__Client__Zip: # Access zip operations
72
+ return Service__Fast_API__Client__Zip(_client=self)
73
+
74
+ @cache_on_self
75
+ def namespace(self) -> Service__Fast_API__Client__Namespace: # Access namespace operations
76
+ return Service__Fast_API__Client__Namespace(requests=self.requests())
77
+
78
+ @cache_on_self
79
+ def namespaces(self) -> Service__Fast_API__Client__Namespaces: # Access namespace operations
80
+ return Service__Fast_API__Client__Namespaces(_client=self)
81
+
82
+ @cache_on_self
83
+ def admin_storage(self) -> Service__Fast_API__Client__Admin__Storage: # Access admin_storage operations
84
+ return Service__Fast_API__Client__Admin__Storage(requests=self.requests())
85
+
86
+ @cache_on_self
87
+ def server(self) -> Service__Fast_API__Client__Server: # Access server operations
88
+ return Service__Fast_API__Client__Server(_client=self)
89
+
90
+ @cache_on_self
91
+ def info(self) -> Service__Fast_API__Client__Info: # Access info operations
92
+ return Service__Fast_API__Client__Info(_client=self)
93
+
94
+ # @cache_on_self
95
+ # def auth(self) -> Service__Fast_API__Client__Auth: # Access auth operations
96
+ # return Service__Fast_API__Client__Auth(_client=self)
@@ -0,0 +1,23 @@
1
+ from fastapi import FastAPI
2
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
3
+ from osbot_utils.type_safe.primitives.core.Safe_UInt import Safe_UInt
4
+ from osbot_utils.type_safe.primitives.domains.common.safe_str.Safe_Str__Version import Safe_Str__Version
5
+ from osbot_utils.type_safe.primitives.domains.http.safe_str.Safe_Str__Http__Header__Name import Safe_Str__Http__Header__Name
6
+ from osbot_utils.type_safe.primitives.domains.http.safe_str.Safe_Str__Http__Header__Value import Safe_Str__Http__Header__Value
7
+ from osbot_utils.type_safe.primitives.domains.web.safe_str.Safe_Str__Url import Safe_Str__Url
8
+ from osbot_utils.type_safe.primitives.domains.identifiers.safe_str.Safe_Str__Id import Safe_Str__Id
9
+ from mgraph_ai_service_cache_client.client.requests.schemas.enums.Enum__Client__Mode import Enum__Client__Mode
10
+ from mgraph_ai_service_cache_client.utils.Version import version__mgraph_ai_service_cache_client
11
+
12
+ CACHE__SERVICE__NAME = "Cache__Service__Fast_API"
13
+ CACHE__SERVICE__REQUEST__TIMEOUT = 30
14
+
15
+ class Cache__Service__Fast_API__Client__Config(Type_Safe):
16
+ base_url : Safe_Str__Url = None
17
+ api_key : Safe_Str__Http__Header__Value = None # Optional API key
18
+ api_key_header : Safe_Str__Http__Header__Name = None # Header name for API key
19
+ mode : Enum__Client__Mode = Enum__Client__Mode.IN_MEMORY
20
+ fast_api_app : FastAPI = None # FastAPI app for in-memory
21
+ timeout : Safe_UInt = CACHE__SERVICE__REQUEST__TIMEOUT # Request timeout in seconds
22
+ service_name : Safe_Str__Id = CACHE__SERVICE__NAME
23
+ service_version : Safe_Str__Version = version__mgraph_ai_service_cache_client
@@ -0,0 +1,121 @@
1
+ from typing import Any, Dict, List
2
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
3
+ from mgraph_ai_service_cache_client.client.requests.Cache__Service__Fast_API__Client__Requests import Cache__Service__Fast_API__Client__Requests
4
+ from mgraph_ai_service_cache_client.schemas.routes.admin.Schema__Routes__Admin__Storage__Files_All__Response import Schema__Routes__Admin__Storage__Files_All__Response
5
+
6
+
7
+ class Service__Fast_API__Client__Admin__Storage(Type_Safe):
8
+ requests : Cache__Service__Fast_API__Client__Requests
9
+
10
+ def bucket_name(self) -> Dict: # Auto-generated from endpoint get__bucket_name
11
+ # Build path
12
+ path = "/admin/storage/bucket-name"
13
+ body = None
14
+ # Execute request
15
+ result = self.requests.execute(
16
+ method = "GET",
17
+ path = path,
18
+ body = body
19
+ )
20
+ # Return response data
21
+ return result.json
22
+
23
+ def file__exists(self, path: Any) -> Dict: # Auto-generated from endpoint get__file__exists
24
+ # Build path
25
+ path = f"/admin/storage/file/exists/{path}" # FIXED was {path:path}
26
+ body = None
27
+ # Execute request
28
+ result = self.requests.execute(
29
+ method = "GET",
30
+ path = path,
31
+ body = body
32
+ )
33
+ # Return response data
34
+ return result.json if result.json else {}
35
+
36
+ def file__bytes(self, path: Any) -> bytes: # Auto-generated from endpoint get__file__bytes
37
+ # Build path
38
+ path = f"/admin/storage/file/bytes/{path}"
39
+ body = None
40
+ # Execute request
41
+ result = self.requests.execute( method = "GET",
42
+ path = path,
43
+ body = body)
44
+ return result.content # Return response data
45
+
46
+ def file__json(self, path: Any) -> Dict: # Auto-generated from endpoint get__file__json
47
+ # Build path
48
+ path = f"/admin/storage/file/json/{path}"
49
+ body = None
50
+ # Execute request
51
+ result = self.requests.execute( method = "GET",
52
+ path = path ,
53
+ body = body )
54
+ # Return response data
55
+ return result.json if result.json else {}
56
+
57
+ def files__in__path(self, # List files in path
58
+ path : str = '' ,
59
+ return_full_path: bool = False ,
60
+ recursive : bool = False
61
+ ) -> List[str]:
62
+
63
+
64
+ endpoint = f"/admin/storage/files/in/{path}" # Build endpoint
65
+ params = []
66
+
67
+ if return_full_path:
68
+ params.append(f"return_full_path={return_full_path}")
69
+ if recursive:
70
+ params.append(f"recursive={recursive}")
71
+
72
+ if params:
73
+ endpoint = f"{endpoint}?{'&'.join(params)}"
74
+
75
+ result = self.requests.execute(method = "GET",
76
+ path = endpoint,
77
+ body = None)
78
+ return result.json if result.json else []
79
+
80
+ def files__all__path(self, path: str) -> Schema__Routes__Admin__Storage__Files_All__Response: # Auto-generated from endpoint get__files__all__path
81
+ # Build path
82
+ path = f"/admin/storage/files/all/{path}"
83
+ body = None
84
+ # Execute request
85
+ result = self.requests.execute(
86
+ method = "GET",
87
+ path = path,
88
+ body = body
89
+ )
90
+ # Return response data
91
+ return Schema__Routes__Admin__Storage__Files_All__Response(**result.json)
92
+ #return result.json if result.json else result.text
93
+
94
+ def folders(self, # List folders in directory path
95
+ path : str = '' , # Directory path to list folders from
96
+ return_full_path: bool = False , # If True, return full paths; if False, return relative names
97
+ recursive : bool = False # If True, list all folders recursively; if False, list only direct children
98
+ ) -> List[str]: # List of folder paths (string)
99
+
100
+ endpoint = f"/admin/storage/folders/{path}" # Build endpoint with path
101
+ params = []
102
+
103
+ if return_full_path:
104
+ params.append(f"return_full_path={return_full_path}")
105
+ if recursive:
106
+ params.append(f"recursive={recursive}")
107
+
108
+ if params:
109
+ endpoint = f"{endpoint}?{'&'.join(params)}"
110
+
111
+ result = self.requests.execute(method = "GET",
112
+ path = endpoint,
113
+ body = None)
114
+ return result.json if result.json else []
115
+
116
+ def file__delete(self, path: str) -> Dict[str, Any]: # Delete a file at path
117
+ endpoint = f"/admin/storage/file/delete/{path}" # Build path
118
+ result = self.requests.execute(method = "DELETE",
119
+ path = endpoint,
120
+ body = None)
121
+ return result.json if result.json else {} # Return dict (empty if error)
@@ -12,7 +12,7 @@ class Service__Fast_API__Client__Data__Delete(Type_Safe):
12
12
 
13
13
  def delete__all__data__files(self, cache_id: str, namespace: str) -> Dict: # Auto-generated from endpoint delete__delete__all__data__files
14
14
  # Build path
15
- path = f"/{{namespace}}/cache/{{cache_id}}/data/delete/all"
15
+ path = f"/{namespace}/cache/{cache_id}/data/delete/all"
16
16
  body = None
17
17
  # Execute request
18
18
  result = self.requests.execute(
@@ -25,7 +25,7 @@ class Service__Fast_API__Client__Data__Delete(Type_Safe):
25
25
 
26
26
  def delete__all__data__files__with__key(self, cache_id: str, namespace: str, data_key: str) -> Dict: # Auto-generated from endpoint delete__delete__all__data__files__with__key
27
27
  # Build path
28
- path = f"/{{namespace}}/cache/{{cache_id}}/data/delete/all/{data_key:path}"
28
+ path = f"/{namespace}/cache/{cache_id}/data/delete/all/{data_key}"
29
29
  body = None
30
30
  # Execute request
31
31
  result = self.requests.execute(
@@ -38,7 +38,7 @@ class Service__Fast_API__Client__Data__Delete(Type_Safe):
38
38
 
39
39
  def delete__data__file__with__id(self, cache_id: str, namespace: str, data_type: Enum__Cache__Data_Type, data_file_id: str) -> Dict: # Auto-generated from endpoint delete__delete__data__file__with__id
40
40
  # Build path
41
- path = f"/{{namespace}}/cache/{{cache_id}}/data/delete/{{data_type}}/{{data_file_id}}"
41
+ path = f"/{namespace}/cache/{cache_id}/data/delete/{data_type}/{data_file_id}"
42
42
  body = None
43
43
  # Execute request
44
44
  result = self.requests.execute(
@@ -51,7 +51,7 @@ class Service__Fast_API__Client__Data__Delete(Type_Safe):
51
51
 
52
52
  def delete__data__file__with__id_and_key(self, cache_id: str, namespace: str, data_type: Enum__Cache__Data_Type, data_key: str, data_file_id: str) -> Dict: # Auto-generated from endpoint delete__delete__data__file__with__id_and_key
53
53
  # Build path
54
- path = f"/{{namespace}}/cache/{{cache_id}}/data/delete/{{data_type}}/{data_key:path}/{{data_file_id}}"
54
+ path = f"/{namespace}/cache/{cache_id}/data/delete/{data_type}/{data_key}/{data_file_id}"
55
55
  body = None
56
56
  # Execute request
57
57
  result = self.requests.execute(
@@ -1,5 +1,7 @@
1
- from typing import Any, Dict
2
- from osbot_utils.type_safe.Type_Safe import Type_Safe
1
+ from typing import Any, Dict
2
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
3
+ from osbot_utils.type_safe.type_safe_core.decorators.type_safe import type_safe
4
+
3
5
 
4
6
  class Service__Fast_API__Client__Data__Retrieve(Type_Safe):
5
7
  _client: Any # Reference to main client
@@ -34,7 +36,12 @@ class Service__Fast_API__Client__Data__Retrieve(Type_Safe):
34
36
  # Return response data
35
37
  return result.json if result.json else result.text
36
38
 
37
- def data__string__with__id(self, cache_id: str, namespace: str, data_file_id: str) -> Dict: # Auto-generated from endpoint get__data__string__with__id
39
+ @type_safe
40
+ def data__string__with__id(self,
41
+ cache_id: str,
42
+ namespace: str,
43
+ data_file_id: str
44
+ ) -> str: # Auto-generated from endpoint get__data__string__with__id
38
45
  # Build path
39
46
  path = f"/{namespace}/cache/{cache_id}/data/string/{data_file_id}"
40
47
  body = None
@@ -44,10 +51,15 @@ class Service__Fast_API__Client__Data__Retrieve(Type_Safe):
44
51
  path = path,
45
52
  body = body
46
53
  )
47
- # Return response data
48
- return result.json if result.json else result.text
54
+ if result.status_code == 200:
55
+ return result.text
56
+ return None
49
57
 
50
- def data__string__with__id_and_key(self, cache_id: str, namespace: str, data_key: str, data_file_id: str) -> Dict: # Auto-generated from endpoint get__data__string__with__id_and_key
58
+ def data__string__with__id_and_key(self,
59
+ cache_id: str,
60
+ namespace: str,
61
+ data_key: str,
62
+ data_file_id: str) -> Dict: # Auto-generated from endpoint get__data__string__with__id_and_key
51
63
  # Build path
52
64
  path = f"/{namespace}/cache/{cache_id}/data/string/{data_key}/{data_file_id}"
53
65
  body = None
@@ -1,7 +1,8 @@
1
- from typing import Any, Dict
2
- from osbot_utils.type_safe.Type_Safe import Type_Safe
3
- from osbot_utils.type_safe.primitives.domains.files.safe_str.Safe_Str__File__Path import Safe_Str__File__Path
4
- from osbot_utils.type_safe.primitives.domains.identifiers.safe_str.Safe_Str__Id import Safe_Str__Id
1
+ from typing import Any, Dict
2
+ from osbot_utils.type_safe.Type_Safe import Type_Safe
3
+ from osbot_utils.type_safe.primitives.domains.files.safe_str.Safe_Str__File__Path import Safe_Str__File__Path
4
+ from osbot_utils.type_safe.primitives.domains.identifiers.safe_str.Safe_Str__Id import Safe_Str__Id
5
+ from mgraph_ai_service_cache_client.schemas.cache.data.Schema__Cache__Data__Store__Response import Schema__Cache__Data__Store__Response
5
6
 
6
7
 
7
8
  class Service__Fast_API__Client__Data__Store(Type_Safe):
@@ -11,7 +12,11 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
11
12
  def requests(self): # Access the unified request handler
12
13
  return self._client.requests()
13
14
 
14
- def data__store_binary(self, cache_id: str, namespace: str, body:bytes) -> Dict: # Auto-generated from endpoint post__data__store_binary
15
+ def data__store_binary(self,
16
+ cache_id : str,
17
+ namespace: str,
18
+ body :bytes
19
+ ) -> Schema__Cache__Data__Store__Response: # Auto-generated from endpoint post__data__store_binary
15
20
  # Build path
16
21
  path = f"/{namespace}/cache/{cache_id}/data/store/binary"
17
22
  #body = None
@@ -21,10 +26,15 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
21
26
  path = path,
22
27
  body = body
23
28
  )
24
- # Return response data
29
+ return Schema__Cache__Data__Store__Response.from_json(result.json) # Return response data
25
30
  return result.json if result.json else result.text
26
31
 
27
- def data__store_binary__with__id(self, cache_id: str, namespace: str, data_file_id: str, body:bytes) -> Dict: # Auto-generated from endpoint post__data__store_binary__with__id
32
+ def data__store_binary__with__id(self,
33
+ cache_id : str ,
34
+ namespace : str ,
35
+ data_file_id: str ,
36
+ body :bytes
37
+ ) -> Schema__Cache__Data__Store__Response: # Auto-generated from endpoint post__data__store_binary__with__id
28
38
  # Build path
29
39
  path = f"/{namespace}/cache/{cache_id}/data/store/binary/{data_file_id}"
30
40
  #body = None
@@ -34,10 +44,16 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
34
44
  path = path,
35
45
  body = body
36
46
  )
37
- # Return response data
38
- return result.json if result.json else result.text
47
+ return Schema__Cache__Data__Store__Response.from_json(result.json) # Return response data
48
+ #return result.json if result.json else result.text
39
49
 
40
- def data__store_binary__with__id_and_key(self, cache_id: str, namespace: str, data_key: str, data_file_id: str, body:bytes) -> Dict: # Auto-generated from endpoint post__data__store_binary__with__id_and_key
50
+ def data__store_binary__with__id_and_key(self,
51
+ cache_id : str ,
52
+ namespace : str ,
53
+ data_key : str ,
54
+ data_file_id: str ,
55
+ body : bytes
56
+ ) -> Schema__Cache__Data__Store__Response: # Auto-generated from endpoint post__data__store_binary__with__id_and_key
41
57
  # Build path
42
58
  path = f"/{namespace}/cache/{cache_id}/data/store/binary/{data_key}/{data_file_id}"
43
59
  #body = None
@@ -47,10 +63,14 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
47
63
  path = path,
48
64
  body = body
49
65
  )
50
- # Return response data
51
- return result.json if result.json else result.text
66
+ return Schema__Cache__Data__Store__Response.from_json(result.json) # Return response data
67
+ #return result.json if result.json else result.text
52
68
 
53
- def data__store_json(self, cache_id: str, namespace: str, body:dict) -> Dict: # Auto-generated from endpoint post__data__store_json
69
+ def data__store_json(self,
70
+ cache_id : str,
71
+ namespace: str,
72
+ body :dict
73
+ ) -> Schema__Cache__Data__Store__Response: # Auto-generated from endpoint post__data__store_json
54
74
  # Build path
55
75
  #path = f"/{{namespace}}/cache/{{cache_id}}/data/store/json"
56
76
  path = f"/{namespace}/cache/{cache_id}/data/store/json"
@@ -61,10 +81,14 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
61
81
  path = path,
62
82
  body = body
63
83
  )
64
- # Return response data
65
- return result.json if result.json else result.text
84
+ return Schema__Cache__Data__Store__Response.from_json(result.json) # Return response data
85
+ #return result.json if result.json else result.text
66
86
 
67
- def data__store_json__with__id(self, cache_id: str, namespace: str, data_file_id: str, body:dict) -> Dict: # Auto-generated from endpoint post__data__store_json__with__id
87
+ def data__store_json__with__id(self,
88
+ cache_id: str,
89
+ namespace: str,
90
+ data_file_id: str,
91
+ body:dict) -> Schema__Cache__Data__Store__Response: # Auto-generated from endpoint post__data__store_json__with__id
68
92
  # Build path
69
93
  path = f"/{namespace}/cache/{cache_id}/data/store/json/{data_file_id}"
70
94
  #body = None
@@ -74,13 +98,14 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
74
98
  path = path,
75
99
  body = body
76
100
  )
77
- # Return response data
78
- return result.json if result.json else result.text
101
+ return Schema__Cache__Data__Store__Response.from_json(result.json) # Return response data
102
+ #return result.json if result.json else result.text
79
103
 
80
104
  def data__store_json__with__id_and_key(self, cache_id: str,
81
105
  namespace: str, data_key: str,
82
106
  data_file_id: str,
83
- body: dict) -> Dict: # Auto-generated from endpoint post__data__store_json__with__id_and_key
107
+ body: dict
108
+ ) -> Schema__Cache__Data__Store__Response: # Auto-generated from endpoint post__data__store_json__with__id_and_key
84
109
  # Build path
85
110
  path = f"/{namespace}/cache/{cache_id}/data/store/json/{data_key}/{data_file_id}"
86
111
  #body = None
@@ -90,14 +115,13 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
90
115
  path = path,
91
116
  body = body
92
117
  )
93
- # Return response data
94
- return result.json if result.json else result.text
118
+ return Schema__Cache__Data__Store__Response.from_json(result.json) # Return response data
119
+ #return result.json if result.json else result.text
95
120
 
96
- #def data__store_string(self, cache_id: str, namespace: str) -> Dict: # todo: BUG same as the others
97
- def data__store_string(self, cache_id: str, namespace: Safe_Str__Id, body:str) -> Dict:
121
+ def data__store_string(self, cache_id: str,
122
+ namespace: Safe_Str__Id,
123
+ body:str) -> Schema__Cache__Data__Store__Response:
98
124
  # Build path
99
- #path = f"/{{namespace}}/cache/{{cache_id}}/data/store/string" # BUG
100
- #body = None
101
125
  path = f"/{namespace}/cache/{cache_id}/data/store/string"
102
126
  # Execute request
103
127
  result = self.requests.execute(
@@ -105,37 +129,32 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
105
129
  path = path,
106
130
  body = body
107
131
  )
108
- # Return response data
109
- return result.json if result.json else result.text
132
+ return Schema__Cache__Data__Store__Response.from_json(result.json)
133
+ #return result.json if result.json else result.text
110
134
 
111
- #def data__store_string__with__id(self, cache_id: str, namespace: str, data_file_id: str) -> Dict: # Auto-generated from endpoint post__data__store_string__with__id
112
135
  def data__store_string__with__id(self, cache_id : str,
113
136
  namespace : Safe_Str__Id,
114
137
  data_file_id : Safe_Str__Id,
115
138
  body : str
116
- ) -> Dict: # Auto-generated from endpoint post__data__store_string__with__id
139
+ ) -> Schema__Cache__Data__Store__Response: # Auto-generated from endpoint post__data__store_string__with__id
117
140
 
118
- #path = f"/{{namespace}}/cache/{{cache_id}}/data/store/string/{{data_file_id}}" # Build path
119
141
  path = f"/{namespace}/cache/{cache_id}/data/store/string/{data_file_id}" # Build path
120
- #body = None
121
142
  # Execute request
122
143
  result = self.requests.execute(
123
144
  method = "POST",
124
145
  path = path,
125
146
  body = body
126
147
  )
127
- # Return response data
148
+ return Schema__Cache__Data__Store__Response.from_json(result.json) # Return response data
128
149
  return result.json if result.json else result.text
129
150
 
130
- #def data__store_string__with__id_and_key(self, cache_id: str, namespace: str, data_key: str, data_file_id: str) -> Dict: # Auto-generated from endpoint post__data__store_string__with__id_and_key
131
151
  def data__store_string__with__id_and_key(self, cache_id : str ,
132
152
  namespace : Safe_Str__Id ,
133
153
  data_key : Safe_Str__File__Path ,
134
154
  data_file_id : Safe_Str__Id ,
135
155
  body: str
136
- ) -> Dict: # Auto-generated from endpoint post__data__store_string__with__id_and_key
156
+ ) -> Schema__Cache__Data__Store__Response: # Auto-generated from endpoint post__data__store_string__with__id_and_key
137
157
 
138
- #path = f"/{{namespace}}/cache/{{cache_id}}/data/store/string/{data_key:path}/{{data_file_id}}" # Build path
139
158
  path = f"/{namespace}/cache/{cache_id}/data/store/string/{data_key}/{data_file_id}" # Build path
140
159
  #body = None
141
160
  # Execute request
@@ -144,5 +163,5 @@ class Service__Fast_API__Client__Data__Store(Type_Safe):
144
163
  path = path,
145
164
  body = body
146
165
  )
147
- # Return response data
148
- return result.json if result.json else result.text
166
+ return Schema__Cache__Data__Store__Response.from_json(result.json) # Return response data
167
+ #return result.json if result.json else result.text
@@ -1,4 +1,4 @@
1
- from typing import Any, Optional, Dict
1
+ from typing import Any, Dict
2
2
  from osbot_utils.type_safe.Type_Safe import Type_Safe
3
3
 
4
4
  class Service__Fast_API__Client__File__Delete(Type_Safe):
@@ -8,9 +8,10 @@ class Service__Fast_API__Client__File__Delete(Type_Safe):
8
8
  def requests(self): # Access the unified request handler
9
9
  return self._client.requests()
10
10
 
11
+ # todo: this should a variation of the Schema__Cache__Delete__Success (which needed refactoring)
11
12
  def delete__cache_id(self, cache_id: str, namespace: str) -> Dict: # Auto-generated from endpoint delete__delete__cache_id
12
13
  # Build path
13
- path = f"/{{namespace}}/delete/{{cache_id}}"
14
+ path = f"/{namespace}/delete/{cache_id}"
14
15
  body = None
15
16
  # Execute request
16
17
  result = self.requests.execute(
@@ -18,5 +19,6 @@ class Service__Fast_API__Client__File__Delete(Type_Safe):
18
19
  path = path,
19
20
  body = body
20
21
  )
21
- # Return response data
22
- return result.json if result.json else result.text
22
+ if result.status_code == 200: # Return response data
23
+ return result.json
24
+ return None
@@ -10,7 +10,7 @@ class Service__Fast_API__Client__File__Exists(Type_Safe):
10
10
 
11
11
  def exists__hash__cache_hash(self, cache_hash: str, namespace: str) -> Dict: # Auto-generated from endpoint get__exists__hash__cache_hash
12
12
  # Build path
13
- path = f"/{{namespace}}/exists/hash/{{cache_hash}}"
13
+ path = f"/{namespace}/exists/hash/{cache_hash}"
14
14
  body = None
15
15
  # Execute request
16
16
  result = self.requests.execute(
@@ -1,4 +1,4 @@
1
- from typing import Any, Optional, Dict
1
+ from typing import Any, Dict
2
2
  from osbot_utils.type_safe.Type_Safe import Type_Safe
3
3
 
4
4