{"id":2230,"date":"2023-01-11T14:18:20","date_gmt":"2023-01-11T08:48:20","guid":{"rendered":"http:\/\/coderzpy.com\/?p=2230"},"modified":"2023-01-11T14:18:21","modified_gmt":"2023-01-11T08:48:21","slug":"python-__name__-variable","status":"publish","type":"post","link":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/","title":{"rendered":"Python __name__ Variable"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is <strong>__name__<\/strong>. If the source file is run as the main program, the interpreter assigns the value &#8220;<strong>main<\/strong>&#8221; to the <strong>__name__ <\/strong>variable. If this file is imported from another module, <strong>__name__ <\/strong>will be set to the name of the module.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">What is __name__ Variable?<\/h5>\n\n\n\n<ul class=\"wp-block-list\"><li>In Python, the <code>__name__<\/code> variable is a special built-in variable that contains the name of the current module. <\/li><li>It is automatically set when a module is imported or run as the main program.<\/li><li>The value  <code>__name__<\/code> is set to the string <code>\"__main__\"<\/code> when a Python script is run directly (for example, by running <code>python myscript.py<\/code> from the command line). This allows you to use the <code>if __name__ == \"__main__\"<\/code> idiom to determine whether a module is being run as the main program or being imported as a module.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For example, consider the following script <code>myscript.py<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def main():\n    print(\"This is the main function.\")\n\nif __name__ == \"__main__\":\n    main()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you run this script directly, by running <code>python myscript.py<\/code>, it will output &#8220;This is the main function.&#8221; However, If you import this script as a module in another script, the if-statement will not be executed and the main() function will not be called.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import myscript<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This can be useful for running certain code only when the module is run directly, but not when it is imported as a module. It also can be used to organize the code in the way that while importing the module it will only import the functionalities, methods, and classes it will not execute the code which is in the if <strong>name<\/strong> == &#8220;<strong>main<\/strong>&#8221; block.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Using if __name__ == __main__:<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Using <code>if __name__ == \"__main__\"<\/code> is a common idiom in Python to determine whether a module is being run as the main program or being imported as a module. It allows you to separate the code that should only be executed when the module is run directly from the code that should always be available when the module is imported.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is an example that demonstrates the usage of <code>if __name__ == \"__main__\"<\/code> idiom :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def my_func():\n    print(\"This function is available when the module is imported.\")\n\nif __name__ == \"__main__\":\n    print(\"This code will only be run when the module is executed directly.\")\n    my_func()\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>This code will only be run when the module is executed directly.\nThis function is available when the module is imported.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">However, if you import this module into another script, the code inside the <code>if<\/code> block will not be executed. Only <code>my_func()<\/code> will be available for use in the other script.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This approach allows you to write and test the <code>main()<\/code> or any other function in your script separately from the functions which you want to import.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">__name__: Printing it&#8217;s Value<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">You can print the value of the <code>__name__<\/code> variable to see what it is set to. The value of <code>__name__<\/code> will be different depending on whether the module is being run directly or imported as a module.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mymodule.py\ndef my_func():\n    print(\"This function is always available when the module is imported.\")\n\nprint(\"The value of __name__ is:\", __name__)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>The value of __name__ is: __main__<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Note: also read about<\/em>\u00a0<a href=\"https:\/\/coderzpy.com\/barrier-object-in-python\/\">Barrier Object in Python<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Follow Me<\/strong><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Please follow me to read my latest post on programming and technology if you like my post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.instagram.com\/coderz.py\/\">https:\/\/www.instagram.com\/coderz.py\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.facebook.com\/coderz.py\">https:\/\/www.facebook.com\/coderz.py<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the &#8230;<\/p>\n","protected":false},"author":3,"featured_media":2030,"menu_order":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[569,97,350,5,504],"class_list":["post-2230","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-__name__-variable","tag-functions","tag-main","tag-python","tag-python-module"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is __name__. If the source file is run as the main program, the interpreter assigns\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Rabecca Fatima\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/coderzpy.com\/python\/python-__name__-variable\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"coderz.py - Keep Coding Keep Cheering!\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Python __name__ Variable - coderz.py\" \/>\n\t\t<meta property=\"og:description\" content=\"Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is __name__. If the source file is run as the main program, the interpreter assigns\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/coderzpy.com\/python\/python-__name__-variable\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-01-11T08:48:20+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-01-11T08:48:21+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Python __name__ Variable - coderz.py\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is __name__. If the source file is run as the main program, the interpreter assigns\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#blogposting\",\"name\":\"Python __name__ Variable - coderz.py\",\"headline\":\"Python __name__ Variable\",\"author\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/author\\\/rabecca\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/coderzpy.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/imae.png\",\"width\":300,\"height\":168,\"caption\":\"JOIN Clause\"},\"datePublished\":\"2023-01-11T14:18:20+05:30\",\"dateModified\":\"2023-01-11T14:18:21+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#webpage\"},\"articleSection\":\"Python, __name__ Variable, functions, main, python, Python Module\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/coderzpy.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/coderzpy.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/course\\\/python\\\/#listItem\",\"name\":\"Python\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/course\\\/python\\\/#listItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\\\/\\\/coderzpy.com\\\/course\\\/python\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#listItem\",\"name\":\"Python __name__ Variable\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/coderzpy.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#listItem\",\"position\":3,\"name\":\"Python __name__ Variable\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/course\\\/python\\\/#listItem\",\"name\":\"Python\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/#organization\",\"name\":\"coderz.py\",\"description\":\"Keep Coding Keep Cheering!\",\"url\":\"https:\\\/\\\/coderzpy.com\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/author\\\/rabecca\\\/#author\",\"url\":\"https:\\\/\\\/coderzpy.com\\\/author\\\/rabecca\\\/\",\"name\":\"Rabecca Fatima\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/209225ca96598bab25f758a45345c5082dc77605dc36a7caeb0a66b601be2860?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Rabecca Fatima\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#webpage\",\"url\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/\",\"name\":\"Python __name__ Variable - coderz.py\",\"description\":\"Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is __name__. If the source file is run as the main program, the interpreter assigns\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/author\\\/rabecca\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/author\\\/rabecca\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/coderzpy.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/imae.png\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#mainImage\",\"width\":300,\"height\":168,\"caption\":\"JOIN Clause\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/python\\\/python-__name__-variable\\\/#mainImage\"},\"datePublished\":\"2023-01-11T14:18:20+05:30\",\"dateModified\":\"2023-01-11T14:18:21+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/coderzpy.com\\\/#website\",\"url\":\"https:\\\/\\\/coderzpy.com\\\/\",\"name\":\"coderz.py\",\"description\":\"Keep Coding Keep Cheering!\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/coderzpy.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Python __name__ Variable - coderz.py","description":"Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is __name__. If the source file is run as the main program, the interpreter assigns","canonical_url":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#blogposting","name":"Python __name__ Variable - coderz.py","headline":"Python __name__ Variable","author":{"@id":"https:\/\/coderzpy.com\/author\/rabecca\/#author"},"publisher":{"@id":"https:\/\/coderzpy.com\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/coderzpy.com\/wp-content\/uploads\/2022\/11\/imae.png","width":300,"height":168,"caption":"JOIN Clause"},"datePublished":"2023-01-11T14:18:20+05:30","dateModified":"2023-01-11T14:18:21+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#webpage"},"isPartOf":{"@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#webpage"},"articleSection":"Python, __name__ Variable, functions, main, python, Python Module"},{"@type":"BreadcrumbList","@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/coderzpy.com#listItem","position":1,"name":"Home","item":"https:\/\/coderzpy.com","nextItem":{"@type":"ListItem","@id":"https:\/\/coderzpy.com\/course\/python\/#listItem","name":"Python"}},{"@type":"ListItem","@id":"https:\/\/coderzpy.com\/course\/python\/#listItem","position":2,"name":"Python","item":"https:\/\/coderzpy.com\/course\/python\/","nextItem":{"@type":"ListItem","@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#listItem","name":"Python __name__ Variable"},"previousItem":{"@type":"ListItem","@id":"https:\/\/coderzpy.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#listItem","position":3,"name":"Python __name__ Variable","previousItem":{"@type":"ListItem","@id":"https:\/\/coderzpy.com\/course\/python\/#listItem","name":"Python"}}]},{"@type":"Organization","@id":"https:\/\/coderzpy.com\/#organization","name":"coderz.py","description":"Keep Coding Keep Cheering!","url":"https:\/\/coderzpy.com\/"},{"@type":"Person","@id":"https:\/\/coderzpy.com\/author\/rabecca\/#author","url":"https:\/\/coderzpy.com\/author\/rabecca\/","name":"Rabecca Fatima","image":{"@type":"ImageObject","@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/209225ca96598bab25f758a45345c5082dc77605dc36a7caeb0a66b601be2860?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Rabecca Fatima"}},{"@type":"WebPage","@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#webpage","url":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/","name":"Python __name__ Variable - coderz.py","description":"Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is __name__. If the source file is run as the main program, the interpreter assigns","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/coderzpy.com\/#website"},"breadcrumb":{"@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#breadcrumblist"},"author":{"@id":"https:\/\/coderzpy.com\/author\/rabecca\/#author"},"creator":{"@id":"https:\/\/coderzpy.com\/author\/rabecca\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/coderzpy.com\/wp-content\/uploads\/2022\/11\/imae.png","@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#mainImage","width":300,"height":168,"caption":"JOIN Clause"},"primaryImageOfPage":{"@id":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/#mainImage"},"datePublished":"2023-01-11T14:18:20+05:30","dateModified":"2023-01-11T14:18:21+05:30"},{"@type":"WebSite","@id":"https:\/\/coderzpy.com\/#website","url":"https:\/\/coderzpy.com\/","name":"coderz.py","description":"Keep Coding Keep Cheering!","inLanguage":"en-US","publisher":{"@id":"https:\/\/coderzpy.com\/#organization"}}]},"og:locale":"en_US","og:site_name":"coderz.py - Keep Coding Keep Cheering!","og:type":"article","og:title":"Python __name__ Variable - coderz.py","og:description":"Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is __name__. If the source file is run as the main program, the interpreter assigns","og:url":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/","article:published_time":"2023-01-11T08:48:20+00:00","article:modified_time":"2023-01-11T08:48:21+00:00","twitter:card":"summary_large_image","twitter:title":"Python __name__ Variable - coderz.py","twitter:description":"Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the code at level 0 indentation is executed. However, it will first define a few special variables. One such special variable is __name__. If the source file is run as the main program, the interpreter assigns"},"aioseo_meta_data":{"post_id":"2230","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-12-30 12:43:41","updated":"2026-09-02 22:04:04","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/coderzpy.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/coderzpy.com\/course\/python\/\" title=\"Python\">Python<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPython __name__ Variable\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/coderzpy.com"},{"label":"Python","link":"https:\/\/coderzpy.com\/course\/python\/"},{"label":"Python __name__ Variable","link":"https:\/\/coderzpy.com\/python\/python-__name__-variable\/"}],"_links":{"self":[{"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/posts\/2230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/comments?post=2230"}],"version-history":[{"count":1,"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/posts\/2230\/revisions"}],"predecessor-version":[{"id":2231,"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/posts\/2230\/revisions\/2231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/media\/2030"}],"wp:attachment":[{"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/media?parent=2230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/categories?post=2230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coderzpy.com\/wp-json\/wp\/v2\/tags?post=2230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}