{"id":20431,"date":"2021-10-11T17:02:50","date_gmt":"2021-10-11T11:32:50","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=20431"},"modified":"2022-10-18T17:05:17","modified_gmt":"2022-10-18T11:35:17","slug":"python-classmethod-decorator-classmethod-example-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/","title":{"rendered":"Python classmethod decorator | @classmethod example code"},"content":{"rendered":"\n<p>Using <strong>classmethod decorator<\/strong> you can define a <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-class-method-basics\/\">class method <\/a>in Python. You can call this method using <code>ClassName.MethodName()<\/code>.<\/p>\n\n\n\n<p>The first parameter must be <code>cls<\/code>, which can be used to access class attributes and only access the class attributes but not the instance attributes.<\/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>Python classmethod decorator example<\/strong><\/h2>\n\n\n\n<p>A simple example code creates a class method using classmethod().<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student:\n    school_name = 'The Xavier Institute'\n\n    def __init__(self):\n        self.age = 20  # instance attribute\n\n    @classmethod\n    def display(cls):\n        print('School:', cls.school_name)\n\n# Access Class Method\nStudent.display()\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=\"363\" height=\"121\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.jpg?resize=363%2C121&#038;ssl=1\" alt=\"Python classmethod decorator\" class=\"wp-image-21001\"\/><\/figure><\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Calling Class Method using Object<\/strong><\/p>\n\n\n\n<p>However, the same method can be called using an <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-objects-basic\/\">object <\/a>also.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Access Class Method\ns1 = Student()\ns1.display()<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: The class method can only access class attributes, but not the instance attributes.<\/p>\n\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>When to use @classmethod decorator Python<\/strong>?<\/h3>\n\n\n\n<p><strong>Answer<\/strong>: class methods for any methods that are not bound to a specific instance but the class.<\/p>\n\n\n\n<p>Python classmethod is useful when making that class as a factory or having to initialize your class only once. like opening a file once, and using the feed method to read the file line by line.<\/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 decorator 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>Using classmethod decorator you can define a class method in Python. You can call this method using ClassName.MethodName(). The first parameter must be cls, which can be used to access class attributes and only access the class attributes but not the instance attributes. Python classmethod decorator example A simple example code creates a class method&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python classmethod decorator | @classmethod 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":[232,153],"post_series":[],"class_list":["post-20431","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-decorator","tag-python-method"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python ClassMethod Decorator | @classmethod - Code<\/title>\n<meta name=\"description\" content=\"Using classmethod decorator you can define a class method in Python. You can call this method using ClassName.MethodName().\" \/>\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-classmethod-decorator-classmethod-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python ClassMethod Decorator | @classmethod - Code\" \/>\n<meta property=\"og:description\" content=\"Using classmethod decorator you can define a class method in Python. You can call this method using ClassName.MethodName().\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-11T11:32:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-18T11:35:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.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-classmethod-decorator-classmethod-example-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/\",\"name\":\"Python ClassMethod Decorator | @classmethod - Code\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.jpg\",\"datePublished\":\"2021-10-11T11:32:50+00:00\",\"dateModified\":\"2022-10-18T11:35:17+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"Using classmethod decorator you can define a class method in Python. You can call this method using ClassName.MethodName().\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.jpg?fit=363%2C121&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.jpg?fit=363%2C121&ssl=1\",\"width\":363,\"height\":121},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python classmethod decorator | @classmethod 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":"Python ClassMethod Decorator | @classmethod - Code","description":"Using classmethod decorator you can define a class method in Python. You can call this method using ClassName.MethodName().","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-classmethod-decorator-classmethod-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Python ClassMethod Decorator | @classmethod - Code","og_description":"Using classmethod decorator you can define a class method in Python. You can call this method using ClassName.MethodName().","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/","og_site_name":"Tutorial","article_published_time":"2021-10-11T11:32:50+00:00","article_modified_time":"2022-10-18T11:35:17+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.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-classmethod-decorator-classmethod-example-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/","name":"Python ClassMethod Decorator | @classmethod - Code","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.jpg","datePublished":"2021-10-11T11:32:50+00:00","dateModified":"2022-10-18T11:35:17+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"Using classmethod decorator you can define a class method in Python. You can call this method using ClassName.MethodName().","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.jpg?fit=363%2C121&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-decorator.jpg?fit=363%2C121&ssl=1","width":363,"height":121},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-decorator-classmethod-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python classmethod decorator | @classmethod 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":20096,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-class-method-basics\/","url_meta":{"origin":20431,"position":0},"title":"Python class method | Basics","author":"Rohit","date":"October 11, 2021","format":false,"excerpt":"A method bound to the class and not the object of the class is called a class method in Python. Class methods are not on a specific object instance. It belongs to a class level, and all class instances (Object) share a class method. Call class method ClassName.method_name() the @classmethod\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-class-method-Implementation-demonstration.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-class-method-Implementation-demonstration.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-class-method-Implementation-demonstration.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":20204,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-call-static-method-in-class-example-code\/","url_meta":{"origin":20431,"position":1},"title":"Python call static method in class | Example code","author":"Rohit","date":"September 28, 2021","format":false,"excerpt":"To call a static method in class use a static method from within the body of the class, and define the static method using the built-in staticmethod function as a decorator in Python. Python calls a static method in class example Simple example code staticmethod objects apparently have a func\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python call static method in class","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-call-static-method-in-class.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":20992,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-class-methodself\/","url_meta":{"origin":20431,"position":2},"title":"Python class method(self)","author":"Rohit","date":"October 12, 2021","format":false,"excerpt":"In Python programming, self is used in instance methods, cls is often used in class methods. cls is generally used in the __new__ special staticmethod, or in classmethods, which you make similarly to staticmethods. These are methods that only need access to the class, but not to things specific to\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python class method(self)","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-class-methodself.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":20970,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-classmethod-function-use-with-example\/","url_meta":{"origin":20431,"position":3},"title":"Python classmethod function | Use with example","author":"Rohit","date":"October 11, 2021","format":false,"excerpt":"Python classmethod function is used to create a class method. It is an inbuilt function that returns the class method for the given function. It takes a single parameter. classmethod(function) A class method can be called both by a class and its object. Read more... Python classmethod function example Simple\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python classmethod function","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-classmethod-function.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":36445,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-static-object\/","url_meta":{"origin":20431,"position":4},"title":"Python static object","author":"Rohit","date":"July 7, 2023","format":false,"excerpt":"In Python, there is no concept of a \"static object\" in the same way it exists in some other programming languages like Java or C++. However, you can achieve similar functionality using class attributes or module-level variables. Class-level attributes: In Python, you can define class attributes, which are shared by\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-static-object.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":20072,"url":"https:\/\/tutorial.eyehunts.com\/python\/constructor-overloading-in-python-example-code\/","url_meta":{"origin":20431,"position":5},"title":"Constructor overloading in Python | Example code","author":"Rohit","date":"September 22, 2021","format":false,"excerpt":"Constructor overloading means more than one constructor in a class with the same name but a different argument (parameter). Python does not support Constructor overloading; it has no form of function. In Python, Methods are defined solely by their name, and there can be only one method per class with\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Constructor overloading in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Constructor-overloading-in-Python.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\/20431","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=20431"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/20431\/revisions"}],"predecessor-version":[{"id":33602,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/20431\/revisions\/33602"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=20431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=20431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=20431"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=20431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}