{"id":19996,"date":"2021-09-20T17:35:27","date_gmt":"2021-09-20T12:05:27","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=19996"},"modified":"2022-06-28T17:54:24","modified_gmt":"2022-06-28T12:24:24","slug":"private-members-in-python-example-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/","title":{"rendered":"Private members in Python | Example code"},"content":{"rendered":"\n<p>Python doesn&#8217;t have any mechanism that effectively restricts access to Private Members like <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-class-instance-variables\/\">instance variables<\/a> or <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-functions-basics-tutorial-example\/\">methods<\/a>. Using prefix single or double underscore in a method or variable name to emulate the behavior of protected and private access specifiers.<\/p>\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 Private members in Python<\/strong><\/h2>\n\n\n\n<p>Simple example code to make private members. Using a double underscore <code>__<\/code> prefixed to a variable makes it <strong>private<\/strong>. It can&#8217;t access outside the class. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student:\n    __schoolName = 'XYZ School'  # private class attribute\n\n    def __init__(self, name, age):\n        self.__name = name  # private instance attribute\n        self.__salary = age  # private instance attribute\n\n    def __display(self):  # private method\n        print('This is private method.')\n\n\nstd = Student(\"Bill\", 25)\nstd.__schoolName\n\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"252\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.jpg?resize=637%2C252&#038;ssl=1\" alt=\"Private members in Python\" class=\"wp-image-20098\"\/><\/figure><\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Access private members in Child class example<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>class Human():\n    # Private var\n    __privateVar = \"this is __private variable\"\n\n    # Constructor method\n    def __init__(self):\n        self.className = \"Human class constructor\"\n        self.__privateVar = \"this is redefined __private variable\"\n\n    # Public method\n    def showName(self, name):\n        self.name = name\n        return self.__privateVar + \" \" + name\n\n    # Private method\n    def __privateMethod(self):\n        return \"Private method\"\n\n    # Public method that returns a private variable\n    def showPrivate(self):\n        return self.__privateMethod()\n\n    def showProtecded(self):\n        return self._protectedMethod()\n\n\nclass Male(Human):\n    def showClassName(self):\n        return \"Male\"\n\n    def showPrivate(self):\n        return self.__privateMethod()\n\n    def showProtected(self):\n        return self._protectedMethod()\n\n\nclass Female(Human):\n    def showClassName(self):\n        return \"Female\"\n\n    def showPrivate(self):\n        return self.__privateMethod()\n\n\nhuman = Human()\nprint(human.className)\nprint(human.showName(\"Vasya\"))\nprint(human.showPrivate())\n\nmale = Male()\nprint(male.className)\nprint(male.showClassName())\n\nfemale = Female()\nprint(female.className)\nprint(female.showClassName())\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: <\/p>\n\n\n\n<p>Human class constructor<br>this is redefined __private variable Vasya<br>Private method<br>Human class constructor<br>Male<br>Human class constructor<br>Female<\/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 access control tutorial.<\/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>Python doesn&#8217;t have any mechanism that effectively restricts access to Private Members like instance variables or methods. Using prefix single or double underscore in a method or variable name to emulate the behavior of protected and private access specifiers. Example Private members in Python Simple example code to make private members. Using a double underscore&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Private members in Python | 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":[34],"post_series":[],"class_list":["post-19996","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-basic"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Private members in Python | Example code<\/title>\n<meta name=\"description\" content=\"Python doesn&#039;t have any mechanism that effectively restricts access to Private Members like instance variables or methods.\" \/>\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\/private-members-in-python-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Private members in Python | Example code\" \/>\n<meta property=\"og:description\" content=\"Python doesn&#039;t have any mechanism that effectively restricts access to Private Members like instance variables or methods.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-20T12:05:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-28T12:24:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.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\/private-members-in-python-example-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/\",\"name\":\"Private members in Python | Example code\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.jpg\",\"datePublished\":\"2021-09-20T12:05:27+00:00\",\"dateModified\":\"2022-06-28T12:24:24+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"Python doesn't have any mechanism that effectively restricts access to Private Members like instance variables or methods.\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.jpg?fit=637%2C252&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.jpg?fit=637%2C252&ssl=1\",\"width\":637,\"height\":252},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Private members in Python | 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=1777374971\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"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":"Private members in Python | Example code","description":"Python doesn't have any mechanism that effectively restricts access to Private Members like instance variables or methods.","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\/private-members-in-python-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Private members in Python | Example code","og_description":"Python doesn't have any mechanism that effectively restricts access to Private Members like instance variables or methods.","og_url":"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/","og_site_name":"Tutorial","article_published_time":"2021-09-20T12:05:27+00:00","article_modified_time":"2022-06-28T12:24:24+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.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\/private-members-in-python-example-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/","name":"Private members in Python | Example code","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.jpg","datePublished":"2021-09-20T12:05:27+00:00","dateModified":"2022-06-28T12:24:24+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"Python doesn't have any mechanism that effectively restricts access to Private Members like instance variables or methods.","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.jpg?fit=637%2C252&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-members-in-Python.jpg?fit=637%2C252&ssl=1","width":637,"height":252},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/private-members-in-python-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Private members in Python | 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=1777374971","contentUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","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":19977,"url":"https:\/\/tutorial.eyehunts.com\/python\/how-to-access-private-variable-outside-the-class-in-python-example-code\/","url_meta":{"origin":19996,"position":0},"title":"How to access private variable outside the class in Python | Example code","author":"Rohit","date":"September 17, 2021","format":false,"excerpt":"Python doesn't have real private variables, so use the __ prefix (two underlines at the beginning make a variable) from PEP 8. Use instance _class-name__private-attribute try to access private variables outside the class in Python. Note: There is no such thing as \"Private variable or method \" in Python. Double\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"How to access private variable outside the class in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/How-to-access-private-variable-outside-the-class-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19994,"url":"https:\/\/tutorial.eyehunts.com\/python\/how-to-declare-private-variable-in-python-example-code\/","url_meta":{"origin":19996,"position":1},"title":"How to declare private variable in Python | Example code","author":"Rohit","date":"September 21, 2021","format":false,"excerpt":"Python does not have any private variables as Java does. Access member variable is available in Python. However, don't need private variables in Python, because it's not bad to expose your class member variables. The double underscore \"__\" does not mean a \"private variable\". Use it to define variables that\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"How to declare private variable in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/How-to-declare-private-variable-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19998,"url":"https:\/\/tutorial.eyehunts.com\/python\/access-modifiers-in-python-basics\/","url_meta":{"origin":19996,"position":2},"title":"Access modifiers in Python | Basics","author":"Rohit","date":"September 29, 2021","format":false,"excerpt":"Python has Public, Protected, and Private access modifiers. Access modifiers are used to restrict access to the variables and methods of the class. Examples of access modifiers in Python Simple example code. Public Access Modifier: Public members (generally methods declared in a class) are accessible from outside the class. If\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Access modifiers in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Access-modifiers-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":36719,"url":"https:\/\/tutorial.eyehunts.com\/python\/__trashed-3\/","url_meta":{"origin":19996,"position":3},"title":"Python naming conventions Cheat Sheet","author":"Rohit","date":"March 12, 2023","format":false,"excerpt":"Python naming conventions cheat sheet provides a concise reference guide for naming conventions in Python programming. It typically includes the recommended conventions for naming modules, packages, classes, functions, variables, constants, private names, type variables, and more. Let's see the cheat sheet for Python naming conventions: Naming ElementConventionExampleModule Nameslowercase with underscoresmy_module.pyPackage\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\/07\/Python-naming-conventions-Cheat-Sheet.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/07\/Python-naming-conventions-Cheat-Sheet.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/07\/Python-naming-conventions-Cheat-Sheet.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":20101,"url":"https:\/\/tutorial.eyehunts.com\/python\/private-method-in-python-example-code\/","url_meta":{"origin":19996,"position":4},"title":"Private method in Python | Example code","author":"Rohit","date":"September 29, 2021","format":false,"excerpt":"A method that can't access outside the class or any base class is called the Private method in Python. To define a private method prefix the member name with the double underscore \u201c__\u201d. The private method in Python A simple example code of a private method will restrict accessing variables\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Private method in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Private-method-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":40457,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-naming-conventions\/","url_meta":{"origin":19996,"position":5},"title":"Python naming conventions","author":"Rohit","date":"June 29, 2023","format":false,"excerpt":"Python naming conventions refer to a set of guidelines and recommendations for naming variables, functions, classes, modules, and other elements in Python code. These conventions aim to improve code readability, maintainability, and consistency across different Python projects. The Python community widely follows these conventions to create clean and easily understandable\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/19996","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=19996"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/19996\/revisions"}],"predecessor-version":[{"id":31063,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/19996\/revisions\/31063"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=19996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=19996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=19996"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=19996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}