pyang plugin to output Pydantic models
Plugin for the pyang YANG parser / compiler.
-
Install pyang and Pydantic
pip install pyang pydantic
-
Clone / download this repository
-
pyang -f pydantic --plugindir <.../path/to/repo/pyang-pydantic/plugins> <options> <YANG modules>
pyang -f pydantic --plugindir <.../path/to/repo/pyang-pydantic/plugins> --help
to see options
pyang -f pydantic --plugindir pyang-pydantic/plugins examples/turing-maching.yang
This list is not exhaustive of what hasn't been implemented
- rpcs
- notifications
- attributes types based on node type