<?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: Wasi Master</title>
    <description>The latest articles on DEV Community by Wasi Master (@wasimaster).</description>
    <link>https://dev.to/wasimaster</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%2F756645%2Fae89c80f-5698-44aa-94b4-e7f32fa20aca.png</url>
      <title>DEV Community: Wasi Master</title>
      <link>https://dev.to/wasimaster</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wasimaster"/>
    <language>en</language>
    <item>
      <title>5 Python Tips That New Programmer Would Love</title>
      <dc:creator>Wasi Master</dc:creator>
      <pubDate>Sun, 09 Jan 2022 18:31:29 +0000</pubDate>
      <link>https://dev.to/wasimaster/5-python-tips-that-new-programmer-would-love-5744</link>
      <guid>https://dev.to/wasimaster/5-python-tips-that-new-programmer-would-love-5744</guid>
      <description>&lt;p&gt;So you’re new to python programming? and you want some tips? then you’ve come to the right place. In this post I’ll provide 5 python tips that I see beginners make a lot. And trust me when I say this, I’ve taught a lot (and I mean a lot!) of people. I’ve seen a immense range of code ranging from pure beauty to absolute trash.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Follow PEP-8
&lt;/h2&gt;

&lt;p&gt;PEP-8 is a PEP (Python Enhancement Proposal) that suggests coding conventions for python code. Like a style guide for python code. Code is read much more often that it’s written, and you should try to make your code as readable as possible, even for you. The guide can be found at &lt;a href="https://www.python.org/dev/peps/pep-0008/"&gt;www.python.org/dev/peps/pep-0008/&lt;/a&gt;, and you can see a more beautified version at &lt;a href="https://pep8.org/"&gt;pep8.org&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Ask good questions
&lt;/h2&gt;

&lt;p&gt;In your journey you’ll often get stuck doing something. Especially if you try to code by yourself. In this situation you might want to search online for solutions first. Then if there aren’t any solutions you may be tempted to ask someone, maybe in a Discord server, maybe some friend you know that does programming. In any case, you should always ask good questions, there is a &lt;a href="https://stackoverflow.com/help/how-to-ask"&gt;great guide from stackoverflow&lt;/a&gt; that’ll help you with this. And don’t ask a &lt;a href="https://xyproblem.info/"&gt;XY problem&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A prudent question is one-half of wisdom.&lt;br&gt;&lt;br&gt;
- Francis Bacon&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  3. Don’t do &lt;code&gt;import *&lt;/code&gt; or &lt;code&gt;from … import *&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Now at first you may think, importing everything makes it so easy, less typing, less hassle. But let me stop you right there. This may seem like it’ll make it easy, but you’ll regret it later down the line. Doing this makes it hard to figure out which functions are imported (and from where), and which functions are custom defined. It also makes it hard for 3rd party tools like &lt;code&gt;pyflakes&lt;/code&gt; to do static analysis with your imports. This WILL import a lot of stuff you’ll never use and will clutter up the namespace. As a concrete example, many users of NumPy have been bitten by &lt;code&gt;numpy.any&lt;/code&gt; shadowing &lt;code&gt;any&lt;/code&gt; when they do &lt;code&gt;from numpy import *&lt;/code&gt;. According to the Zen of Python:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Explicit is better than implicit.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://docs.python.org/3/tutorial/modules.html#:~:text=note%20that%20in%20general%20the%20practice%20of%20importing%20*%20from%20a%20module%20or%20package%20is%20frowned%20upon%2C%20since%20it%20often%20causes%20poorly%20readable%20code.%20however%2C%20it%20is%20okay%20to%20use%20it%20to%20save%20typing%20in%20interactive%20sessions."&gt;And even the official documentation for python discourages this&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Read the documentation
&lt;/h2&gt;

