<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mohit Khare</title>
    <description>The latest articles on DEV Community by Mohit Khare (@mkfeuhrer).</description>
    <link>https://dev.to/mkfeuhrer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F147508%2Fcd5748f1-4016-479f-94f2-9b0bf3fee959.jpg</url>
      <title>DEV Community: Mohit Khare</title>
      <link>https://dev.to/mkfeuhrer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mkfeuhrer"/>
    <language>en</language>
    <item>
      <title>5 factors to consider before making your next career decision</title>
      <dc:creator>Mohit Khare</dc:creator>
      <pubDate>Sun, 19 Dec 2021 11:49:06 +0000</pubDate>
      <link>https://dev.to/mkfeuhrer/5-things-to-consider-before-making-your-next-career-decision-1ckj</link>
      <guid>https://dev.to/mkfeuhrer/5-things-to-consider-before-making-your-next-career-decision-1ckj</guid>
      <description>&lt;p&gt;With booming startups and a crazy hiring market, here are 5 things to consider before making your next career decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Market 🚀
&lt;/h2&gt;

&lt;p&gt;What are the growth opportunities in the space? Is it the next big thing or just a new wave? &lt;/p&gt;

&lt;p&gt;Find a domain you're excited about. You'll be investing in them with your time. Choose it wisely!&lt;/p&gt;




&lt;h2&gt;
  
  
  Learning 💡
&lt;/h2&gt;

&lt;p&gt;Does this help in growing your skillset? Avoid doing the same work for a longer time. Learn new stuff. Get out of your comfort zone!&lt;/p&gt;

&lt;p&gt;Learning is a lifelong process.&lt;/p&gt;




&lt;h2&gt;
  
  
  Impact ✅
&lt;/h2&gt;

&lt;p&gt;What is the kind of impact you'll be creating with this new role? Are your contributions significant and impact at scale? &lt;/p&gt;

&lt;p&gt;You should be proud and have content about what you work on.&lt;/p&gt;




&lt;h2&gt;
  
  
  Network 🌐
&lt;/h2&gt;

&lt;p&gt;Most people don't really think of this in their career move. Research about the current employees and teams at that company.&lt;/p&gt;

&lt;p&gt;Get in a good network. Grow it! Network effects will kick in later if not now.&lt;/p&gt;




&lt;h2&gt;
  
  
  Compensation 💸
&lt;/h2&gt;

&lt;p&gt;Most people focus too much on this part. It is definitely an important aspect but shouldn't be the deciding factor. &lt;/p&gt;

&lt;p&gt;Over a longer period, your growth matters. Great companies invest in your career and reward you highly over a longer period.&lt;/p&gt;




&lt;p&gt;Check out more blogs related to programming, tech and productivity at &lt;a href="https://mohitkhare.com/"&gt;mohitkhare.com&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;I share regular updates on &lt;a href="https://twitter.com/mkfeuhrer"&gt;Twitter&lt;/a&gt;. Let's connect!&lt;/p&gt;

</description>
      <category>career</category>
      <category>tech</category>
      <category>developers</category>
      <category>hiring</category>
    </item>
    <item>
      <title>Publish your Command Line Python Package to the world in 5 minutes</title>
      <dc:creator>Mohit Khare</dc:creator>
      <pubDate>Sat, 23 Mar 2019 13:06:15 +0000</pubDate>
      <link>https://dev.to/mkfeuhrer/publish-your-command-line-python-package-to-the-world-in-5-minutes-ilm</link>
      <guid>https://dev.to/mkfeuhrer/publish-your-command-line-python-package-to-the-world-in-5-minutes-ilm</guid>
      <description>&lt;p&gt;Have you build something amazing and want everyone to use it ? &lt;/p&gt;

&lt;p&gt;Yes, you can do that easily by sharing your package on PyPi.&lt;br&gt;
Follow the guide to publish your first ever python package.&lt;/p&gt;

&lt;p&gt;The Python Package Index (PyPI) is a repository of software for the Python programming language.PyPI helps you find and install software developed and shared by the Python community.It currently has over 173k projects.&lt;/p&gt;

&lt;p&gt;If you are familiar with python, You must have came across -&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;pip&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;package&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Minimal structure for your project to be published requires following structure -&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;counter
        /__main__.py
README.md
LICENSE.txt
setup.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I am making a package named counter.(you can use yours)&lt;/p&gt;

