1Metadata-Version: 2.1
2Name: nxapi_plumbing
3Version: 0.5.2
4Summary: A library for managing Cisco devices through NX-API using XML or jsonrpc.
5Home-page: https://github.com/ktbyers/nxapi_plumbing
6Author: Kirk Byers
7Author-email: ktbyers@twb-tech.com
8License: Apache2
9Description:
10        nxapi-plumbing
11        =======
12
13        A low-level library for managing Cisco devices through NX-API using JSON-RPC and XML.
14
15
16        ## Examples:
17
18        #### Creating device object using JSON-RPC.
19
20        ```py
21        from nxapi_plumbing import Device
22
23        device = Device(
24            api_format="jsonrpc",
25            host="device.domain.com",
26            username="admin",
27            password="password",
28            transport="https",
29            port=8443,
30        )
31        ```
32
33        #### JSON-RPC single command that returns structured data.
34
35        ```py
36        output = device.show("show hostname")
37        print(output)
38        ```
39
40        #### Output would be the response from the command
41
42        ```py
43        {'hostname': 'nxos.domain.com'}
44        ```
45
46        #### JSON-RPC list of commands
47
48        ```py
49        output = device.show_list(["show hostname", "show ntp status"])
50        pprint(output)
51        ```
52
53        #### Output would be a list of responses (list of dictionaries)
54
55        ```json
56        [
57            {
58                "command": "show hostname",
59                "result": {
60                    "hostname": "nxos.domain.com"
61                }
62            },
63            {
64                "command": "show ntp status",
65                "result": {
66                    "distribution": "Distribution : Disabled",
67                    "operational_state": "Last operational state: No session"
68                }
69            }
70        ]
71        ```
72
73Platform: UNKNOWN
74Classifier: Programming Language :: Python :: 2
75Classifier: Programming Language :: Python :: 2.7
76Classifier: Programming Language :: Python :: 3
77Classifier: Programming Language :: Python :: 3.5
78Classifier: Programming Language :: Python :: 3.6
79Description-Content-Type: text/markdown
80