&lt;p&gt;Beginners, especially people whose native language is not English, don’t really want to read the documentation on stuff. Now this can be a very bad thing. You should always use what’s given to you. Reading documentation could bring out details you never could have otherwise found out. If you can’t find anything in the documentation you might also want to look at the source code. But the main thing is you should learn to read the documentation. If your English is weak then you may want to use &lt;a href="https://support.google.com/translate/answer/2534559"&gt;Google Translate’s website translation tool&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The more that you read, the more things you will know. The more that you learn, the more places you’ll go.&lt;br&gt;&lt;br&gt;
- Dr. Seuss&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  5. Always following tutorials
&lt;/h2&gt;

&lt;p&gt;Tutorials can be good, tutorials can be bad. Specially in the case of programming. There are always more than one way to do things and if a tutorial shows a way that is bad then you’ll learn it and remember it thinking it is really good but in reality it was not that good. Always research on your own first, I’ve seen countless outdated tutorials that show stuff that used ot exist but don’t exist anymore, see if the tutorial you’re watching is recent or not. And try not relying on tutorials too much since you want to make stuff yourself and not be taught like a puppet what to do. In the real world there won’t be a guide you can just follow and everything would be done just by itself&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;No one achieves great things by following the crowd. Have a spine. Strike your own path.&lt;br&gt;&lt;br&gt;
- Robert Kiyosaki&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It’s easy to stand with the crowd, it takes courage to stand alone.&lt;br&gt;&lt;br&gt;
- Gandhi&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>instructions</category>
      <category>tutorial</category>
      <category>programming</category>
    </item>
    <item>
      <title>How I Made a Website That Removes Ads, Bypasses Paywalls for Articles</title>
      <dc:creator>Wasi Master</dc:creator>
      <pubDate>Fri, 07 Jan 2022 04:41:02 +0000</pubDate>
      <link>https://dev.to/wasimaster/how-i-made-a-website-that-removes-ads-bypassed-paywalls-for-articles-333c</link>
      <guid>https://dev.to/wasimaster/how-i-made-a-website-that-removes-ads-bypassed-paywalls-for-articles-333c</guid>
      <description>&lt;p&gt;Yesterday I built a simple website that takes in a URL and removes all ads and paywalled content and you can host it locally. The UI is very nice and pleasing. It uses google's &lt;code&gt;User-Agent&lt;/code&gt; to pretend it's google and gets the same content that the URL would give to google.&lt;/p&gt;

&lt;h2&gt;
  
  
  Motive
&lt;/h2&gt;

&lt;p&gt;I read a lot of articles, some of them have a paywall. And I don't really want to pay money to just read one article. If it was something I use daily then I could consider paying for it but for only once, no. So I usually go to &lt;a href="https://12ft.io"&gt;12ft.io&lt;/a&gt; for that but that website doesn't work for New York Times so I wondered if there were any alternatives. Then I thought to myself why wouldn't I be able to make one myself? So here we are now.&lt;/p&gt;

&lt;h2&gt;
  
  
  Their Implementation
&lt;/h2&gt;

&lt;p&gt;I first scrolled to the bottom of the &lt;a href="https://12ft.io"&gt;12ft.io&lt;/a&gt; page and saw an explanation of how it works:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The idea is pretty simple, news sites want Google to index their content so it shows up in search results. So they don't show a paywall to the Google crawler. We benefit from this because the Google crawler will cache a copy of the site every time it crawls it. All we do is show you that cached, un-paywalled version of the page.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So it depends on google crawler's cache? Cool. But what if the site isn't cached? I tried it with my own blog and it worked but couldn't show the full page for some reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Implementation
&lt;/h2&gt;

&lt;p&gt;So they load the cached version of the page the google crawler loaded.&lt;br&gt;
My website pretends to be the google crawler and no caching is required. And it can optionally cache those pages locally and there's no need for google to get involved.&lt;/p&gt;

&lt;h2&gt;
  
  
  So how to use it?
&lt;/h2&gt;

