{"id":23045,"date":"2021-12-13T17:32:39","date_gmt":"2021-12-13T12:02:39","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=23045"},"modified":"2021-12-13T17:32:42","modified_gmt":"2021-12-13T12:02:42","slug":"python-keyboard-press-detect-example-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/","title":{"rendered":"Python keyboard press detect | Example code"},"content":{"rendered":"\n<p><strong>How to detect key presses?<\/strong><\/p>\n\n\n\n<p>Using <strong>pynput <\/strong>and <strong>keyboard module <\/strong>can detect keyboard press in Python. You have to use an event Listener.<\/p>\n\n\n\n<p>Python has a <a href=\"https:\/\/pypi.python.org\/pypi\/keyboard\"><strong>keyboard<\/strong><\/a> module with many features. Install it, perhaps with this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install keyboard<\/code><\/pre>\n\n\n\n<p><strong>OR<\/strong><\/p>\n\n\n\n<p>Use IDE<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"252\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg?resize=502%2C252&#038;ssl=1\" alt=\"Python module keyboard\" class=\"wp-image-23208\"\/><\/figure><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example detect keyboard press in Python<\/strong><\/h2>\n\n\n\n<p>Simple example code will <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-print-object-as-a-string-example-code\/\">print <\/a>whichever key you are pressing plus start the action as you release the &#8216;ESC&#8217; key.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from pynput.keyboard import Key, Listener\r\n\r\n\r\ndef on_press(key):\r\n    print(' {0} pressed'.format(\r\n        key))\r\n\r\n\r\ndef on_release(key):\r\n    print(' {0} release'.format(\r\n        key))\r\n    if key == Key.esc:\r\n        # Stop listener\r\n        return False\r\n\r\n\r\n# Collect events until released\r\nwith Listener(\r\n        on_press=on_press,\r\n        on_release=on_release) as listener:\r\n    listener.join()\r\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"240\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-press-detect.jpg?resize=343%2C240&#038;ssl=1\" alt=\"Python keyboard press detect\" class=\"wp-image-23210\"\/><\/figure><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Find specific keypress<\/strong><\/p>\n\n\n\n<p>Print message if &#8220;q&#8221; key has pressed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import keyboard\r\n\r\nwhile True:  # making a loop\r\n    try:\r\n        if keyboard.is_pressed('q'):  # if key 'q' is pressed\r\n            print(' You Pressed A Key!')\r\n            break\r\n    except:\r\n        break\r\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: q You Pressed A Key!<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Do comment if you have any doubts or suggestions on this python keyboard topic.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note:<\/strong> IDE:&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.jetbrains.com\/pycharm\/\" target=\"_blank\">PyCharm<\/a>&nbsp;2021.3.3 (Community Edition)<\/p><p>Windows 10<\/p><p><strong>Python 3.10.1<\/strong><\/p><p>All<strong>&nbsp;Python Examples&nbsp;are in&nbsp;Python&nbsp;3<\/strong>, so Maybe its different from python 2 or upgraded versions.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>How to detect key presses? Using pynput and keyboard module can detect keyboard press in Python. You have to use an event Listener. Python has a keyboard module with many features. Install it, perhaps with this command: OR Use IDE Example detect keyboard press in Python Simple example code will print whichever key you are&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python keyboard press detect | Example code<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[30],"tags":[267,268],"post_series":[],"class_list":["post-23045","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-event","tag-python-keyboard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python keyboard press detect | Example code<\/title>\n<meta name=\"description\" content=\"Using pynput and module keyboard can detect keyboard press in Python. You have to use an event Listener. Print whichever key you are press\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python keyboard press detect | Example code\" \/>\n<meta property=\"og:description\" content=\"Using pynput and module keyboard can detect keyboard press in Python. You have to use an event Listener. Print whichever key you are press\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-13T12:02:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-13T12:02:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg\" \/>\n<meta name=\"author\" content=\"Rohit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/\",\"name\":\"Python keyboard press detect | Example code\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg\",\"datePublished\":\"2021-12-13T12:02:39+00:00\",\"dateModified\":\"2021-12-13T12:02:42+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"Using pynput and module keyboard can detect keyboard press in Python. You have to use an event Listener. Print whichever key you are press\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg?fit=502%2C252&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg?fit=502%2C252&ssl=1\",\"width\":502,\"height\":252},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python keyboard press detect | Example code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\",\"name\":\"Tutorial\",\"description\":\"By EyeHunts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\",\"name\":\"Rohit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855\",\"caption\":\"Rohit\"},\"description\":\"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.\",\"url\":\"https:\/\/tutorial.eyehunts.com\/author\/rohit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python keyboard press detect | Example code","description":"Using pynput and module keyboard can detect keyboard press in Python. You have to use an event Listener. Print whichever key you are press","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:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Python keyboard press detect | Example code","og_description":"Using pynput and module keyboard can detect keyboard press in Python. You have to use an event Listener. Print whichever key you are press","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/","og_site_name":"Tutorial","article_published_time":"2021-12-13T12:02:39+00:00","article_modified_time":"2021-12-13T12:02:42+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/","name":"Python keyboard press detect | Example code","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg","datePublished":"2021-12-13T12:02:39+00:00","dateModified":"2021-12-13T12:02:42+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"Using pynput and module keyboard can detect keyboard press in Python. You have to use an event Listener. Print whichever key you are press","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg?fit=502%2C252&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-keyboard-module-download.jpg?fit=502%2C252&ssl=1","width":502,"height":252},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-keyboard-press-detect-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python keyboard press detect | Example code"}]},{"@type":"WebSite","@id":"https:\/\/tutorial.eyehunts.com\/#website","url":"https:\/\/tutorial.eyehunts.com\/","name":"Tutorial","description":"By EyeHunts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1","name":"Rohit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/","url":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855","contentUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855","caption":"Rohit"},"description":"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.","url":"https:\/\/tutorial.eyehunts.com\/author\/rohit\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":23039,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-users-choose-from-the-list-example-code\/","url_meta":{"origin":23045,"position":0},"title":"Python users choose from the list | Example code","author":"Rohit","date":"December 14, 2021","format":false,"excerpt":"Use for loop with enumerate function and take input as an integer value. Using this logic will allow to users choose from the list in Python. Example users choose from the list in Python Simple example code gives the user to choose an option on the command line. def let_user_pick(options):\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python users choose from the list","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-users-choose-from-the-list.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":23973,"url":"https:\/\/tutorial.eyehunts.com\/python\/end-keyword-in-python\/","url_meta":{"origin":23045,"position":1},"title":"end keyword in Python","author":"Rohit","date":"August 11, 2023","format":false,"excerpt":"In Python, the end keyword is often used in the print() function to specify what character(s) should be printed at the end of each printed statement. By default, the print() function adds a newline character ('\\n') at the end of the printed output. However, you can change this behavior using\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/08\/end-keyword-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":29622,"url":"https:\/\/tutorial.eyehunts.com\/python\/lambda-keyword-in-python\/","url_meta":{"origin":23045,"position":2},"title":"Lambda Keyword in Python","author":"Rohit","date":"August 9, 2023","format":false,"excerpt":"n Python, the lambda keyword is used to create anonymous functions, also known as lambda functions. These are small, one-line functions that can take any number of arguments, but can only have one expression. Lambda functions are often used for simple operations that can be defined in a concise manner.\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/08\/Lambda-Keyword-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":34727,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-create-zip-file\/","url_meta":{"origin":23045,"position":3},"title":"Python create zip file","author":"Rohit","date":"December 8, 2022","format":false,"excerpt":"Python creates zip files using functions in the zipfile module. from zipfile import ZipFile Note: Install them with pip or using PyCharm IDE if any of the packages are missing on your system. Check the official documentation. Python creates a zip file Simple example code creating a zip file with\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/12\/Python-creates-a-zip-file.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/12\/Python-creates-a-zip-file.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/12\/Python-creates-a-zip-file.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/12\/Python-creates-a-zip-file.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":34737,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-zip-file-with-password\/","url_meta":{"origin":23045,"position":4},"title":"Python zip file with password","author":"Rohit","date":"December 7, 2022","format":false,"excerpt":"Use the pyminizip module to create a zip file with a password in Python. The pyminizip module can be installed using the below command: pip install pyminizip Syntax pyminizip.compress(\"\/srcfile\/path.txt\", \"file_path_prefix\", \"\/distfile\/path.zip\", \"password\", int(compress_level)) Read: https:\/\/github.com\/smihica\/pyminizip Python zip file with password Simple example code. # importing module import pyminizip # input\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/12\/Python-zip-file-with-password.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":21403,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-pretty-print-table-example-code\/","url_meta":{"origin":23045,"position":5},"title":"Python pretty print table | Example code","author":"Rohit","date":"October 22, 2021","format":false,"excerpt":"Use PrettyTable from prettytable module to pretty print table in Python. There are several ways to print tables in python, namely: Using tabulate() function to print dict and lists texttable PrettyTable Python pretty print table example First, install a pretty table package then import module it into a project file.\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-pretty-print-table.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/23045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/comments?post=23045"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/23045\/revisions"}],"predecessor-version":[{"id":23212,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/23045\/revisions\/23212"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=23045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=23045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=23045"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=23045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}