The telnetlib module provides a Telnet class that implements the Telnet protocol under Python programming language.
The telnetlib module provides a Telnet class that implements the Telnet protocol under Python programming language.
See RFC 854 for details about the Telnet protocol.
In addition, telnetlib provides symbolic constants for the protocol characters (see below), and for the telnet options. The symbolic names of the telnet options follow the definitions in arpa/telnet.h, with the leading TELOPT_ removed. For symbolic names of options which are traditionally not included in arpa/telnet.h, see the module source itself.