&lt;p&gt;You can click the image below to go to the GitHub repo containing the project and in there you'll find instructions on how to set this up and how to use it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/wasi-master/13ft"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mAJR_Qh5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://gh-card.dev/repos/wasi-master/13ft.png" alt="wasi-master/13ft - GitHub" width="442" height="108"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>instructions</category>
      <category>projects</category>
    </item>
    <item>
      <title>How to Remember So Many Programming Languages</title>
      <dc:creator>Wasi Master</dc:creator>
      <pubDate>Tue, 04 Jan 2022 18:27:34 +0000</pubDate>
      <link>https://dev.to/wasimaster/how-to-remember-so-many-programming-languages-4c4p</link>
      <guid>https://dev.to/wasimaster/how-to-remember-so-many-programming-languages-4c4p</guid>
      <description>&lt;p&gt;If you saw my previous post on how I learn new programming languages you may be wondering how (or even if) I remember all these programming languages, now this is a valid question as the saying goes &lt;em&gt;"Jack of all trades and master of none though oftentimes better than master of one"&lt;/em&gt;. That's exactly what I am gonna discuss today&lt;/p&gt;

&lt;h2&gt;
  
  
  About the saying...
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Jack of all trades and master of none though oftentimes better than master of one&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;From Wikipedia: "Jack of all trades, master of none" is a figure of speech used about a person who has dabbled in many skills, rather than gaining expertise by focusing on one.&lt;/p&gt;

&lt;p&gt;Read this &lt;a href="https://www.wikiwand.com/en/Jack_of_all_trades,_master_of_none"&gt;wikipedia article&lt;/a&gt; to learn more.&lt;/p&gt;

&lt;p&gt;This is the same for me to some extent, I know a bunch of programming languages but I would not say I am a master of any of them other than Python. I can say that in other languages I know enough to do simple tasks, things like Data Types, Variables, Keywords, Logical and Arithmetical Operators, If else conditions, Loops, Arrays, Functions. But just knowing that isn't gonna make you a master in any language.&lt;/p&gt;

&lt;h2&gt;
  
  
  So what do I need to become the master
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Standard Library
&lt;/h3&gt;

&lt;p&gt;The first thing is to learn the standard library it has and what you can do with those. For example the &lt;a href="https://docs.python.org/3/library/"&gt;python standard library documentation&lt;/a&gt; contains more than 200 libraries (Run &lt;code&gt;help('modules')&lt;/code&gt; in repl) and the &lt;a href="https://www.w3schools.com/nodejs/ref_modules.asp"&gt;node.js built-in module list&lt;/a&gt; has more than 25. There are stuff like &lt;a href="https://docs.python.org/3/library/stringprep.html"&gt;stringprep&lt;/a&gt;, &lt;a href="https://docs.python.org/3/library/rlcompleter.html"&gt;rlcompleter&lt;/a&gt;, &lt;a href="https://docs.python.org/3/library/tabnanny.html"&gt;tabnanny&lt;/a&gt;, &lt;a href="https://docs.python.org/3/library/reprlib.html"&gt;reprlib&lt;/a&gt;, &lt;a href="https://docs.python.org/3/library/linecache.html"&gt;linecache&lt;/a&gt;, &lt;a href="https://docs.python.org/3/library/imghdr.html"&gt;imghdr&lt;/a&gt;, &lt;a href="https://docs.python.org/3/library/fileinput.html"&gt;fileinput&lt;/a&gt;, &lt;a href="https://docs.python.org/3/library/contextvars.html"&gt;contextvars&lt;/a&gt;, &lt;a href="https://docs.python.org/3/library/mmap.html"&gt;mmap&lt;/a&gt; are just to name a few that are unheard of in normal day to day coding.&lt;/p&gt;

&lt;h3&gt;
  
  
  3rd party libraries
&lt;/h3&gt;

&lt;p&gt;Another thing to know to become a master is 3rd party libraries, these are not officially made by the language developers.&lt;/p&gt;

