{"id":8390,"date":"2021-02-15T16:35:18","date_gmt":"2021-02-15T11:05:18","guid":{"rendered":"https:\/\/www.h2kinfosys.com\/blog\/?p=8390"},"modified":"2026-01-12T05:16:44","modified_gmt":"2026-01-12T10:16:44","slug":"importing-modules-in-python-with-examples","status":"publish","type":"post","link":"https:\/\/www.h2kinfosys.com\/blog\/importing-modules-in-python-with-examples\/","title":{"rendered":"Importing Modules in Python with Examples"},"content":{"rendered":"\n<p>In Python, module names must follow identifier rules. That means names containing dashes (<code>-<\/code>), spaces, or starting with numbers cannot be imported using the standard <code>import<\/code> statement. The dash is interpreted as a subtraction operator, which makes direct imports invalid.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Recommended Approach: <code>importlib<\/code><\/strong><\/h2>\n\n\n\n<p>The <strong><code>importlib<\/code><\/strong> module is the correct and future-proof way to import modules dynamically using a string name. It bypasses the syntax limitations of the standard import statement and is fully supported in modern Python versions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import importlib\n\n# Works even if the module name contains a dash or starts with a number\nmy_module = importlib.import_module(\"my-module\")\n\n# Use the module normally\nmy_module.some_function()\n<\/pre>\n\n\n\n<p>This is the preferred solution in for programmatic or dynamic imports.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Alternative Options (Use with Caution)<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><code>__import__()<\/code> (Not Recommended)<\/h3>\n\n\n\n<p>Python\u2019s built-in <code>__import__()<\/code> function can technically load such modules, but it is considered low-level and harder to read or maintain.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">my_module = __import__(\"my-module\")\n<\/pre>\n\n\n\n<p>Use this only if you are maintaining legacy code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Rename the File (Most Pythonic Solution)<\/strong><\/h2>\n\n\n\n<p>The best long-term solution is to rename the module file to follow Python naming conventions:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">my-module.py  \u2192  my_module.py\n<\/pre>\n\n\n\n<p>Then import it normally:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import my_module\n<\/code><\/pre>\n\n\n\n<p>This approach improves readability, tooling support, and maintainability.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>exec()<\/code> (Strongly Discouraged)<\/h3>\n\n\n\n<p>Using <code>exec()<\/code> to run an import statement dynamically is possible but unsafe and difficult to debug.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">exec(\"import my_module as mod\")\n<\/pre>\n\n\n\n<p>Avoid this method unless there is no alternative and the input is fully trusted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Important Notes for 2026<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><code>imp<\/code> Module Is Gone<\/h3>\n\n\n\n<p>The <code>imp<\/code> module was officially removed in Python 3.12. Any examples using <code>imp.load_source()<\/code> or similar APIs are obsolete.<br>Always use <code>importlib<\/code> or <code>importlib.util<\/code> instead.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">PyPI Names vs Import Names<\/h3>\n\n\n\n<p>Many Python packages use dashes in their distribution names but underscores in their import names:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install scikit-learn\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>import sklearn\n<\/code><\/pre>\n\n\n\n<p>Python is known for its simplicity, readability, and vast ecosystem of reusable code. One of the core features that enables this flexibility is modules. Instead of writing everything from scratch, Python allows developers to import modules and reuse existing functionality efficiently a concept that is strongly emphasized in <strong><a href=\"https:\/\/www.h2kinfosys.com\/courses\/python-online-training\/\">Python Training Online<\/a><\/strong> programs to help learners write clean, modular, and maintainable code.<\/p>\n\n\n\n<p>Understanding how to import modules in Python is a fundamental skill for anyone learning Python, whether you are a beginner or an experienced developer working on large-scale applications.<\/p>\n\n\n\n<p>This provides a complete, practical guide to importing modules in Python, covering syntax, variations, best practices, and real-world examples.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Is a Module in Python?<\/h2>\n\n\n\n<p>A module in Python is a file that contains Python code, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Functions<\/li>\n\n\n\n<li>Classes<\/li>\n\n\n\n<li>Variables<\/li>\n\n\n\n<li>Executable statements<\/li>\n<\/ul>\n\n\n\n<p>Any file with a <code>.py<\/code> extension can be treated as a module.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example of a Simple Module<\/h3>\n\n\n\n<p>Create a file named <code>math_utils.py<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">def add(a, b):\n    return a + b\n\ndef subtract(a, b):\n    return a - b\n<\/pre>\n\n\n\n<p>This file is now a Python <a href=\"https:\/\/www.h2kinfosys.com\/blog\/importing-modules-in-python-with-examples\/\" data-type=\"post\" data-id=\"8390\">module<\/a> that can be imported into other programs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Use Modules in Python?<\/h2>\n\n\n\n<p>Modules provide several advantages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Code reusability<\/strong> \u2013 Write once, use multiple times<\/li>\n\n\n\n<li><strong>Better organization<\/strong> \u2013 Separate logic into manageable files<\/li>\n\n\n\n<li><strong>Maintainability<\/strong> \u2013 Easier to update and debug<\/li>\n\n\n\n<li><strong>Namespace management<\/strong> \u2013 Avoid variable name conflicts<\/li>\n\n\n\n<li><strong>Access to Python\u2019s standard library<\/strong> \u2013 Thousands of built-in utilities<\/li>\n<\/ul>\n\n\n\n<p>Most real-world Python projects rely heavily on modules.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Types of Modules in Python<\/h2>\n\n\n\n<p>Python supports three main types of modules:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Built-in Modules<\/h3>\n\n\n\n<p>These come pre-installed with Python.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>math<\/code><\/li>\n\n\n\n<li><code>sys<\/code><\/li>\n\n\n\n<li><code>os<\/code><\/li>\n\n\n\n<li><code>random<\/code><\/li>\n\n\n\n<li><code>datetime<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. User-Defined Modules<\/h3>\n\n\n\n<p>Custom modules created by developers.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>math_utils.py<\/code><\/li>\n\n\n\n<li><code>data_processing.py<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. Third-Party Modules<\/h3>\n\n\n\n<p>Installed using package managers like <code>pip<\/code>.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><a href=\"https:\/\/wiki.python.org\/moin\/NumPy\" rel=\"nofollow noopener\" target=\"_blank\">numpy<\/a><\/code><\/li>\n\n\n\n<li><code>pandas<\/code><\/li>\n\n\n\n<li><code>requests<\/code><\/li>\n\n\n\n<li><code>flask<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Basic Syntax for Importing Modules<\/h2>\n\n\n\n<p>The simplest way to import a module is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import module_name\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example: Importing the math Module<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import math\n\nprint(math.sqrt(25))\nprint(math.pi)\n<\/code><\/pre>\n\n\n\n<p>Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>5.0\n3.141592653589793\n<\/code><\/pre>\n\n\n\n<p>Here, <code>math<\/code> is the module name, and its functions are accessed using dot notation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importing Specific Functions from a Module<\/h2>\n\n\n\n<p>Instead of importing the entire module, you can import specific components.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>from module_name import function_name\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>from math import sqrt, pi\n\nprint(sqrt(16))\nprint(pi)\n<\/code><\/pre>\n\n\n\n<p>This approach makes code cleaner but requires careful handling of name conflicts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importing All Functions Using the Asterisk (*)<\/h2>\n\n\n\n<p>Python allows importing everything from a module using <code>*<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>from module_name import *\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>from math import *\n\nprint(sqrt(36))\nprint(factorial(5))\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Why This Is Discouraged<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pollutes the namespace<\/li>\n\n\n\n<li>Makes code harder to read<\/li>\n\n\n\n<li>Increases chances of name conflicts<\/li>\n<\/ul>\n\n\n\n<p><strong>Best practice:<\/strong> Avoid wildcard imports in production code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using Aliases While Importing Modules<\/h2>\n\n\n\n<p>Aliases allow shorter or more meaningful names.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import module_name as alias\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narray = np.array([1, 2, 3])\nprint(array)\n<\/pre>\n\n\n\n<p>Aliases are widely used in professional Python development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Aliasing Imported Functions<\/h2>\n\n\n\n<p>You can also alias individual functions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>from math import factorial as fact\n\nprint(fact(6))\n<\/code><\/pre>\n\n\n\n<p>This is useful when function names are long or conflict with existing names.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importing User-Defined Modules<\/h2>\n\n\n\n<p>To import your own module, ensure that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The module is in the same directory<\/li>\n\n\n\n<li>Or included in the Python path<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<p><strong>File structure:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>project\/\n\u2502\n\u251c\u2500\u2500 main.py\n\u2514\u2500\u2500 calculator.py\n<\/code><\/pre>\n\n\n\n<p><strong>calculator.py<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def multiply(a, b):\n    return a * b\n<\/code><\/pre>\n\n\n\n<p><strong>main.py<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import calculator\n\nprint(calculator.multiply(4, 5))\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Importing from Subfolders (Packages)<\/h2>\n\n\n\n<p>A <strong>package<\/strong> is a folder containing modules and an <code>__init__.py<\/code> file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example Folder Structure<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>project\/\n\u2502\n\u251c\u2500\u2500 utilities\/\n\u2502   \u251c\u2500\u2500 __init__.py\n\u2502   \u2514\u2500\u2500 string_utils.py\n\u2514\u2500\u2500 main.py\n<\/code><\/pre>\n\n\n\n<p><strong>string_utils.py<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def to_upper(text):\n    return text.upper()\n<\/code><\/pre>\n\n\n\n<p><strong>main.py<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from utilities.string_utils import to_upper\n\nprint(to_upper(\"python\"))\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">What Is <code>__init__.py<\/code>?<\/h2>\n\n\n\n<p>The <code>__init__.py<\/code> file tells Python that a directory should be treated as a package.<\/p>\n\n\n\n<p>It can also contain initialization code or expose selected modules.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>from .string_utils import to_upper\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding Python Module Search Path<\/h2>\n\n\n\n<p>When you import a module, Python searches in the following order:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Current directory<\/li>\n\n\n\n<li>PYTHONPATH environment variable<\/li>\n\n\n\n<li>Standard library directories<\/li>\n\n\n\n<li>Site-packages directory<\/li>\n<\/ol>\n\n\n\n<p>You can inspect the search path using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import sys\nprint(sys.path)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">The <code>sys<\/code> Module Example<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>import sys\n\nprint(sys.version)\nprint(sys.platform)\n<\/code><\/pre>\n\n\n\n<p>The <code>sys<\/code> module provides access to interpreter-level information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The <code>os<\/code> Module Example<\/h2>\n\n\n\n<p>The <code>os<\/code> module allows interaction with the operating system.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\n\nprint(os.getcwd())\nprint(os.listdir())\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Importing Modules Conditionally<\/h2>\n\n\n\n<p>Sometimes, you may want to import modules based on conditions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">if True:\n    import math\n\nprint(math.sqrt(49))\n<\/pre>\n\n\n\n<p>This is useful in platform-specific or optional dependency scenarios.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Dynamic Imports Using <code>importlib<\/code><\/h2>\n\n\n\n<p>Python allows importing modules dynamically at runtime.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">import importlib\n\nmath_module = importlib.import_module(\"math\")\nprint(math_module.pow(2, 3))\n<\/pre>\n\n\n\n<p>Dynamic imports are useful for plugins and extensible systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Reloading a Module<\/h2>\n\n\n\n<p>If a module is updated during runtime, Python does not reload it automatically.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">import importlib\nimport mymodule\n\nimportlib.reload(mymodule)\n<\/pre>\n\n\n\n<p>This is especially helpful during development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Import Errors and How to Fix Them<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">ModuleNotFoundError<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ModuleNotFoundError: No module named 'example'\n<\/code><\/pre>\n\n\n\n<p><strong>Fixes:<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ImportError<\/h3>\n\n\n\n<p>Occurs when a specific function does not exist.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from math import square<\/code><\/pre>\n\n\n\n<p><strong>Fix:<\/strong> Confirm function availability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices for Importing Modules in Python<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Place imports at the top of the file<\/li>\n\n\n\n<li>Use explicit imports instead of wildcard imports<\/li>\n\n\n\n<li>Group imports logically:\n<ul class=\"wp-block-list\">\n<li>Standard library<\/li>\n\n\n\n<li>Third-party modules<\/li>\n\n\n\n<li>Local modules<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Use aliases consistently<\/li>\n\n\n\n<li>Avoid circular imports<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Circular Import Explained<\/h2>\n\n\n\n<p>A circular import occurs when two modules import each other.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"># a.py\nimport b\n<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"># b.py\nimport a\n<\/pre>\n\n\n\n<p><strong>Solution:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Refactor code<\/li>\n\n\n\n<li>Use function-level imports<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Real-World Example: Using Multiple Imports Together<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">import os\nimport sys\nfrom math import sqrt\nimport datetime as dt\n\nprint(os.getcwd())\nprint(sys.version)\nprint(sqrt(81))\nprint(dt.datetime.now())\n<\/pre>\n\n\n\n<p>This demonstrates combining different import styles in a single program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When to Use Which Import Style?<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Scenario<\/th><th>Recommended Style<\/th><\/tr><\/thead><tbody><tr><td>General use<\/td><td><code>import module<\/code><\/td><\/tr><tr><td>Few functions<\/td><td><code>from module import function<\/code><\/td><\/tr><tr><td>Long module name<\/td><td>Alias<\/td><\/tr><tr><td>Large projects<\/td><td>Explicit imports<\/td><\/tr><tr><td>Avoid conflicts<\/td><td>Module-based imports<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How Imports Improve Code Quality<\/h2>\n\n\n\n<p>Well-structured imports lead to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cleaner architecture<\/li>\n\n\n\n<li>Easier debugging<\/li>\n\n\n\n<li>Improved collaboration<\/li>\n\n\n\n<li>Faster development<\/li>\n\n\n\n<li>Scalable applications<\/li>\n<\/ul>\n\n\n\n<p>Mastering imports is a step toward writing professional-grade Python code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Importing modules in Python is more than just a syntax feature; it is the foundation of reusable, maintainable, and scalable software development. Whether you are using built-in libraries, third-party packages, or your own custom modules, understanding how imports work helps you write cleaner and more efficient code an essential skill taught in any <strong><a href=\"https:\/\/www.h2kinfosys.com\/courses\/python-online-training\/\">Best Online Python Course<\/a><\/strong> focused on real-world, production-ready Python development.<\/p>\n\n\n\n<p>By learning different import techniques, avoiding common pitfalls, and following best practices, you can significantly improve the quality and structure of your Python programs.<\/p>\n\n\n\n<p>As you progress in Python, you will find that effective module usage is essential for real-world applications, from automation scripts to enterprise-grade systems.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Python, module names must follow identifier rules. That means names containing dashes (-), spaces, or starting with numbers cannot be imported using the standard import statement. The dash is interpreted as a subtraction operator, which makes direct imports invalid. Recommended Approach: importlib The importlib module is the correct and future-proof way to import modules [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[342],"tags":[],"class_list":["post-8390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-tutorials"],"_links":{"self":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/8390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/comments?post=8390"}],"version-history":[{"count":2,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/8390\/revisions"}],"predecessor-version":[{"id":34070,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/8390\/revisions\/34070"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media\/8392"}],"wp:attachment":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media?parent=8390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/categories?post=8390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/tags?post=8390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}