{"id":12817,"date":"2023-02-13T06:25:04","date_gmt":"2023-02-13T06:25:04","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=12817"},"modified":"2023-10-16T07:29:29","modified_gmt":"2023-10-16T07:29:29","slug":"python-packages","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/python-packages\/","title":{"rendered":"Understand Python Packages in Details"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg\" alt=\"\" \/><\/p>\n<p>Python, known for its simplicity and versatility, has grown into one of the world&#8217;s most popular programming languages. One of its key strengths is its modular and organized structure, made possible by the use of packages. Python packages are a fundamental component of the language, allowing developers to organize their code into reusable modules, making code management and distribution more efficient.<\/p>\n<p>In this comprehensive guide, we will delve into the world of Python packages, exploring what they are, how they work, and why they are crucial for software development. Whether you&#8217;re a beginner looking to understand the basics or an experienced Pythonista seeking to master package management, this article will provide you with the knowledge and insights you need to harness the full potential of Python packages.<\/p>\n<h2>What are Packages in Python?<\/h2>\n<p>A Python package is a module-level organization of code that allows for code reuse, modularity, and abstraction. It is a directory structure that contains Python modules, sub-packages, and other resources like data files, etc.<\/p>\n<h3>Example of Python Packages<\/h3>\n<p>An example of a Python package is the NumPy package, which stands for Numerical Python. It provides support for arrays and matrices and includes functions for numerical operations, linear algebra, and random number generation. It is commonly used for scientific and engineering applications.<\/p>\n<p>To install the NumPy package in your device enter the below command in the terminal or command line.<\/p>\n<pre><code>pip install numpy<\/code><\/pre>\n<p>After completion of the installation, use the below statement in your code to use the numpy module.<\/p>\n<pre><code>import numpy as np<\/code><\/pre>\n<p>Let\u2019s see how we can use the above python package in a python code.<\/p>\n<pre><code>import numpy as np\n\nmatrix = np.zeros([3, 3])\nprint(\"\\nMatrix : \\n\", matrix)<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Matrix : \n [[0. 0. 0.]\n [0. 0. 0.]\n [0. 0. 0.]]<\/code><\/pre>\n<p>Lets see how to create a python package.<\/p>\n<h2>How to Create a Python Package?<\/h2>\n<p>Following the below simple steps you can create your own python packages.<\/p>\n<ul>\n<li>Choose a name for your package and create a directory with that name.<\/li>\n<li>Create an <strong>init<\/strong>.py file in the package directory. This file can be empty, but it signals to Python that this directory should be considered a package.<\/li>\n<li>Create one or more Python modules (i.e., .py files) in the package directory, containing the functions and classes you want to include in your package.<\/li>\n<li>Define the package&#8217;s API in the <strong>init<\/strong>.py file. This can include importing modules and sub-packages and defining variables and functions that should be exposed to users of the package.<\/li>\n<li>Write documentation for your package, describing what it does and how to use it.<\/li>\n<\/ul>\n<p>Now, let\u2019s see how we can create a python package using the above steps.<\/p>\n<p>We will create a calculator package with modules addition, subtraction, multiplication, and division.<\/p>\n<p>Now, let\u2019s create all these modules.<\/p>\n<p><strong>addition.py<\/strong><\/p>\n<pre><code>def add(a,b):\n    return a+b<\/code><\/pre>\n<p><strong>subtraction.py<\/strong><\/p>\n<pre><code>def sub(a,b):\n    return a-b<\/code><\/pre>\n<p><strong>multiplication.py<\/strong><\/p>\n<pre><code>def mul(a,b):\n    return a*b<\/code><\/pre>\n<p><strong>division.py<\/strong><\/p>\n<pre><code>def div(a,b):\n    return a\/b<\/code><\/pre>\n<p><strong>Below is the folder structure of the python package.<\/strong><\/p>\n<p>calculator<\/p>\n<pre><code>     |\n     |\n     |------ __init__.py\n     |\n     |\n     |------ addition.py\n     |      |\n     |      |---------- add()\n     |\n     |\n     |------ subtraction.py\n     |      |\n     |      |---------- sub()\n     |\n     |\n     |------ multiplication.py\n     |      |\n     |      |---------- mul()\n     |\n     |\n     |------ division.py\n        |\n        |---------- div()<\/code><\/pre>\n<h3>Why to use <strong>init<\/strong>.py?<\/h3>\n<p><strong>init<\/strong>.py file is used to define the package&#8217;s API and can be empty or can contain code that initializes the package. We can also mention specific functions from the module to use in this file. Let\u2019s see how the <strong>init<\/strong>.py file look.<\/p>\n<p><strong><strong>init<\/strong>.py<\/strong><\/p>\n<pre><code>from .addition import add\nfrom .subtraction import sub\nfrom .multiplication import mul\nfrom .division import div<\/code><\/pre>\n<p>Lets see how to import modules from packages in Python.<\/p>\n<h2>How to Import Modules from the Python Packages.<\/h2>\n<p>We can import modules from the python packages using import and from keyword and using . operator. The syntax to import the module from the python packages is given below.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre><code>Import package_name.mudule_name<\/code><\/pre>\n<p><strong>Example: Program to import modules from the package<\/strong><br \/>\nIn this example, we will import the module from the package, and then we will use the functions of that python package.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre><code>from calculator import addition\nfrom calculator import subtraction\nfrom calculator import multiplication\nfrom calculator import division\n\nprint(\"Addition of 8 and 4 is:\", addition.add(8, 4))\nprint(\"Subtraction of 7 and 2 is:\", subtraction.sub(7, 2))\nprint(\"Multiplication of 3 and 4 is:\", multiplication.mul(3, 4))\nprint(\"Division of 12 and 3 is:\", division.div(12, 3))<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Addition of 8 and 4 is: 12\nSubtraction of 7 and 2 is: 5\nMultiplication of 3 and 4 is: 12\nDivision of 12 and 3 is: 4.0<\/code><\/pre>\n<p><strong>Example: Program to import specific function from the module<\/strong><br \/>\nIn this example, we will directly import the specific function from the module of the python package.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre><code>from calculator.addition import add\nfrom calculator.subtraction import sub\nfrom calculator.multiplication import mul\nfrom calculator.division import div\n\nprint(\"Addition of 5 and 4 is:\", add(5, 4))\nprint(\"Subtraction of 10 and 2 is:\", sub(10, 2))\nprint(\"Multiplication of 3 and 4 is:\", mul(3, 4))\nprint(\"Division of 12 and 3 is:\", div(12, 3))<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Addition of 5 and 4 is: 9\nSubtraction of 10 and 2 is: 8\nMultiplication of 3 and 4 is: 12\nDivision of 12 and 3 is: 4.0<\/code><\/pre>\n<p><strong>Conclusion<\/strong><br \/>\nPython packages are the backbone of modular and organized Python programming. They enable developers to create reusable code, enhance code organization, and simplify code distribution. Throughout this guide, we&#8217;ve explored the ins and outs of Python packages, from their structure and creation to their use in practical applications.<\/p>\n<p>As you continue your Python journey, remember that packages are not just a technical aspect of the language; they are a powerful tool that can significantly improve your code&#8217;s maintainability, scalability, and reusability. Whether you&#8217;re building small scripts or large-scale applications, mastering Python packages is a skill that will serve you well.<\/p>\n<h2>FAQs Related to Python Packages<\/h2>\n<p>Here are some FAQs related to Packages in Python.<\/p>\n<p><strong>1. What is the difference between a python module and a python package?<\/strong><br \/>\nA module is a single file that contains Python code and can be imported into other Python files. A package is a collection of modules organized into a directory structure. Packages provide a way to distribute and reuse code and organize modules into a logical structure.<\/p>\n<p><strong>2. How do I create my own Python package?<\/strong><br \/>\nTo create a Python package, you need to organize your modules into directories and include an <strong>init<\/strong>.py file in each directory. This file can be empty or contain package-level initialization code.<\/p>\n<p><strong>3. What is the purpose of the <strong>init<\/strong>.py file in a Python package?<\/strong><br \/>\nThe <strong>init<\/strong>.py file serves as an indicator to Python that a directory should be treated as a package. It can also contain package-level initialization code that runs when the package is imported.<\/p>\n<p><strong>4. How can I install and use third-party packages from PyPI (Python Package Index)?<\/strong><br \/>\nYou can use the pip command to install packages from PyPI. For example, to install the requests package, you can run pip install requests. Once installed, you can import and use the package in your Python code.<\/p>\n<p><strong>5. What are virtual environments, and why are they important when working with Python packages?<\/strong><br \/>\nVirtual environments are isolated environments that allow you to manage dependencies and package versions for different projects. They prevent conflicts between packages used in different projects and ensure project-specific package installations.<\/p>\n<p><strong>6. Can I share my Python packages with others?<\/strong><br \/>\nYes, you can share your Python packages with others by publishing them on PyPI or by distributing them as source code or binary distributions. The setuptools library is commonly used to package and distribute Python projects.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python, known for its simplicity and versatility, has grown into one of the world&#8217;s most popular programming languages. One of its key strengths is its modular and organized structure, made possible by the use of packages. Python packages are a fundamental component of the language, allowing developers to organize their code into reusable modules, making [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[154],"tags":[],"class_list":["post-12817","post","type-post","status-publish","format-standard","hentry","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python Packages: How to Create a Python Package?<\/title>\n<meta name=\"description\" content=\"How to Create a Python Package? How to Import Modules from the Python Packages.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prepbytes.com\/blog\/python-packages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Packages: How to Create a Python Package?\" \/>\n<meta property=\"og:description\" content=\"How to Create a Python Package? How to Import Modules from the Python Packages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/python-packages\/\" \/>\n<meta property=\"og:site_name\" content=\"PrepBytes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prepbytes0211\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-13T06:25:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-16T07:29:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg\" \/>\n<meta name=\"author\" content=\"Prepbytes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prepbytes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Understand Python Packages in Details\",\"datePublished\":\"2023-02-13T06:25:04+00:00\",\"dateModified\":\"2023-10-16T07:29:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/\"},\"wordCount\":1023,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/python-packages\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/python-packages\/\",\"name\":\"Python Packages: How to Create a Python Package?\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg\",\"datePublished\":\"2023-02-13T06:25:04+00:00\",\"dateModified\":\"2023-10-16T07:29:29+00:00\",\"description\":\"How to Create a Python Package? How to Import Modules from the Python Packages.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/python-packages\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/python-packages\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Understand Python Packages in Details\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/43.205.93.38\/#website\",\"url\":\"http:\/\/43.205.93.38\/\",\"name\":\"PrepBytes Blog\",\"description\":\"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING\",\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/43.205.93.38\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/43.205.93.38\/#organization\",\"name\":\"Prepbytes\",\"url\":\"http:\/\/43.205.93.38\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"contentUrl\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"width\":160,\"height\":160,\"caption\":\"Prepbytes\"},\"image\":{\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/prepbytes0211\/\",\"https:\/\/www.instagram.com\/prepbytes\/\",\"https:\/\/www.linkedin.com\/company\/prepbytes\/\",\"https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\",\"name\":\"Prepbytes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"caption\":\"Prepbytes\"},\"url\":\"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Packages: How to Create a Python Package?","description":"How to Create a Python Package? How to Import Modules from the Python Packages.","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:\/\/prepbytes.com\/blog\/python-packages\/","og_locale":"en_US","og_type":"article","og_title":"Python Packages: How to Create a Python Package?","og_description":"How to Create a Python Package? How to Import Modules from the Python Packages.","og_url":"https:\/\/prepbytes.com\/blog\/python-packages\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2023-02-13T06:25:04+00:00","article_modified_time":"2023-10-16T07:29:29+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/python-packages\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/python-packages\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Understand Python Packages in Details","datePublished":"2023-02-13T06:25:04+00:00","dateModified":"2023-10-16T07:29:29+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/python-packages\/"},"wordCount":1023,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/python-packages\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/python-packages\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/python-packages\/","url":"https:\/\/prepbytes.com\/blog\/python-packages\/","name":"Python Packages: How to Create a Python Package?","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/python-packages\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/python-packages\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg","datePublished":"2023-02-13T06:25:04+00:00","dateModified":"2023-10-16T07:29:29+00:00","description":"How to Create a Python Package? How to Import Modules from the Python Packages.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/python-packages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/python-packages\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/python-packages\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1676269446975-Python%20Packages.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/python-packages\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/prepbytes.com\/blog\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Understand Python Packages in Details"}]},{"@type":"WebSite","@id":"http:\/\/43.205.93.38\/#website","url":"http:\/\/43.205.93.38\/","name":"PrepBytes Blog","description":"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING","publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/43.205.93.38\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/43.205.93.38\/#organization","name":"Prepbytes","url":"http:\/\/43.205.93.38\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/","url":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","contentUrl":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","width":160,"height":160,"caption":"Prepbytes"},"image":{"@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/prepbytes0211\/","https:\/\/www.instagram.com\/prepbytes\/","https:\/\/www.linkedin.com\/company\/prepbytes\/","https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA"]},{"@type":"Person","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e","name":"Prepbytes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","caption":"Prepbytes"},"url":"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/"}]}},"_links":{"self":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/12817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/comments?post=12817"}],"version-history":[{"count":4,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/12817\/revisions"}],"predecessor-version":[{"id":18199,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/12817\/revisions\/18199"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=12817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=12817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=12817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}