&lt;p&gt;For python things like requests, pylint/flake8/pep8, numpy, pandas, Django/flask, Pillow, matplotlib&lt;/p&gt;

&lt;h3&gt;
  
  
  Being able to make (almost) anything
&lt;/h3&gt;

&lt;p&gt;You should be able to code stuff easily as long as it isn't based on other things such as mathematics.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about you?
&lt;/h2&gt;

&lt;p&gt;I would say I am a "master" in python and nothing else really, I do sure know a lot of stuff but I would not consider myself a master in most of those. Even then there are things that I still don't know and am discovering regularly in python. I often see myself searching google for stuff in other languages since I forget them but googling shouldn't be seen as a bad thing. The main purpose is to make something. Things I use frequently are things I remember and things I don't use frequently, I often forget.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;To be able to forget means sanity.&lt;br&gt;
- Jack London, The Star Rover&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What about me?
&lt;/h2&gt;

&lt;p&gt;So if you want to remember stuff you have to practice. Once I had stopped using python for a month and after that, I had to try to remember some stuff and search google because I forgot them. Practice makes perfect.&lt;/p&gt;

</description>
      <category>instructions</category>
      <category>aboutme</category>
      <category>intermediate</category>
      <category>languages</category>
    </item>
    <item>
      <title>How Do I Learn New Programming Languages So Easily?</title>
      <dc:creator>Wasi Master</dc:creator>
      <pubDate>Mon, 03 Jan 2022 16:16:46 +0000</pubDate>
      <link>https://dev.to/wasimaster/how-do-i-learn-new-programming-languages-so-easily-3a9k</link>
      <guid>https://dev.to/wasimaster/how-do-i-learn-new-programming-languages-so-easily-3a9k</guid>
      <description>&lt;p&gt;So if you see my &lt;a href="https://www.linkedin.com/in/wasimaster"&gt;linkedin profile&lt;/a&gt; You may see that I know a lot of programming languages and frameworks. And you may (or may not) be wondering how I learned all those at such a young age or do I even know all those. The answer to the first question will be given in this post and the answer to the second question would be given in my next post&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites to learn new programming languages
&lt;/h2&gt;

&lt;p&gt;The first thing I'd suggest is for you to become fluent in coding fundamentals. After you learn to code in one programming language, other languages will be easier to learn.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A journey of a thousand miles begins with a single step&lt;br&gt;
- Chinese proverb&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You should start with one than learn more. You must remember, computational thinking and the coding fundamentals apply to every programming language no matter the complexity. If you already know one language you can move on the learning new languages.&lt;/p&gt;

&lt;h2&gt;
  
  
  First learn the basics
&lt;/h2&gt;

&lt;p&gt;First, learn the basics of the language then move on to libraries and frameworks. At first, if you start with too much then you will give up easily. A good site to learn the basics of a programming language really fast is &lt;a href="https://learnxinyminutes.com/"&gt;learnxinyminutes&lt;/a&gt; Or if you want a broader selection containing programming languages, frameworks mathematics, etc. check out &lt;a href="https://www.codecademy.com/resources/cheatsheets/all"&gt;codecademy's list of cheat sheets&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Then code something
&lt;/h2&gt;

&lt;p&gt;The next thing you should do is to code something other than Hello World. Try new projects, see &lt;a href="https://github.com/karan/Projects#readme"&gt;a list of projects to code&lt;/a&gt; and pick one then try it. You should try a few more projects until you think you understand all concepts. I keep a &lt;a href="https://github.com/wasi-master/coding-challenges"&gt;git repository of all of these projects I do&lt;/a&gt;, You may also want to do the same. Speaking of understanding all concepts&lt;/p&gt;

&lt;h2&gt;
  
  
  You must make sure you understand what you're doing
&lt;/h2&gt;

&lt;p&gt;The common mistake I often see beginners make is that they use tutorials too much, I do agree tutorials are good for teaching a specific thing in a specific way. But for programming, you must be creative and be able to build your own stuff too not just stuff made by others in tutorials. Copying code from StackOverflow is also similar, You should not copy code you don't understand, trust me it will cause issues later down the line.&lt;/p&gt;

