{"id":300,"date":"2021-04-03T07:50:39","date_gmt":"2021-04-03T07:50:39","guid":{"rendered":"https:\/\/blog.spike.sh\/2021\/04\/03\/how-to-create-a-pip-package-for-python\/"},"modified":"2025-06-06T14:09:19","modified_gmt":"2025-06-06T08:39:19","slug":"how-to-create-a-pip-package-for-python","status":"publish","type":"post","link":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/","title":{"rendered":"How to Create a Pip Package for Python"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Python is one of the most popular languages in the world, used for everything from data science to web applications. And one of the reasons is the rich library of packages available via its package management system called pip. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, we will learn how to create our own Python package and upload it to the Python Package Index where millions of developers can access it. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Create your project<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create your Python project with the following structure. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>myproject\/\n    -- src\/\n        -- hello_package\/\n            -- __init__.py\n    -- pyproject.toml\n    -- setup.cfg\n    -- README.md<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>hello_package<\/em>: This is the package directory and should be created inside the <em>src<\/em> directory. Create an empty <em>__init__.py <\/em>file inside your package directory. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>README.md<\/em>: This file contains the details of your package that will be shown on your package page. It is in <a href=\"https:\/\/www.markdownguide.org\/\">Markdown<\/a> format.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>pyproject.toml<\/em>: This file is required by the build tools. You should copy the contents below and paste it inside your file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;build-system]\nrequires = &#91;\n    \"setuptools&gt;=42\",\n    \"wheel\"\n]\nbuild-backend = \"setuptools.build_meta\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>setup.cfg<\/em>: This file contains your package metadata like name, author, license etc. You should copy the content below and change the package name, version and other details specific to your package. <strong>Make sure to choose a unique package name that doesn&#8217;t exist already.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;metadata]\nname = hello-package\nversion = 1.0.0\nauthor = James\nauthor_email = james@example.com\ndescription = A small example package\nlong_description = file: README.md\nlong_description_content_type = text\/markdown\nurl = https:\/\/example.com\nproject_urls =\n    Docs = https:\/\/docs.example.com\nclassifiers =\n    Programming Language :: Python :: 3\n    License :: OSI Approved :: MIT License\n    Operating System :: OS Independent<\/code><\/pre>\n\n\n<p>[options]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">package_dir =\n    = src\npackages = find:\npython_requires = &gt;=3.6<\/p>\n\n\n<p>[options.packages.find]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">where = src\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Adding some functionality<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The package is ready to be created, but it doesn&#8217;t do anything right now. Let&#8217;s add a simple method that prints hello on the console. Copy the code below and paste it in the <em>__init__.py <\/em>file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello():\n    print(\"Hello! You look nice today\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Create the package<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To create a distribution package, install <em>build.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ python3 -m pip install --upgrade build<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now run the build command from the directory where the <em>pyproject.toml <\/em>is located.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ python3 -m build<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will create a new directory named <em>dist<\/em> and the packages will be created inside it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Upload package <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To upload your package to Python Package Index, create an account on <a href=\"https:\/\/pypi.org\/\">pypi<\/a>. Inside your account, <a href=\"https:\/\/pypi.org\/manage\/account\/token\/\">create a new API token<\/a>. Copy this token once created because it will be shown only once. <strong>This token will be used as password later. <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, install <em>twine <\/em>package, and use it to upload the packages in <em>dist<\/em> directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ python3 -m pip install --user --upgrade twine<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ python3 -m twine upload dist\/*<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it! If all goes well, your packages will be uploaded to the package index and you will be shown the URL of the newly uploaded package. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s now install and test it. <strong>Use the package name that you chose in setup.cfg above, which could be different from the one I use here. <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ pip install hello-package<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Inside another Python file in your project, you can import the package and use it. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># test.py\n\n# Import package\nfrom hello_package import hello\n\n# Call function\nhello()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Conclusion<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see, it&#8217;s easy to get started with distributing your software via pip for Python developers. You can now build on this foundation to build more complex and powerful libraries. We can&#8217;t wait to see what you build!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python is one of the most popular languages in the world, used for everything from data science to web applications. And one of the reasons is the rich library of packages available via its package management system called pip. In this post, we will learn how to create our own Python package and upload it [&hellip;]<\/p>\n","protected":false},"author":263547074,"featured_media":885,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[97],"tags":[],"class_list":["post-300","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create a Pip Package for Python<\/title>\n<meta name=\"description\" content=\"Learn how to create a pip package for Python\u2014build, upload to PyPI, and share your code with developers worldwide in simple steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Pip Package for Python\" \/>\n<meta property=\"og:description\" content=\"Learn how to create a pip package for Python\u2014build, upload to PyPI, and share your code with developers worldwide in simple steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Welcome to Spike.\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-03T07:50:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-06T08:39:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/Python-PIP-1-.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pruthvi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pruthvi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/\"},\"author\":{\"name\":\"Pruthvi\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#\\\/schema\\\/person\\\/2c9fa677c459b8f4fb26f1a02b90b5ec\"},\"headline\":\"How to Create a Pip Package for Python\",\"datePublished\":\"2021-04-03T07:50:39+00:00\",\"dateModified\":\"2025-06-06T08:39:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/\"},\"wordCount\":468,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.spike.sh\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/Python-PIP-1-.png\",\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/\",\"url\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/\",\"name\":\"How to Create a Pip Package for Python\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.spike.sh\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/Python-PIP-1-.png\",\"datePublished\":\"2021-04-03T07:50:39+00:00\",\"dateModified\":\"2025-06-06T08:39:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#\\\/schema\\\/person\\\/2c9fa677c459b8f4fb26f1a02b90b5ec\"},\"description\":\"Learn how to create a pip package for Python\u2014build, upload to PyPI, and share your code with developers worldwide in simple steps.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.spike.sh\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/Python-PIP-1-.png\",\"contentUrl\":\"https:\\\/\\\/blog.spike.sh\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/Python-PIP-1-.png\",\"width\":2400,\"height\":960},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-a-pip-package-for-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.spike.sh\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create a Pip Package for Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#website\",\"url\":\"https:\\\/\\\/blog.spike.sh\\\/\",\"name\":\"Welcome to Spike.\",\"description\":\"In this space, our team talks about all things incidents, response, oncall, and share our journey of building Spike.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.spike.sh\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#\\\/schema\\\/person\\\/2c9fa677c459b8f4fb26f1a02b90b5ec\",\"name\":\"Pruthvi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g\",\"caption\":\"Pruthvi\"},\"url\":\"https:\\\/\\\/blog.spike.sh\\\/author\\\/pruthvi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a Pip Package for Python","description":"Learn how to create a pip package for Python\u2014build, upload to PyPI, and share your code with developers worldwide in simple steps.","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:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/","og_locale":"en_GB","og_type":"article","og_title":"How to Create a Pip Package for Python","og_description":"Learn how to create a pip package for Python\u2014build, upload to PyPI, and share your code with developers worldwide in simple steps.","og_url":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/","og_site_name":"Welcome to Spike.","article_published_time":"2021-04-03T07:50:39+00:00","article_modified_time":"2025-06-06T08:39:19+00:00","og_image":[{"width":2400,"height":960,"url":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/Python-PIP-1-.png","type":"image\/png"}],"author":"Pruthvi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pruthvi","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/#article","isPartOf":{"@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/"},"author":{"name":"Pruthvi","@id":"https:\/\/blog.spike.sh\/#\/schema\/person\/2c9fa677c459b8f4fb26f1a02b90b5ec"},"headline":"How to Create a Pip Package for Python","datePublished":"2021-04-03T07:50:39+00:00","dateModified":"2025-06-06T08:39:19+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/"},"wordCount":468,"commentCount":0,"image":{"@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/Python-PIP-1-.png","articleSection":["Uncategorized"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/","url":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/","name":"How to Create a Pip Package for Python","isPartOf":{"@id":"https:\/\/blog.spike.sh\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/#primaryimage"},"image":{"@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/Python-PIP-1-.png","datePublished":"2021-04-03T07:50:39+00:00","dateModified":"2025-06-06T08:39:19+00:00","author":{"@id":"https:\/\/blog.spike.sh\/#\/schema\/person\/2c9fa677c459b8f4fb26f1a02b90b5ec"},"description":"Learn how to create a pip package for Python\u2014build, upload to PyPI, and share your code with developers worldwide in simple steps.","breadcrumb":{"@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/#primaryimage","url":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/Python-PIP-1-.png","contentUrl":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/Python-PIP-1-.png","width":2400,"height":960},{"@type":"BreadcrumbList","@id":"https:\/\/blog.spike.sh\/how-to-create-a-pip-package-for-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.spike.sh\/"},{"@type":"ListItem","position":2,"name":"How to Create a Pip Package for Python"}]},{"@type":"WebSite","@id":"https:\/\/blog.spike.sh\/#website","url":"https:\/\/blog.spike.sh\/","name":"Welcome to Spike.","description":"In this space, our team talks about all things incidents, response, oncall, and share our journey of building Spike.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.spike.sh\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/blog.spike.sh\/#\/schema\/person\/2c9fa677c459b8f4fb26f1a02b90b5ec","name":"Pruthvi","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g","caption":"Pruthvi"},"url":"https:\/\/blog.spike.sh\/author\/pruthvi\/"}]}},"modified_by":"Sreekar","jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/Python-PIP-1-.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfMe4Q-4Q","_links":{"self":[{"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/users\/263547074"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/comments?post=300"}],"version-history":[{"count":2,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/posts\/300\/revisions"}],"predecessor-version":[{"id":1808,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/posts\/300\/revisions\/1808"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/media\/885"}],"wp:attachment":[{"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/media?parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/categories?post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/tags?post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}