--- id: yang-connector version: "26.7" license: Apache 2.0 license_treatment: permissive maintenance: active --- # yang.connector — YANG defined interface API protocol connector License: permissive · Maintenance: active · Downloads: 266.2K/mo ## What it is and what it does yang.connector is a NETCONF and gRPC/GNMI client library for Cisco's pyATS test automation framework. It abstracts the complexity of connecting to network devices that expose YANG data models, allowing you to send configuration commands, retrieve operational state, and automate network testing workflows. The package wraps lower-level libraries like ncclient (for NETCONF) and grpcio (for gRPC) to provide a unified interface aligned with pyATS conventions. The library is intended for network engineers and test automation developers who need to programmatically interact with Cisco devices or other NETCONF/GNMI-capable equipment. It handles the protocol-level details of SSH tunneling, XML parsing (via lxml), and gRPC serialization (via protobuf), so you focus on the test logic rather than connection management. Use it for: - Automate NETCONF configuration changes on network devices as part of a pyATS test suite - Retrieve operational state and configuration snapshots from YANG-modeled devices for validation - Build gRPC/GNMI clients to interact with modern Cisco devices supporting telemetry - Integrate network device connectivity into CI/CD pipelines for infrastructure testing - Compare before-and-after configurations during network automation workflows ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides NETCONF and gRPC/GNMI client implementations for connecting to network devices and managing YANG-modeled configurations, designed for integration with Cisco pyATS test automation. Yes, if you are working with Cisco pyATS or need to automate NETCONF/GNMI interactions with network devices. The package is actively maintained, has no known vulnerabilities, and integrates well with the pyATS ecosystem. Install it only if you have NETCONF or gRPC-capable devices to connect to; it is not useful as a standalone utility. ## Install pip install yang-connector uv add yang-connector poetry add yang-connector ## Installing yang.connector Before you install: Low friction installation with a pure-Python wheel. Active maintenance with a release within the last week. Five runtime dependencies (paramiko, lxml, ncclient, grpcio, protobuf) are all established libraries, though grpcio and protobuf add some weight to the dependency tree. License in practice: Apache 2.0 is permissive; you can use this package commercially and modify it freely, with the main obligation being to retain license and copyright notices. Quickstart: pip install yang.connector from yang.connector import NetconfClient client = NetconfClient(host='device_ip', username='user', password='pass') client.connect() Requires network connectivity to a NETCONF-enabled device; paramiko and ncclient must be able to establish SSH connections. Verify before relying: - Whether the package supports Python versions beyond 3.4 (classifier lists 3.4, but requires_python is unspecified) - Exact API surface and method signatures for NetconfClient and GNMI client classes - Whether gRPC/GNMI support is fully implemented or still in development ## Package facts - License: Apache 2.0 (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 266.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags netconf client library, gnmi grpc network device, yang configuration management, network device connector, cisco pyats integration, netconf config automation, yang data model interface, network-automation, cisco-pyats, netconf-gnmi [View on SkillFed](https://skillfed.io/packages/yang-connector) · [View on PyPI](https://pypi.org/project/yang-connector/)