&lt;h2&gt;
  
  
  General tips
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Read the documentation&lt;/strong&gt;
This is something I see a lot of people hate especially people just starting out with programming. documentation is important and you must take advantage of it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Coding challenges&lt;/strong&gt;
You should try coding challenges with your new language with sites such as &lt;a href="https://leetcode.com/"&gt;leetcode&lt;/a&gt;, &lt;a href="https://exercism.org/"&gt;exercism&lt;/a&gt;, &lt;a href="https://edabit.com/"&gt;edabit&lt;/a&gt;, &lt;a href="https://projecteuler.net/archives"&gt;project euler&lt;/a&gt;, &lt;a href="https://www.codewars.com"&gt;codewars&lt;/a&gt;, &lt;a href="https://www.codingame.com/"&gt;codingame&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Find a coding partner&lt;/strong&gt;
Find someone that codes in the language you want to learn, this can be a irl friend, family, or even a discord buddy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Learn to ask for help&lt;/strong&gt;
Whatever language you wish to learn be sure to ask for help when you get stuck somewhere, this can be in &lt;a href="https://stackoverflow.com"&gt;stackoverflow&lt;/a&gt; or &lt;a href="https://www.google.com"&gt;Google&lt;/a&gt; or ask in programming specific &lt;a href="https://www.reddit.com"&gt;reddit&lt;/a&gt; and &lt;a href="https://discord.com"&gt;Discord&lt;/a&gt; communities&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Take breaks&lt;/strong&gt;
You don't have to sit in front of a computer for hours and hours at a time. Try to take breaks and do the other things you have to do except programming. Sometimes you spend hours and hours to find the bug but you don't get the solution for your code so it's good to take a short break. It will restore your focus and help you find solutions to your problems&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>instructions</category>
      <category>aboutme</category>
      <category>tutorial</category>
      <category>programming</category>
    </item>
    <item>
      <title>About Myself</title>
      <dc:creator>Wasi Master</dc:creator>
      <pubDate>Fri, 31 Dec 2021 18:00:00 +0000</pubDate>
      <link>https://dev.to/wasimaster/about-myself-531f</link>
      <guid>https://dev.to/wasimaster/about-myself-531f</guid>
      <description>&lt;p&gt;You somehow have stumbled across my blog and are wondering who is this guy? Is he even a real person? Or you just don't care and want to go on about your life in that case feel free to click away. In this post, I'll give an introduction to myself and share some details about my job what I do, what I don't do, and some nice information about myself with some facts&lt;/p&gt;

&lt;h2&gt;
  
  
  Who am I?
&lt;/h2&gt;

&lt;p&gt;You may know me by my internet pseudonym, Wasi Master. In fact, some may even know my real name is Arian Mollik Wasi. I am a young dude from Bangladesh who is always trying out new things, I am very passionate about programming. I also like 3D Modelling, Animation, Photography, Music, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do I do?
&lt;/h2&gt;

&lt;p&gt;I am just a 9th grader living in Bangladesh. I currently do not have any job and am not looking for any either. I just want to increase my experience in the things I love and focus on the things I want. I also try to keep at least some basic knowledge in a lot of other fields as well. I love what I do and I am happy with my life.&lt;/p&gt;

&lt;h2&gt;
  
  
  What am I good at?
&lt;/h2&gt;

&lt;p&gt;I love programming in general, I mostly code in Python but I do know a lot of other languages just in case I ever need to understand some code written in those languages as well. I do have excellent knowledge of computers and I can google my way out of problems. I also know adequate English that helps me do all this. I help my friends and family fix all kinds of tech issues and I'm mostly well-liked by them. I believe everyone can do something very well. Here's a quote from Einstein&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.&lt;/strong&gt;&lt;br&gt;
- Albert Einstein&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What am I bad at?
&lt;/h2&gt;

