aixtools 0.1.9__py3-none-any.whl → 0.1.10__py3-none-any.whl

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.

Potentially problematic release.


This version of aixtools might be problematic. Click here for more details.

aixtools/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.1.9'
32
- __version_tuple__ = version_tuple = (0, 1, 9)
31
+ __version__ = version = '0.1.10'
32
+ __version_tuple__ = version_tuple = (0, 1, 10)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -0,0 +1,9 @@
1
+ """
2
+ Compliance module for aixtools.
3
+
4
+ This module provides utilities for managing compliance-related data and operations.
5
+ """
6
+
7
+ from .private_data import PrivateData
8
+
9
+ __all__ = ["PrivateData"]
@@ -1,3 +1,5 @@
1
+ """Private data management module for aixtools compliance."""
2
+
1
3
  import json
2
4
  from pathlib import Path
3
5
 
@@ -90,7 +92,7 @@ class PrivateData:
90
92
 
91
93
  def _has_private_data_file(self) -> bool:
92
94
  """Check if the private data file exists in the workspace."""
93
- private_data_path = self.get_private_data_path() # type: ignore
95
+ private_data_path = self._get_private_data_path()
94
96
  return private_data_path.exists()
95
97
 
96
98
  def save(self) -> None:
@@ -102,7 +104,7 @@ class PrivateData:
102
104
  return
103
105
  # If there is private data, serialize this object as JSON
104
106
  private_data_path.parent.mkdir(parents=True, exist_ok=True)
105
- with open(private_data_path, "w") as f:
107
+ with open(private_data_path, "w", encoding="utf-8") as f:
106
108
  # Dump class as JSON, excluding the context
107
109
  data_dict = self.__dict__.copy()
108
110
  data_dict["ctx"] = None
@@ -118,7 +120,7 @@ class PrivateData:
118
120
  self._private_datasets = []
119
121
  self._idap_datasets = []
120
122
  return
121
- with open(private_data_path, "r") as f:
123
+ with open(private_data_path, "r", encoding="utf-8") as f:
122
124
  data = json.load(f)
123
125
  self.has_private_data = data.get("_has_private_data", False)
124
126
  self._private_datasets = data.get("_private_datasets", [])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aixtools
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: Tools for AI exploration and debugging
5
5
  Requires-Python: >=3.11.2
6
6
  Description-Content-Type: text/markdown
@@ -1,5 +1,5 @@
1
1
  aixtools/__init__.py,sha256=9NGHm7LjsQmsvjTZvw6QFJexSvAU4bCoN_KBk9SCa00,260
2
- aixtools/_version.py,sha256=ib8ckvf-NNDfacXd8unW0p5cf-gl57XyQvjoEMc_pvc,704
2
+ aixtools/_version.py,sha256=uf7mpKSLRNNF3RxSXHssYzKadEgmCS7IlRw4lFPAcUg,706
3
3
  aixtools/app.py,sha256=JzQ0nrv_bjDQokllIlGHOV0HEb-V8N6k_nGQH-TEsVU,5227
4
4
  aixtools/chainlit.md,sha256=yC37Ly57vjKyiIvK4oUvf4DYxZCwH7iocTlx7bLeGLU,761
5
5
  aixtools/context.py,sha256=I_MD40ZnvRm5WPKAKqBUAdXIf8YaurkYUUHSVVy-QvU,598
@@ -29,7 +29,8 @@ aixtools/agents/__init__.py,sha256=MAW196S2_G7uGqv-VNjvlOETRfuV44WlU1leO7SiR0A,2
29
29
  aixtools/agents/agent.py,sha256=E1zu70t53RqIbcLI_R09wUtsiYZR1bTnElCQ5PrsrKw,6127
30
30
  aixtools/agents/agent_batch.py,sha256=0Zu9yNCRPAQZPjXQ-dIUAmP1uGTVbxVt7xvnMpoJMjU,2251
31
31
  aixtools/agents/prompt.py,sha256=VCOVSnhNKsPIT347ouzwM1PH4I9UTm2cSnTh3ZpjRwk,3391
32
- aixtools/compliance/private_data.py,sha256=aYEd13eHUajs72nQxCXsa7tklXnqyurUaYuNzm8belQ,5258
32
+ aixtools/compliance/__init__.py,sha256=vnw0zEdySIJWvDAJ8DCRRaWmY_agEOz1qlpAdhmtiuo,191
33
+ aixtools/compliance/private_data.py,sha256=56VzAZ76lCq_fpfllkdm9ok8AQeEeIqrC-pqcfMjGpY,5342
33
34
  aixtools/db/__init__.py,sha256=b8vRhme3egV-aUZbAntnOaDkSXB8UT0Xy5oqQhU_z0Q,399
34
35
  aixtools/db/database.py,sha256=caWe95GlxZYlxn2ubDmR-_cQUW0ulkpR3BHunKIaOsw,3369
35
36
  aixtools/db/vector_db.py,sha256=be4JGyXj3o8VEfy9L6SO1aAoDET_zazMJkYfjlYHTYQ,4133
@@ -117,8 +118,8 @@ tests/unit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
117
118
  tests/unit/utils/test_files.py,sha256=AKFmXQqXstyKd2PreE4EmQyhQYeqOmu1Sp80MwHrf_Q,5782
118
119
  tests/unit/vault/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
119
120
  tests/unit/vault/test_vault.py,sha256=T9V2Opxl3N5sJPftw0Q4lnVOs6urGpAmffe0cz6PUfw,10445
120
- aixtools-0.1.9.dist-info/METADATA,sha256=NyTMeH1c44cDNbXW7VKy2feT-xConc_uGIx0gSa68KM,18569
121
- aixtools-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
122
- aixtools-0.1.9.dist-info/entry_points.txt,sha256=dHoutULEZx7xXSqJrZdViSVjfInJibfLibi2nRXL3SE,56
123
- aixtools-0.1.9.dist-info/top_level.txt,sha256=ee4eF-0pqu45zCUVml0mWIhnXQgqMQper2-49BBVHLY,40
124
- aixtools-0.1.9.dist-info/RECORD,,
121
+ aixtools-0.1.10.dist-info/METADATA,sha256=BvV1AzDpgiy7rjt6AFyUdAiDOwt_mN8CmmEo0JkM4C4,18570
122
+ aixtools-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
123
+ aixtools-0.1.10.dist-info/entry_points.txt,sha256=dHoutULEZx7xXSqJrZdViSVjfInJibfLibi2nRXL3SE,56
124
+ aixtools-0.1.10.dist-info/top_level.txt,sha256=ee4eF-0pqu45zCUVml0mWIhnXQgqMQper2-49BBVHLY,40
125
+ aixtools-0.1.10.dist-info/RECORD,,