{"id":27782,"library":"ga4gh-gks-metaschema","title":"GA4GH Genomic Knowledge Standards Meta-schema","description":"Tools for working with the GA4GH Genomic Knowledge Standards (GKS) meta-schema, including schema parsing, validation, and code generation. Current version: 0.3.2, requires Python >=3.12. Release cadence: irregular, with minor fixes and CI improvements.","status":"active","version":"0.3.2","language":"python","source_language":"en","source_url":"https://github.com/ga4gh/gks-metaschema","tags":["ga4gh","genomics","knowledge-standards","schema","validation"],"install":[{"cmd":"pip install ga4gh-gks-metaschema","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The correct package name on PyPI uses hyphens, but the import uses underscores.","wrong":"from ga4gh_gks_metaschema import SchemaParser","symbol":"SchemaParser","correct":"from gks_metaschema import SchemaParser"}],"quickstart":{"code":"from gks_metaschema import SchemaParser\n\n# Load a metaschema YAML file\nparser = SchemaParser()\nschema = parser.parse('path/to/schema.yaml')\nprint(schema)\n","lang":"python","description":"Basic usage: parse a GKS meta-schema YAML file into Python objects."},"warnings":[{"fix":"Use 'from gks_metaschema import ...'.","message":"The import path uses underscores (gks_metaschema), not hyphens (ga4gh-gks-metaschema). A common mistake is using the PyPI name directly in imports.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Ensure your environment uses Python 3.12 or later.","message":"Version 0.3.0 dropped Python 3.11 support; requires Python >=3.12.","severity":"breaking","affected_versions":">=0.3.0"},{"fix":"Update to 0.3.2 and adjust any code that assumed the length check.","message":"The 'build_inheritance_dicts' function had a length check removed in version 0.3.2. Code relying on that check may behave differently.","severity":"deprecated","affected_versions":"0.3.0 - 0.3.1"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'import gks_metaschema' or 'from gks_metaschema import ...'.","cause":"Using the PyPI package name (with hyphens) as the import path.","error":"ModuleNotFoundError: No module named 'ga4gh_gks_metaschema'"},{"fix":"Check the documentation for the correct class name; common entry points are SchemaParser, MetaSchema, etc.","cause":"The class or function name might be outdated or not imported correctly.","error":"AttributeError: module 'gks_metaschema' has no attribute 'SchemaParser'"},{"fix":"Update pydantic to >=2.0.0 or follow the library's pinned dependency.","cause":"Using an older version of pydantic that is incompatible with the metaschema parser.","error":"pydantic.errors.PydanticUserError: A custom validator may not have type-checking..."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}