{"categories":[{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"}],"enrichment":{"capability":"PyangBind converts YANG data models into Python class hierarchies, allowing you to manipulate YANG-modeled data programmatically through Python objects with built-in serialization, validation, and XPATH lookup support.","skillfed_tags":["yang-modeling","network-config","code-generation"],"use_cases":["Generate Python APIs from YANG network models and use PyangBind to serialize/deserialize configuration to JSON for REST APIs.","Build network device simulators or test harnesses that validate configuration against YANG constraints using generated PyangBind classes.","Query and manipulate complex network state hierarchies using XPATH expressions through YANGPathHelper.","Enforce YANG type restrictions (ranges, patterns, decimal precision) on Python objects without manual validation code.","Migrate or translate network configuration between formats by loading JSON into YANG-derived classes and exporting to other formats."],"what_it_does":"PyangBind is the runtime library that powers YANG-to-Python code generation. When you use the pyang plugin to convert a YANG network model into Python classes, those generated classes inherit from and rely on PyangBind's base classes and utility functions. The package provides the foundational infrastructure: a base class for all YANG containers and modules, JSON serialization and deserialization, XPATH-based object lookup, and type wrappers that enforce YANG constraints like ranges, patterns, and restricted decimal precision.\n\nYou typically use PyangBind indirectly\u2014by installing it alongside pyang, running pyang's code generator on your YANG files, and then importing the generated Python modules. The generated code uses PyangBind's classes and helpers to validate data, convert between Python objects and JSON, and query object hierarchies. It's essential for anyone building network configuration management tools, device simulators, or data-driven applications that work with YANG-modeled network state.","worth_installing":"Yes. PyangBind is actively maintained, has no known vulnerabilities, installs with low friction, and is essential infrastructure for anyone using pyang to generate Python bindings from YANG models. The Apache 2.0 license is permissive. Install it as a dependency when you need runtime support for YANG-derived Python classes."},"id":"pyangbind","links":{"html":"https://skillfed.io/packages/pyangbind","md":"https://skillfed.io/packages/pyangbind.md","pypi":"https://pypi.org/project/pyangbind/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-10","license_spdx":null,"license_treatment":"permissive","name":"pyangbind","python_support":"supports_current","summary":"PyangBind is a plugin for pyang which converts YANG data models into a Python class hierarchy, such that Python can be used to manipulate data that conforms with a YANG model."},"popularity":{"monthly_downloads":380891,"position":7100,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.7"}