&lt;p&gt;In setup.py you need to specify all the components of your package.&lt;br&gt;
Have a look at the file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="nf"&gt;setup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;counter&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;1.0.0&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;A Python package for getting list of numbers from 1 to 100&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;https://github.com/&amp;lt;username&amp;gt;/&amp;lt;package-name&amp;gt;&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;entry_points&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;console_scripts&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;counter= counter.__main__:main&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]},&lt;/span&gt;
      &lt;span class="n"&gt;keywords&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;counter&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;programming language ranking&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;index&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;programming language&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
      &lt;span class="n"&gt;author&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Mohit Khare (mkfeuhrer)&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;author_email&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;mohitfeuhrer@gmail.com&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;license&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;MIT&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;packages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;counter&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
      &lt;span class="n"&gt;install_requires&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
          &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;requests&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
      &lt;span class="p"&gt;],&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Most of the field are represented via key names like name,version,etc.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Url field denotes the code repository url.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The field entry_points denotes the entry point of our package. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;counter.&lt;strong&gt;main&lt;/strong&gt;:main specifies to main function in &lt;strong&gt;main&lt;/strong&gt;.py inside counter folder. (Do replace counter with your package name)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can look for details &lt;a href="https://setuptools.readthedocs.io/en/latest/setuptools.html#developer-s-guide" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Next step is to make your LICENSE.txt. (I have used MIT license)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MIT License

Copyright (c) &amp;lt;year&amp;gt; &amp;lt;your name&amp;gt;

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now fill up your README.md with some markdown text.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#counter

A Python package for getting list of numbers from 1 to 100.

### Dependencies

+ requests

## Contributors

- [Mohit Khare](https://github.com/mkfeuhrer)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we are set to write our command line parser.&lt;/p&gt;

&lt;p&gt;Let's start with &lt;strong&gt;main&lt;/strong&gt;.py -&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def main(argv=None):

    """
    :desc: Entry point method
    """
    if argv is None:
        argv = sys.argv

    try:
        parser = create_parser()


if __name__ == '__main__':
    sys.exit(main(sys.argv))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We initialized our &lt;strong&gt;main&lt;/strong&gt;.py to call main function which accepts arguments.&lt;br&gt;
All we need is a create_parser() function now.&lt;/p&gt;
&lt;h1&gt;
  
  
  Develop your parser
&lt;/h1&gt;

&lt;p&gt;We will use &lt;a href="https://docs.python.org/3/howto/argparse.html#introducing-positional-arguments" rel="noopener noreferrer"&gt;argparse&lt;/a&gt; package for parsing.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import argparse

def create_parser():
    parser = argparse.ArgumentParser()
    parser.add_argument('--counttill100',required=False,action='store_true',help='Print count till 100')

    return parser    

def main(argv=None):    

    """
    :desc: Entry point method
    """
    if argv is None:
        argv = sys.argv

    try:
        parser = create_parser()
                args = parser.parse_args(argv[1:])

        # Arguments initialization
        counttill100= args.counttill100

                # Parser check
        if counttill100:
            counttill100fun()

                except KeyboardInterrupt:
        print('\nGood Bye.')
            return 0

def counttill100fun():
    for i in range(1,101):
        print(i)


if __name__ == '__main__':
    sys.exit(main(sys.argv))

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We added a counttill100fun() function to print numbers from 1 to 100.&lt;br&gt;
You can run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python __main__.py --counttill100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Yay!! we successfully build our parser.&lt;/p&gt;

&lt;h1&gt;
  
  
  Publish your package
&lt;/h1&gt;

&lt;p&gt;Register yourself on &lt;a href="https://pypi.org/" rel="noopener noreferrer"&gt;PyPi&lt;/a&gt; if you do not have a account.&lt;/p&gt;

&lt;p&gt;Now generate distribution package by running this in your root folder.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install --user --upgrade setuptools wheel
python3 setup.py sdist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Upload your package to PyPi , you will be prompted to enter your username and password.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;twine upload dist/*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hurrah !! You just published your first package.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.kym-cdn.com%2Fentries%2Ficons%2Ffacebook%2F000%2F021%2F807%2F4d7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.kym-cdn.com%2Fentries%2Ficons%2Ffacebook%2F000%2F021%2F807%2F4d7.jpg" alt="Hackerman"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can install it by infamous command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install &amp;lt;your-package-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's time to build some new projects and start contributing.&lt;/p&gt;

&lt;p&gt;PS: Check my package here : &lt;a href="https://github.com/mkfeuhrer/richest" rel="noopener noreferrer"&gt;Richest&lt;/a&gt; or do a simple&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install richest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Happy developing !!&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>pypi</category>
      <category>commandlinetool</category>
    </item>
  </channel>
</rss>
