1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-ncclient
7 SDESC[py310]= Python library for NETCONF clients (3.10)
8 SDESC[v11]= Python library for NETCONF clients (3.11)
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.13.tar.gz:main
19 OPTIONS_AVAILABLE= PY310 PY311
20 OPTIONS_STANDARD= none
21 VOPTS[py310]= PY310=ON PY311=OFF
22 VOPTS[v11]= PY310=OFF PY311=ON
24 DISTNAME= ncclient-0.6.13
28 [PY310].BUILDRUN_DEPENDS_ON= python-setuptools:single:py310
29 python-paramiko:single:py310
30 python-lxml:single:py310
31 python-six:single:py310
32 [PY310].USES_ON= python:py310,sutools
34 [PY311].BUILDRUN_DEPENDS_ON= python-setuptools:single:v11
35 python-paramiko:single:v11
36 python-lxml:single:v11
38 [PY311].USES_ON= python:v11,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 f9f8cea8bcbe057e1b948b9cd1b241eafb8a3f73c4981fbdfa1cc6ed69c0a7b3 105739 ncclient-0.6.13.tar.gz