<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Packaging on Nerdsid.com</title><link>https://nerdsid.com/tags/packaging/</link><description>Recent content in Packaging on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 25 Nov 2022 00:00:00 +0530</lastBuildDate><atom:link href="https://nerdsid.com/tags/packaging/index.xml" rel="self" type="application/rss+xml"/><item><title>The Role of __init__.py File in Python</title><link>https://nerdsid.com/posts/the-role-of-the-init-py-file-in-python/</link><pubDate>Fri, 25 Nov 2022 00:00:00 +0530</pubDate><guid>https://nerdsid.com/posts/the-role-of-the-init-py-file-in-python/</guid><description>&lt;p>If you are a Python developer, chances are high that you may have come across the &lt;code>__init__.py&lt;/code> file. It has several roles in a Python project.&lt;/p>
&lt;ol>
&lt;li>To show that a directory is a Python package. This allows importing modules contained in that directory as top-level modules.&lt;/li>
&lt;li>To define variables and functions that should be available when the package is imported.&lt;/li>
&lt;li>To specify any initialization code that should be run when the package is imported.&lt;/li>
&lt;li>Organize code and make it easier to import modules&lt;/li>
&lt;/ol>
&lt;p>Let&amp;rsquo;s see all these use cases in detail now.&lt;/p></description></item></channel></rss>