Skip to content

A tool for translating models expressed in Pydantic to LinkML

Notifications You must be signed in to change notification settings

dandi/pydantic2linkml

 
 

Repository files navigation

linkml-model-generator

Translate pydantic-based schemas from python modules to LinkML.

Run

To run the program, use:

  python3 generate_linkml_from_aind.py --root_module_name="aind_data_schema.models" --output_file="aind.yml"

Limitations

  1. Supports only Pydantic models with maximum of one immediate parent that is a Pydantic model.

About

A tool for translating models expressed in Pydantic to LinkML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%