Skip to content

karlnewell/pyang-pydantic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyang-pydantic

pyang plugin to output Pydantic models

Plugin for the pyang YANG parser / compiler.

Using the plugin

  1. Install pyang and Pydantic

    • pip install pyang pydantic
  2. Clone / download this repository

  3. 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

Examples

pyang -f pydantic --plugindir pyang-pydantic/plugins examples/turing-maching.yang

Not yet implemented

This list is not exhaustive of what hasn't been implemented

  • rpcs
  • notifications
  • attributes types based on node type

About

Pyang plugin to produce Pydantic models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages