1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-ncclient
7 SDESC[v11]= Python library for NETCONF clients (3.11)
8 SDESC[v12]= Python library for NETCONF clients (3.12)
9 HOMEPAGE= https://github.com/ncclient/ncclient
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/n/ncclient
14 DISTFILE[1]= ncclient-0.6.15.tar.gz:main
19 OPTIONS_AVAILABLE= PY311 PY312
20 OPTIONS_STANDARD= none
21 VOPTS[v11]= PY311=ON PY312=OFF
22 VOPTS[v12]= PY311=OFF PY312=ON
24 DISTNAME= ncclient-0.6.15
28 [PY311].BUILDRUN_DEPENDS_ON= python-setuptools:single:v11
29 python-paramiko:single:v11
30 python-lxml:single:v11
32 [PY311].USES_ON= python:v11,sutools
34 [PY312].BUILDRUN_DEPENDS_ON= python-setuptools:single:v12
35 python-paramiko:single:v12
36 python-lxml:single:v12
38 [PY312].USES_ON= python:v12,sutools
40 [FILE:2313:descriptions/desc.single]
41 ncclient: Python library for NETCONF clients
42 --------------------------------------------
44 ncclient is a Python library that facilitates client-side scripting and
45 application development around the NETCONF protocol. ncclient was
46 developed by [Shikar Bhushan]. It is now
47 maintained by `Leonidas Poulopoulos (@leopoul) <http://ncclient.org>`
48 and `Einar Nilsen-Nygaard (@einarnn)`.
51 `http://ncclient.readthedocs.org <http://ncclient.readthedocs.org>`_
54 `https://github.com/ncclient/ncclient
55 <https://github.com/ncclient/ncclient>`_
60 - Python 2.7 or Python 3.4+
67 If you are on Debian/Ubuntu install the following libs (via aptitude or
78 [ncclient] $ sudo python setup.py install
91 [ncclient] $ python examples/juniper/*.py
96 Get device running config
97 '''''''''''''''''''''''''
99 Use either an interactive Python console (ipython) or integrate the
100 following in your code:
104 from ncclient import manager
106 with manager.connect(host=host, port=830, username=user,
107 hostkey_verify=False) as m:
108 c = m.get_config(source='running').data_xml
109 with open("%s.xml" % host, 'w') as f:
112 As of 0.4.1 ncclient integrates Juniper's and Cisco's forks, lots of new
114 have been introduced that ease management of Juniper and Cisco devices
116 The biggest change is the introduction of device handlers in connection
118 For example to invoke Juniper's functions annd params one has to re-write
120 **device\_params={'name':'junos'}**:
124 from ncclient import manager
126 with manager.connect(host=host, port=830, username=user,
127 hostkey_verify=False, device_params={'name':'junos'}) as m:
128 c = m.get_config(source='running').data_xml
129 with open("%s.xml" % host, 'w') as f:
132 Device handlers are easy to implement and prove to be futureproof.
134 Supported device handlers
135 '''''''''''''''''''''''''
137 * Juniper: `device_params={'name':'junos'}`
139 - CSR: `device_params={'name':'csr'}`
140 - Nexus: `device_params={'name':'nexus'}`
144 6757cb41bc9160dfe47f22f5de8cf2f1adf22f27463fb50453cc415ab96773d8 634885 ncclient-0.6.15.tar.gz