pySROS modules
pysros
- Model-driven SR OS interfacepysros.management
- Connection and data handlingpysros.pprint
- Specialized output formattingpysros.wrappers
- Model-driven class wrapperspysros.exceptions
- pySROS specific exceptionspysros.ehs
- Functions for the event handling system (EHS)pysros.ehs.get_event()
pysros.ehs.Event
pysros.ehs.Event.name
pysros.ehs.Event.appid
pysros.ehs.Event.eventid
pysros.ehs.Event.severity
pysros.ehs.Event.sequence
pysros.ehs.Event.subject
pysros.ehs.Event.router_name
pysros.ehs.Event.gentime
pysros.ehs.Event.timestamp
pysros.ehs.Event.text
pysros.ehs.Event.eventparameters
pysros.ehs.Event.format_msg()
pysros.ehs.EventParams
pysros.esm
- Functions for the enhanced subscriber management system (ESM)pysros.esm.cryptolib
- Cryptographic functions for the ESM systempysros.syslog
- Functions for syslog event handlingpysros.syslog.get_event()
generate_pri()
severity_to_name()
get_system_name()
pysros.syslog.Event
pysros.syslog.Event.name
pysros.syslog.Event.appid
pysros.syslog.Event.eventid
pysros.syslog.Event.severity
pysros.syslog.Event.sequence
pysros.syslog.Event.subject
pysros.syslog.Event.router_name
pysros.syslog.Event.gentime
pysros.syslog.Event.timestamp
pysros.syslog.Event.hostname
pysros.syslog.Event.log_prefix
pysros.syslog.Event.facility
pysros.syslog.Event.text
pysros.syslog.Event.eventparameters
pysros.syslog.Event.format_msg()
pysros.syslog.Event.format_syslog_msg()
pysros.syslog.Event.override_payload()
pysros.syslog.Event.drop()
pysros.syslog.EventParams
pysros.syslog.Facility
pysros.syslog.Facility.KERNEL
pysros.syslog.Facility.USER
pysros.syslog.Facility.MAIL
pysros.syslog.Facility.SYSTEMD
pysros.syslog.Facility.AUTH
pysros.syslog.Facility.SYSLOGD
pysros.syslog.Facility.PRINTER
pysros.syslog.Facility.NETNEWS
pysros.syslog.Facility.UUCP
pysros.syslog.Facility.CRON
pysros.syslog.Facility.AUTHPRIV
pysros.syslog.Facility.FTP
pysros.syslog.Facility.NTP
pysros.syslog.Facility.LOGAUDIT
pysros.syslog.Facility.LOGALERT
pysros.syslog.Facility.CRON2
pysros.syslog.Facility.LOCAL0
pysros.syslog.Facility.LOCAL1
pysros.syslog.Facility.LOCAL2
pysros.syslog.Facility.LOCAL3
pysros.syslog.Facility.LOCAL4
pysros.syslog.Facility.LOCAL5
pysros.syslog.Facility.LOCAL6
pysros.syslog.Facility.LOCAL7
Libraries adapted for SR OS
The adapted versions of the modules documented here are provided when executing on SR OS only. When executing on a remote device, the native Python versions of the library are used.
utime
– Time functionsuio
– Input/Output stream functions- Returned object types
- Functions
- Classes
TextIO
TextIO.read()
TextIO.readinto()
TextIO.write()
TextIO.seek()
TextIO.tell()
TextIO.flush()
TextIO.close()
TextIO.writelines()
TextIO.readline()
TextIO.readlines()
TextIO.readable()
TextIO.writable()
TextIO.seekable()
TextIO.truncate()
TextIO.buffered
TextIO.closed
TextIO.mode
TextIO.name
TextIO.newlines
FileIO
StringIO
BytesIO
uos
– Filesystem functionsuos.path
– Filesystem functionsgetpass
— Portable password input