{"id":22345,"library":"sdmxschemas","title":"SDMX Schemas Python Wrapper","description":"sdmxschemas is a Python package providing the SDMX (Statistical Data and Metadata eXchange) schemas as a Python module for validation and reference. Version 1.0.0 supports SDMX 3.1 schemas. It is a thin wrapper over the official SDMX XSD and JSON schemas, enabling programmatic access to schema locations and content.","status":"active","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/Meaningful-Data/sdmx-schemas","tags":["sdmx","schemas","validation","statistics","metadata"],"install":[{"cmd":"pip install sdmxschemas","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Main class to access schema definitions.","symbol":"SDMXSchema","correct":"from sdmxschemas import SDMXSchema"},{"note":"Function to retrieve raw schema content.","symbol":"get_schema_content","correct":"from sdmxschemas import get_schema_content"}],"quickstart":{"code":"from sdmxschemas import SDMXSchema\n\n# Access schema version 3.1\nschema = SDMXSchema('3.1')\nprint(schema.versions)  # list available versions\nprint(schema.get_schema_names())  # list available schema files","lang":"python","description":"Initialize SDMXSchema with a version string and explore available schemas."},"warnings":[{"fix":"Use the version as defined by SDMX, e.g., '3.1' for SDMX 3.1.","message":"Version string must match exactly (e.g., '3.1', not '3.1.0' or 'v3.1').","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Always pin your dependency and check changelog for schema version removals.","message":"Some older SDMX versions may be removed in future releases.","severity":"deprecated","affected_versions":"1.0.0"},{"fix":"Use SDMXSchema class methods instead of accessing __file__ or similar.","message":"Schema paths are platform-dependent; avoid hardcoding the package directory.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install sdmxschemas' in the correct environment.","cause":"Package not installed or virtual environment not activated.","error":"ModuleNotFoundError: No module named 'sdmxschemas'"},{"fix":"Check available versions with SDMXSchema('').versions or use '3.1' exactly.","cause":"Requested version not available or misspelled.","error":"KeyError: '3.1'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}