Ayush Moghe
Panclus
Published in
3 min readFeb 10, 2021

--

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.

import PanclusGz

Now, PanclusGz contains many submodules that are listed below:

  1. Locations
  2. Gz
  3. Dependencies
  4. Installer

You can find the link for the github repository of panclus here.

If you want the full tutorial for PanclusGz please visit: https://libraries.io/pypi/panclus or https://pypi.org/project/panclus/

Below you can find the code for making the weather reporter:

import PanclusGz
from PanclusGz import locations as ls
while True:
place = input('enter your place: ')
print(ls.get_weather(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.

--

--

Ayush Moghe
Panclus
0 Followers
Editor for

I started learning python when I was in seventh class and now I am learning advanced c++, Julia and Javascript.