&lt;p&gt;I would say I am not very good at talking slowly 😅.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the most important thing in my life?
&lt;/h2&gt;

&lt;p&gt;I think the most important thing in my life at the moment is proper education. So I'll try to focus on education more in the next few years and keep using my computer at a minimum.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who are the most important people in my life?
&lt;/h2&gt;

&lt;p&gt;I would say some of the most important people in my life are my younger brother who does not like me at all but I love him and he is very smart compared to other kids I see, so that cheers me up. My mother and father also play a big role in my life. And my home tutor has taught me some important life lessons that I'll never forget&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s my definition of success?
&lt;/h2&gt;

&lt;p&gt;I like to define success as the opposite of failure. My favorite quote about success is one from Stephen Hawking&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;However difficult life may seem, there is always something you can do and succeed at.&lt;/strong&gt;&lt;br&gt;
- Stephen Hawking&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What personal achievements am I most proud of?
&lt;/h2&gt;

&lt;p&gt;I would consider &lt;a href="https://github.com/wasi-master/pypi-command-line"&gt;pypi-command-line&lt;/a&gt;, &lt;a href="https://github.com/wasi-master/wm_bot"&gt;my discord bot&lt;/a&gt;, &lt;a href="https://wasi-master.github.io"&gt;my website&lt;/a&gt;, and &lt;a href="https://github.com/wasi-master/coding-challenges"&gt;my coding challenges repo&lt;/a&gt;. I have a &lt;a href="https://wasi-master.github.io/#work"&gt;bunch of other projects too&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I want others to see me?
&lt;/h2&gt;

&lt;p&gt;I want others to see me as a happy, kind, and caring person. I do not want to be hated like others so I try not to hate others&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Behind every successful person lies a pack of Haters!&lt;/strong&gt;&lt;br&gt;
- Eminem&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What do I think about myself?
&lt;/h2&gt;

&lt;p&gt;I think of myself as a good person and not an evil one. I try to do good deeds whenever I can. And I like to spread positivity&lt;/p&gt;

&lt;h2&gt;
  
  
  If I have one year left to live, what would I do?
&lt;/h2&gt;

&lt;p&gt;I'll try to visit places that I really want to visit. I'll also try to pay my debts and apologize to people.&lt;/p&gt;

&lt;h2&gt;
  
  
  If I have one week left to live, what would I do?
&lt;/h2&gt;

&lt;p&gt;I'll do anything I want, and be reckless I guess. I'd also apologize to people if I owe them an apology.&lt;/p&gt;

&lt;h2&gt;
  
  
  If I have one day left to live, what would I do?
&lt;/h2&gt;

&lt;p&gt;I'd make sure my friends and family know about this and then spend the day with them&lt;/p&gt;

&lt;h2&gt;
  
  
  If I have one minute left to live, what would I do?
&lt;/h2&gt;

&lt;p&gt;I'll just sleep for one whole minute and think about what I have done in my life.&lt;/p&gt;

</description>
      <category>introduction</category>
      <category>aboutme</category>
      <category>master</category>
      <category>life</category>
    </item>
    <item>
      <title>Viewing python packages' information directly from the terminal</title>
      <dc:creator>Wasi Master</dc:creator>
      <pubDate>Thu, 18 Nov 2021 18:22:39 +0000</pubDate>
      <link>https://dev.to/wasimaster/viewing-python-packages-information-directly-from-the-terminal-549m</link>
      <guid>https://dev.to/wasimaster/viewing-python-packages-information-directly-from-the-terminal-549m</guid>
      <description>&lt;h3&gt;
  
  
  Why do I need this?
&lt;/h3&gt;

