Cisco IOS XR Python Packages
With on-box Python scripting, automation scripts that was run from an external controller is now run on the router. To achieve this functionality, Cisco IOS XR software provides contextual support using SDK libraries and standard protocols.
The following Python third party application packages are supported by the scripting infrastructure and can be used to create automation scripts.
Package |
Description |
Support Introduced in Release |
---|---|---|
appdirs |
Chooses the appropriate platform-specific directories for user data. |
Release 7.3.2 |
array |
Defines an object type that can compactly represent an array of basic values: characters, integers, floating point numbers. |
Release 7.3.2 |
asn1crypto |
Parses and serializes Abstract Syntax Notation One (ASN.1) data structures. |
Release 7.3.2 |
chardet |
Universal character encoding auto-detector. |
Release 7.3.2 |
concurrent.futures |
Provides a high-level interface for asynchronously executing callables. |
Release 7.3.2 |
ecdsa |
Implements Elliptic Curve Digital Signature Algorithm (ECDSA) cryptography library to create keypairs (signing key and verifying key), sign messages, and verify the signatures. |
Release 7.3.2 |
enum |
Enumerates symbolic names (members) bound to unique, constant values. |
Release 7.3.2 |
|
Manages email messages. |
Release 7.3.2 |
google.protobuf |
Supports language-neutral, platform-neutral, extensible mechanism for serializing structured data. |
Release 7.3.2 |
ipaddress |
Provides capability to create, manipulate and operate on IPv4 and IPv6 addresses and networks. |
Release 7.3.2 |
jinja2 |
Supports adding functionality useful for templating environments. |
Release 7.3.2 |
json |
Provides a lightweight data interchange format. |
Release 7.3.2 |
markupsafe |
Implements a text object that escapes characters so it is safe to use in HTML and XML. |
Release 7.3.2 |
netaddr |
Enables system-independent network address manipulation and processing of Layer 3 network addresses. |
Release 7.3.2 |
pdb |
Defines an interactive source code debugger for Python programs. |
Release 7.3.2 |
pkg_resources |
Provides runtime facilities for finding, introspecting, activating and using installed distributions. |
Release 7.3.2 |
psutil |
Provides library to retrieve information on running processes and system utilization such as CPU, memory, disks, sensors and processes. |
Release 7.3.2 |
pyasn1 |
Provides a collection of ASN.1 modules expressed in form of pyasn1 classes. Includes protocols PDUs definition (SNMP, LDAP etc.) and various data structures (X.509, PKCS). |
Release 7.3.2 |
requests |
Allows sending HTTP/1.1 requests using Python. |
Release 7.3.2 |
shellescape |
Defines the function that returns a shell-escaped version of a Python string. |
Release 7.3.2 |
subprocess |
Spawns new processes, connects to input/output/error pipes, and obtain return codes. |
Release 7.3.2 |
urllib3 |
HTTP client for Python. |
Release 7.3.2 |
xmltodict |
Makes working with XML feel like you are working with JSON. |
Release 7.3.2 |