{"id":26879,"library":"data-designer-config","title":"DataDesigner Config","description":"Configuration layer for DataDesigner synthetic data generation. Version 0.5.9, requires Python >=3.10. Provides declarative YAML/JSON-based configuration management for defining synthetic data schemas, constraints, and generation pipelines.","status":"active","version":"0.5.9","language":"python","source_language":"en","source_url":"https://github.com/DataDesigner/data-designer-config","tags":["synthetic-data","configuration","data-generation","yaml"],"install":[{"cmd":"pip install data-designer-config","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Module uses hyphens but import path uses underscores; older docs may reference wrong package.","wrong":"from data_designer.config import ConfigSchema","symbol":"ConfigSchema","correct":"from data_designer_config import ConfigSchema"},{"note":"No common mistake known, but ensure correct underscore usage.","wrong":null,"symbol":"load_config","correct":"from data_designer_config import load_config"}],"quickstart":{"code":"from data_designer_config import ConfigSchema, load_config\n\nschema = ConfigSchema.from_yaml('config.yaml')\nconfig = load_config('config.yaml')\nprint(config)\n","lang":"python","description":"Load a configuration from a YAML file."},"warnings":[{"fix":"Update config YAML: wrap distribution and nullable under a 'constraints' key.","message":"In version 0.6.0, the YAML schema format changed: fields `distribution` and `nullable` are now nested under `constraints`. Old configs will fail to parse.","severity":"breaking","affected_versions":">=0.6.0"},{"fix":"Replace `load_json_config(path)` with `load_config(path)`. The new function auto-detects format.","message":"The function `load_json_config` is deprecated as of 0.5.8. Use `load_config` with file extension detection instead.","severity":"deprecated","affected_versions":">=0.5.8"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from data_designer_config import ...` (underscores, not hyphens).","cause":"Using hyphens instead of underscores in import statement.","error":"ModuleNotFoundError: No module named 'data_designer_config'"},{"fix":"Use `ConfigSchema.from_yaml('path.yaml')` which handles opening internally, or use `with open(...) as f: ConfigSchema.from_yaml(f)`.","cause":"Passing a file path string directly to from_yaml without opening the file.","error":"ConfigSchema.from_yaml() error: 'str' object has no attribute 'read'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}