&lt;p&gt;As a programmer, you probably know how to use a terminal. Sometimes &lt;em&gt;you just don't want to have to open up a browser&lt;/em&gt; only to check how many downloads your favorite python package has, or you just wanna see how to do something in a specific library such as &lt;a href="https://www.djangoproject.com/"&gt;django&lt;/a&gt; or maybe &lt;em&gt;you want to see if a package exists and see it's description before you install it&lt;/em&gt;. I've also faced these issues so &lt;strong&gt;I went out to create my own library to interface  &lt;a href="https://pypi.org/"&gt;PyPI&lt;/a&gt; within a terminal&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I &lt;em&gt;do not earn nor do I want to earn any gains&lt;/em&gt; from this, this is purely for the users' productivity&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How does it look?
&lt;/h3&gt;

&lt;p&gt;Here's an example of how the information command looks:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqgr3mb9bjz6cwworzvf4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqgr3mb9bjz6cwworzvf4.png" alt="Image showing how the package info looks" width="800" height="821"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And for the search command:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhx5ip7cgpgkic5krmj9k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhx5ip7cgpgkic5krmj9k.png" alt="Image showing how the package search looks" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For screenshots of all the other 15+ commands, be sure to check out &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/"&gt;the documentation&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How does it work?
&lt;/h3&gt;

&lt;p&gt;How the information command works is that it uses the &lt;a href="https://warehouse.pypa.io/api-reference/json.html"&gt;PyPI API&lt;/a&gt; to fetch general information about the package. Then it uses the &lt;a href="https://docs.github.com/en/rest/reference/repos#get-a-repository"&gt;GitHub API&lt;/a&gt; to get information such as the stars, forks, size, etc. Then, at last, it uses the &lt;a href="https://pypistats.org/api/"&gt;PyPI Stats API&lt;/a&gt; to get the download count per month, week, and day. Then it combines all these to form a beautiful display with rich colors, panels, hyperlinks, and much more! It also implements caching logic so usage in long coding sessions can stay smoother than ever!&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I install it?
&lt;/h3&gt;

&lt;p&gt;You can install it just by running&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;pypi-command-line
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you can use the &lt;code&gt;pypi -h&lt;/code&gt; command to test it out. For more information &lt;strong&gt;see the &lt;a href="https://wasi-master.github.io/pypi-command-line/install/"&gt;installation page on the docs&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And to test out the package info feature you can run.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pypi info Django
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;`Django is just, for example, &lt;em&gt;you can see info for any package on pypi&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I see the source code, please?
&lt;/h3&gt;

&lt;p&gt;The source code is available on GitHub: &lt;a href="https://github.com/wasi-master/pypi-command-line"&gt;wasi-master/pypi-command-line&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;{% github wasi-master/pypi-command-line %}&lt;/p&gt;

&lt;h3&gt;
  
  
  Ending Notes
&lt;/h3&gt;

&lt;p&gt;But wait there's more, It has tons of &lt;a href="https://wasi-master.github.io/pypi-command-line/smart_features/"&gt;smart features&lt;/a&gt; that help you in many ways, It has &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/"&gt;a lot of other commands&lt;/a&gt; too such as &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#browse"&gt; &lt;code&gt;browse&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#information"&gt; &lt;code&gt;information&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#description"&gt; &lt;code&gt;description&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#search"&gt; &lt;code&gt;search&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#wheels"&gt; &lt;code&gt;wheels&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#releases"&gt; &lt;code&gt;releases&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#largest-files"&gt; &lt;code&gt;largest-files&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#regex-search"&gt; &lt;code&gt;regex-search&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#version"&gt; &lt;code&gt;version&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#cache-info"&gt; &lt;code&gt;cache-info&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#cache-refresh"&gt; &lt;code&gt;cache-refresh&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#cache-clear"&gt; &lt;code&gt;cache-clear&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#new-packages"&gt; &lt;code&gt;new-packages&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#new-releases"&gt; &lt;code&gt;new-releases&lt;/code&gt; &lt;/a&gt;, &lt;a href="https://wasi-master.github.io/pypi-command-line/usage/#read-the-docs"&gt; &lt;code&gt;read-the-docs&lt;/code&gt; &lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
