Skip to main content

Yet Another Meteo Swiss Library

Project description

YAMSL

License

Yet Another Meteo Swiss Library

General Info

This python library provides an easy way to get forecasts from MeteoSwiss.

Installation

Install with pip:

$ pip install yamsl

Usage

from yamsl import MeteoSwiss


meteo = MeteoSwiss() # instanciate MeteoSwiss
await meteo.setup(8001) # setup with zip-code
forecast = await meteo.updateForecast() # update forecast (also returns forecast)

Licence

Disclaimer

The code is provided as is. This is an unofficial client.

Thanks

Development

After cloning repo:

// Create the virtual environment
$ python3 -m venv venv
$ python -m venv venv

// Activate the virtual environment (Linux/macOS)
$ source venv/bin/activate

// Install requirements
$ pip install -r requirements.txt

Before checking in again:

// Freeze requirements
$ pip freeze > requirements.txt

Deploy

Compile and test

python setup.py sdist bdist_wheel
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*

Project details


Download files

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

Source Distribution

yamsl-0.1.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

yamsl-0.1.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page