{"id":27328,"library":"raiutils","title":"RAI Utils","description":"Common basic utilities used across various Responsible AI tools from Microsoft, including raiwidgets and responsibleai. Version 0.4.2, released as part of the responsible-ai-toolbox monorepo. Package is maintained alongside the broader toolbox, with occasional patches.","status":"active","version":"0.4.2","language":"python","source_language":"en","source_url":"https://github.com/microsoft/responsible-ai-widgets","tags":["responsible-ai","microsoft","utilities","machine-learning"],"install":[{"cmd":"pip install raiutils","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"raiutils is a namespace package; direct import is fine.","symbol":"raiutils","correct":"import raiutils"}],"quickstart":{"code":"import raiutils\n\n# Check if a dataset is valid\nfrom raiutils.data_processing import validate_dataset\nimport pandas as pd\ndf = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]})\nvalidate_dataset(df, target_column='a')\nprint('Dataset validation passed')","lang":"python","description":"Demonstrates basic usage of raiutils data validation."},"warnings":[{"fix":"Only import raiutils modules that are documented or used by the higher-level packages.","message":"raiutils is not intended to be used standalone; it is a dependency for raiwidgets and responsibleai. Direct use of internal APIs may break without notice.","severity":"gotcha","affected_versions":"all"},{"fix":"Check compatibility with your specific raiwidgets/responsibleai version by verifying the toolbox release notes.","message":"The package version is not aligned with the main toolbox releases. raiutils 0.4.2 may be used with a range of raiwidgets/responsibleai versions.","severity":"gotcha","affected_versions":">=0.4.0"},{"fix":"Pin versions and test after upgrading the responsible-ai-toolbox.","message":"Some utility functions may have been moved or renamed in more recent toolbox versions. Always refer to the source code or documentation of the exact toolbox version you are using.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install raiutils'","cause":"raiutils is not installed or the environment is missing it.","error":"ModuleNotFoundError: No module named 'raiutils'"},{"fix":"Use 'from raiutils.data_processing import validate_dataset'","cause":"Direct import of raiutils does not include submodules; you must import the specific module.","error":"AttributeError: module 'raiutils' has no attribute 'validate_dataset'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}