{"id":18549,"date":"2022-01-24T11:47:02","date_gmt":"2022-01-24T06:17:02","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=18549"},"modified":"2022-01-24T11:48:01","modified_gmt":"2022-01-24T06:18:01","slug":"python-telnet","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/python-telnet\/","title":{"rendered":"How Python Telnet Is Changing Computer Protocols"},"content":{"rendered":"\n<p>Hello Geeks! I hope all are doing great. So today, in this article, we will see Telnet Library in python, i.e., &#8220;telnetlib&#8221;. We will see how we can use it to establish connections between two computers and the operations provided by the interface we get. So, let&#8217;s get started.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#Telnet\" >Telnet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#Telnet_Library\" >Telnet Library<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#Example_1\" >Example 1:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#Different_Python_Telnet_Methods\" >Different Python Telnet Methods<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#Example_2_Telnet_using_with_Keyword\" >Example 2: Telnet using with Keyword<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#How_to_Disable_Python_Telnet_Echo_in_telnetlib\" >How to Disable Python Telnet Echo in telnetlib<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#Python_Telnet_vs_Socket\" >Python Telnet vs Socket<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#FAQs_on_Python_Telnet\" >FAQs on Python Telnet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#Trending_Python_Articles\" >Trending Python Articles<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-telnet\"><span class=\"ez-toc-section\" id=\"Telnet\"><\/span>Telnet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>So before heading toward the telnet library, let&#8217;s take a quick overview of what is telnet? So, telnet stands for <strong>Terminal Network<\/strong>. It enables the connection between two computers within the same network. Computers that start the connection are known as the local computer, while the other one which connects is known as remote or host computer. Once the connection is established, we can perform various operations like reading and editing files, running various programs, or checking emails. Moreover, one can also see various activities performed on the host computers. Once we understand this, the question arises: how can we do it.<\/p>\n\n\n\n<p>So in this article, we will use the python telentlib to show the demonstration. But before jumping to that, first, understand the various methods of the given library.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-telnet-library\"><span class=\"ez-toc-section\" id=\"Telnet_Library\"><\/span>Telnet Library<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>So, the telnet module came with a class named &#8220;<strong>Telnet,&#8221;<\/strong> which implements the telnet protocol. We can pass the host, port number, and timeout parameter while instantiating the object of the class. It will start the connection before the constructor returns. Once the connection is established, we can use the following methods to perform various operations on the host computer. Let&#8217;s see an example through which we get the idea of how telnet works. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-example-1\"><span class=\"ez-toc-section\" id=\"Example_1\"><\/span>Example 1:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport getpass\nimport telnetlib\n\nHOST = &quot;192.158.0.105&quot;\nuser = raw_input(&quot;Enter your remote account: &quot;)\npassword = getpass.getpass()\n\ntn = telnetlib.Telnet(HOST)\n\ntn.read_until(&quot;login: &quot;)\ntn.write(user + &quot;\\n&quot;)\nif password:\n    tn.read_until(&quot;Password: &quot;)\n    tn.write(password + &quot;\\n&quot;)\n\ntn.write(&quot;ls\\n&quot;)\ntn.write(&quot;exit\\n&quot;)\n\nprint tn.read_all()\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"h-explanation\">Explanation<\/h4>\n\n\n\n<p>In the above example, we first imported the telnetlib library and then specified the host or the remote computer <span style=\"text-decoration: underline;\"><strong><a href=\"http:\/\/www.pythonpool.com\/python-ipaddr\/\" target=\"_blank\" rel=\"noreferrer noopener\">IP address<\/a><\/strong><\/span> we wanted to connect. Once we get the host, we can establish the connection by initializing the object of the telnet class. For that, we passed the host parameter in that class. If it is encrypted, we read the username of the computer and the password for that. Once the connection is built, we read from the host computer using the read_all() method. Similarly, we can also write to the host computer using the write() method. It also has other ways which support different functions. Let&#8217;s see them one by one.<\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-kilo monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\">[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-different-python-telnet-methods\"><span class=\"ez-toc-section\" id=\"Different_Python_Telnet_Methods\"><\/span>Different Python Telnet Methods<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>read_until(expected, timeout=None)<\/strong>: <em>This method is used to read string bytes from the host computer until some string is not encountered while reading. The expected string(let say) is passed as the argument in the method. If we want some time duration for which we want to read we can also pass it as the argument.<\/em><\/li><li><strong>read_all(): <\/strong><em>This method is used to read all the bytes of string until the connection is disabled.<\/em><\/li><li><strong>read_some(): <\/strong><em>This method is used to read data bytes until EOF is hit.<\/em><\/li><li><strong><code>open<\/code>(<em>host<\/em>,&nbsp;<em>port=0<\/em>[,&nbsp;<em>timeout<\/em>])<\/strong>: <em>This method is used to establish the connection to some host. We need to pass host as the argument to specify it. We can also <span style=\"text-decoration: underline;\"><strong><a href=\"http:\/\/www.pythonpool.com\/python-pass\/\" target=\"_blank\" rel=\"noreferrer noopener\">pass <\/a><\/strong><\/span>the port number on which we want to establish the connection. There is also an optional argument timeout which specify how long we want the connection.<\/em><\/li><li><strong>close(): <\/strong><em>This method is used to close the connection and free our resources.<\/em><\/li><li><strong>msg(string): <\/strong><em>This methods is used to print the debug message if debug is greater that 0. <\/em><\/li><li><strong>write(): <\/strong><em>This method is used to write on the host computer. This is blocked if the connection is blocked or raises OSError if the conection is closed.<\/em><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-example-2-telnet-using-with-keyword\"><span class=\"ez-toc-section\" id=\"Example_2_Telnet_using_with_Keyword\"><\/span>Example 2: Telnet using with Keyword<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>We can also use context manager to set the connection between the server and the local computer. For that, we will use the &#8220;<strong>with<\/strong>&#8221; keyword. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom telnetlib import Telnet\nwith Telnet('localhost', 23) as tn:\n      tn.read_until(&quot;login: &quot;)\n      tn.write(user + &quot;\\n&quot;)\n      if password:\n          tn.read_until(&quot;Password: &quot;)\n          tn.write(password + &quot;\\n&quot;)\n\n      tn.write(&quot;ls\\n&quot;)\n      tn.write(&quot;exit\\n&quot;)\n\n      print tn.read_all()\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-disable-python-telnet-echo-in-telnetlib\"><span class=\"ez-toc-section\" id=\"How_to_Disable_Python_Telnet_Echo_in_telnetlib\"><\/span>How to Disable Python Telnet Echo in telnetlib<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To disable the echo in python telnetlib, you should use the following line of code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tn.write(telnetlib.IAC + telnetlib.DONT + telnetlib.ECHO)<\/code><\/pre>\n\n\n\n<p>However, turning off the echo is not the solution one might look for. So, we tell that we will echo, which turns off the echoing at the other end. To do that, we will use the following line of code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tn.write(telnetlib.IAC + telnetlib.WILL + telnetlib.ECHO)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-python-telnet-vs-socket\"><span class=\"ez-toc-section\" id=\"Python_Telnet_vs_Socket\"><\/span>Python Telnet vs Socket<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>However, both are used to access different computers using the programming interface. But both are different than each other in several ways. While telnet uses application layer protocol in the OSI model, Socket is a transport layer protocol. This is the fundamental difference between both. <\/p>\n\n\n\n<p>Moreover, we use telnet when we need to pass the control information through the communication channel. When a connection starts, it runs a series of will\/won&#8217;t\/do\/don&#8217;t message, which returns line buffering, character echo, e.t.c.<\/p>\n\n\n\n<p>Once the connection is established, it listens to control instructions before responding, and hence it works with TCP\/socket connections that don&#8217;t use telnet. <\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-beta monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-image\"><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/a><\/div><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Trending<\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\">[Fixed] nameerror: name Unicode is not defined<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faqs-on-python-telnet\"><span class=\"ez-toc-section\" id=\"FAQs_on_Python_Telnet\"><\/span>FAQs on Python Telnet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1642854578060\"><strong class=\"schema-faq-question\">How to export python telnet output to file?<\/strong> <p class=\"schema-faq-answer\">You can use the following line of code.<br\/><code>HOST = \"192.131.244.100\" <\/code><br\/><code>user = \"user\" <\/code><br\/><code>password = \"user\" <\/code><br\/><code>tn = Telnet(HOST) <\/code><br\/><code>tn.read_until(\"Login: \") <\/code><br\/><code>tn.write(user + \"\\n\") <\/code><br\/><code>tn.read_until(\"Password: \") <\/code><br\/><code>tn.write(password + \"\\n\") <\/code><br\/><code>time.sleep(5) tn.write(\"lr\\n\") <\/code><br\/><code>OUTPUT = tn.read_until(\":~&gt;\") #Change :~&gt; to what the telnet displays when finished parsing FILE=open(C:\\\\temp\\\\Logs\\\\output.txt\", \"w\") <\/code><br\/><code>FILE.write(OUTPUT) <\/code><br\/><code>FILE.close() <\/code><br\/><code>tn.close()<\/code><\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1642854718025\"><strong class=\"schema-faq-question\">Which command is used to get telnet output?<\/strong> <p class=\"schema-faq-answer\">We can use the following commands to get telnet output.<br\/><code>read()<br\/>read_until()<\/code><\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1642854814023\"><strong class=\"schema-faq-question\">Q3) How to disconnect telnet?<\/strong> <p class=\"schema-faq-answer\">We use telnet.close() method to disconnect telnet. <\/p> <\/div> <\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>So, today in this article, we have learned about the Telnetlib library in python. We have seen how to establish the connection between a host computer and a local computer. Then we have seen different available methods in the Telnet class that extend different functionalities on the host computer. They help us with reading and writing operations on the host computer. Besides that, we also saw different methods with different operations within the same class.<\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-delta monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-2\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Python_Articles\"><\/span>Trending Python Articles<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_.webp 1200w \" alt=\"[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 11, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] nameerror: name Unicode is not defined<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal.webp 1200w \" alt=\"[Solved] runtimeerror: cuda error: invalid device ordinal\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Solved] runtimeerror: cuda error: invalid device ordinal<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method.webp 1200w \" alt=\"[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>Hello Geeks! I hope all are doing great. So today, in this article, we will see Telnet Library in python, i.e., &#8220;telnetlib&#8221;. We will see &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How Python Telnet Is Changing Computer Protocols\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/#more-18549\" aria-label=\"More on How Python Telnet Is Changing Computer Protocols\">Read more<\/a><\/p>\n","protected":false},"author":25,"featured_media":19355,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4345],"tags":[4754,4750,4751,4755,4749,4753,4752,4748],"class_list":["post-18549","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-module","tag-python-telnet-client","tag-python-telnet-client-example","tag-python-telnet-example","tag-python-telnet-library","tag-python-telnet-script","tag-python-telnet-server","tag-telnet-python-3","tag-telnet-server-python","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How Python Telnet Is Changing Computer Protocols - Python Pool<\/title>\n<meta name=\"description\" content=\"In this article we are going to see python telnetlib library. We see how can we use it and different available functions in Telnet class.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pythonpool.com\/python-telnet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Python Telnet Is Changing Computer Protocols\" \/>\n<meta property=\"og:description\" content=\"Hello Geeks! I hope all are doing great. So today, in this article, we will see Telnet Library in python, i.e., &quot;telnetlib&quot;. We will see how we can use it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-telnet\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-24T06:17:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-24T06:18:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Rishav Raj\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rishav Raj\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/\"},\"author\":{\"name\":\"Rishav Raj\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/025222e28182ecbb97e17f9f1bf15ac4\"},\"headline\":\"How Python Telnet Is Changing Computer Protocols\",\"datePublished\":\"2022-01-24T06:17:02+00:00\",\"dateModified\":\"2022-01-24T06:18:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/\"},\"wordCount\":918,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp\",\"keywords\":[\"python telnet client\",\"python telnet client example\",\"python telnet example\",\"python telnet library\",\"python telnet script\",\"python telnet server\",\"telnet python 3\",\"telnet server python\"],\"articleSection\":[\"Module\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-telnet\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-telnet\/\",\"name\":\"How Python Telnet Is Changing Computer Protocols - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp\",\"datePublished\":\"2022-01-24T06:17:02+00:00\",\"dateModified\":\"2022-01-24T06:18:01+00:00\",\"description\":\"In this article we are going to see python telnetlib library. We see how can we use it and different available functions in Telnet class.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854578060\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854718025\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854814023\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-telnet\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp\",\"width\":1200,\"height\":628,\"caption\":\"Python Telnet\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How Python Telnet Is Changing Computer Protocols\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/025222e28182ecbb97e17f9f1bf15ac4\",\"name\":\"Rishav Raj\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/77d441cf39fc8183322bfc1dcaf04be5c1fd429574820606cccac81fd8e8749a?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/77d441cf39fc8183322bfc1dcaf04be5c1fd429574820606cccac81fd8e8749a?s=96&d=wavatar&r=g\",\"caption\":\"Rishav Raj\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854578060\",\"position\":1,\"url\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854578060\",\"name\":\"How to export python telnet output to file?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"You can use the following line of code.<br\/>HOST = \\\"192.131.244.100\\\" <br\/>user = \\\"user\\\" <br\/>password = \\\"user\\\" <br\/>tn = Telnet(HOST) <br\/>tn.read_until(\\\"Login: \\\") <br\/>tn.write(user + \\\"\\\\n\\\") <br\/>tn.read_until(\\\"Password: \\\") <br\/>tn.write(password + \\\"\\\\n\\\") <br\/>time.sleep(5) tn.write(\\\"lr\\\\n\\\") <br\/>OUTPUT = tn.read_until(\\\":~&gt;\\\") #Change :~&gt; to what the telnet displays when finished parsing FILE=open(C:\\\\\\\\temp\\\\\\\\Logs\\\\\\\\output.txt\\\", \\\"w\\\") <br\/>FILE.write(OUTPUT) <br\/>FILE.close() <br\/>tn.close()\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854718025\",\"position\":2,\"url\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854718025\",\"name\":\"Which command is used to get telnet output?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"We can use the following commands to get telnet output.<br\/>read()<br\/>read_until()\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854814023\",\"position\":3,\"url\":\"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854814023\",\"name\":\"Q3) How to disconnect telnet?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"We use telnet.close() method to disconnect telnet. \",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How Python Telnet Is Changing Computer Protocols - Python Pool","description":"In this article we are going to see python telnetlib library. We see how can we use it and different available functions in Telnet class.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pythonpool.com\/python-telnet\/","og_locale":"en_US","og_type":"article","og_title":"How Python Telnet Is Changing Computer Protocols","og_description":"Hello Geeks! I hope all are doing great. So today, in this article, we will see Telnet Library in python, i.e., \"telnetlib\". We will see how we can use it","og_url":"https:\/\/www.pythonpool.com\/python-telnet\/","og_site_name":"Python Pool","article_published_time":"2022-01-24T06:17:02+00:00","article_modified_time":"2022-01-24T06:18:01+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp","type":"image\/webp"}],"author":"Rishav Raj","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Rishav Raj","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/python-telnet\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/"},"author":{"name":"Rishav Raj","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/025222e28182ecbb97e17f9f1bf15ac4"},"headline":"How Python Telnet Is Changing Computer Protocols","datePublished":"2022-01-24T06:17:02+00:00","dateModified":"2022-01-24T06:18:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/"},"wordCount":918,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp","keywords":["python telnet client","python telnet client example","python telnet example","python telnet library","python telnet script","python telnet server","telnet python 3","telnet server python"],"articleSection":["Module"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/python-telnet\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.pythonpool.com\/python-telnet\/","url":"https:\/\/www.pythonpool.com\/python-telnet\/","name":"How Python Telnet Is Changing Computer Protocols - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp","datePublished":"2022-01-24T06:17:02+00:00","dateModified":"2022-01-24T06:18:01+00:00","description":"In this article we are going to see python telnetlib library. We see how can we use it and different available functions in Telnet class.","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854578060"},{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854718025"},{"@id":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854814023"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/python-telnet\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/python-telnet\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2022\/01\/Python-Telnet.webp","width":1200,"height":628,"caption":"Python Telnet"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/python-telnet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"How Python Telnet Is Changing Computer Protocols"}]},{"@type":"WebSite","@id":"https:\/\/www.pythonpool.com\/#website","url":"https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/pythonpool","https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/025222e28182ecbb97e17f9f1bf15ac4","name":"Rishav Raj","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/77d441cf39fc8183322bfc1dcaf04be5c1fd429574820606cccac81fd8e8749a?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/77d441cf39fc8183322bfc1dcaf04be5c1fd429574820606cccac81fd8e8749a?s=96&d=wavatar&r=g","caption":"Rishav Raj"}},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854578060","position":1,"url":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854578060","name":"How to export python telnet output to file?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"You can use the following line of code.<br\/>HOST = \"192.131.244.100\" <br\/>user = \"user\" <br\/>password = \"user\" <br\/>tn = Telnet(HOST) <br\/>tn.read_until(\"Login: \") <br\/>tn.write(user + \"\\n\") <br\/>tn.read_until(\"Password: \") <br\/>tn.write(password + \"\\n\") <br\/>time.sleep(5) tn.write(\"lr\\n\") <br\/>OUTPUT = tn.read_until(\":~&gt;\") #Change :~&gt; to what the telnet displays when finished parsing FILE=open(C:\\\\temp\\\\Logs\\\\output.txt\", \"w\") <br\/>FILE.write(OUTPUT) <br\/>FILE.close() <br\/>tn.close()","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854718025","position":2,"url":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854718025","name":"Which command is used to get telnet output?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"We can use the following commands to get telnet output.<br\/>read()<br\/>read_until()","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854814023","position":3,"url":"https:\/\/www.pythonpool.com\/python-telnet\/#faq-question-1642854814023","name":"Q3) How to disconnect telnet?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"We use telnet.close() method to disconnect telnet. ","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/18549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=18549"}],"version-history":[{"count":26,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/18549\/revisions"}],"predecessor-version":[{"id":19360,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/18549\/revisions\/19360"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/19355"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=18549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=18549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=18549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}