Skip to main content

Package to get weather information about Mauritius from the official meteo website.

Project description

meteomoris

get info about the weather in mauritius!

pip install meteomoris

examples

>>> from meteomoris import meteo

>>> meteo.get_weekforecast()
{0: {'condition': 'Few showers highgrounds',
     'date': 'Apr 22',
     'day': 'Mon',
     'max': '32�',
     'min': '21�',
     'probability': 'High',
     'sea condition': 'rough',
     'wind': 'E25G50'},
 1: {
...
}

>>> meteo.get_weekforecast(day=3)
{'condition': 'Few passing showers',
 'date': 'Apr 25',
 'day': 'Thu',
 'max': '31�',
 'min': '20�',
 'probability': 'Medium',
 'sea condition': 'moderate',
 'wind': 'SE20'}

>>> meteo.get_weekforecast(day=3)['condition']
'Few passing showers'

>>> meteo.get_cityforecast()
{0: {'condition': 'Partly cloudy',
     'date': 'Apr 22',
     'day': 'Mon',
     'max': '31�',
     'min': '26�',
     'wind': 'E25G50'},
 1: {'condition': ...
}

>>> meteo.get_moonphase()
{'April 2019': {'first quarter': {'date': '12', 'hour': '23', 'minute': '06'},
                'full moon': {'date': '19', 'hour': '15', 'minute': '12'},
                'last quarter': {'date': '27', 'hour': '02', 'minute': '18'},
                'new moon': {'date': '05', 'hour': '12', 'minute': '50'}},
 'May 2019': {'first quarter': {'date': '12', 'hour': '05', 'minute': '12'},
...

>>> may = meteo.get_moonphase(month='May 2019')
>>> may['new moon']['date']
'05'

Local test

git clone https://github.com/Abdur-rahmaanJ/meteomoris.git
python -m pip install <path-to-package>/meteomoris

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for meteomoris, version 0.9.4
Filename, size File type Python version Upload date Hashes
Filename, size meteomoris-0.9.4-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size meteomoris-0.9.4.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page