Making a weather reporter in just 5 lines of code in python.
When we talk about weather reporting in python the first module that comes in our mind is openweathermap API.But it takes several efforts for making a weather forecasting programme.Very few programmers know about any other python library for getting weather reports. In this article we will make our weather forecasting programme by using a python library that is recently released on pypi. The name of this library is panclus further the latest version is named as PanclusGz.
Introduction to panclus
Since panclus is released recently so it is not so popular but has many uses in our programming in python. Panclus is a very useful module for the programmers to convert text to speech in several languages, translating text as well as predicting date of solar and lunar eclipse in a single line of code. But Panclus is no longer in use the current version named PanclusGz is released recently but still the name Panclus is used to install it. The full name of Panclus Gz is Giga Panclus which include many sub-modules with more features than older versions of Panclus. The question that create a confusion among users is that is PanclusGz and panclus 2.6.0 are same? More probably PanclusGz is a part of panclus 2 series. Yes PanclusGz is also published on pypi as a library on pypi which includes same things that are in panclus 2.6.0 so both could be the same but are not as PanclusGz that is published on pypi is in the version of 1.6.0 and does not work properly so it is advisable not to use PanclusGz 1.6.0 and use panclus 2.6.0. The whole panclus library is created/developed/made/founded by Ayush Moghe. Also the series of panclus versions will continue and will come with many more versions in future.
Installation of panclus
pip install panclus
When you will type it in command prompt pip will install Panclus 2.6.0 that is PanclusGz. Older versions of panclus are named as panclus only.
Making the weather reporter
So the first thing that we will do is importing the library.
Now, PanclusGz contains many submodules that are listed below:
You can find the link for the github repository of panclus here.
Below you can find the code for making the weather reporter:
from PanclusGz import locations as ls
place = input('enter your place: ')
If you get error for no module named countryinfo then install countryinfo and after that again run the code.
when you will run your code you will get the output like this:
So all done. If you have any other questions about panclus you can ask them on github.