Skip to main content

A python package to retrieve forecast data from SIMEPAR

Project description

pysimepar

This a is python package to retrieve forecast data from Simepar (www.simepar.br). Since this package tries to webscrape information from simepar webpage, small changes to that webpage may break the parsing.

Install

You may install it using pip:

pip install pysimepar

Usage

Import the packge in your code and instantiate the PySimepar class with your city code:

from pysimepar import PySimepar
s = PySimepar(4106902)

To retrieve the forecast data, just call the update method. The current condition, hourly_forecast and daily forecast will be at the class data dictionary:

s.update()
print(s.data)

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

pysimepar-0.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysimepar-0.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pysimepar-0.4.tar.gz.

File metadata

  • Download URL: pysimepar-0.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pysimepar-0.4.tar.gz
Algorithm Hash digest
SHA256 d7d7def8bcd4f4e8cdf1f9e1c2a1900f9432545b19e75b4ffacd3f8a5da54f37
MD5 dc6f2d05ae3a75f22529f21e11424b14
BLAKE2b-256 d498bae9a9688afe88ff049592fbbc64533f22a80cf88ec0f91ecda16f8bf648

See more details on using hashes here.

File details

Details for the file pysimepar-0.4-py3-none-any.whl.

File metadata

  • Download URL: pysimepar-0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pysimepar-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0b5aae146b7b48f45aa7dd5ca54cb5d3aeed6e3ea84a7066e0a0ad2f26af1a06
MD5 7566fc880a5f16b8518165b2b7f8f537
BLAKE2b-256 a51858700ba004ba6408d98a30d56192829bbc38601cc6c2191fa1a85f04e5c7

See more details on using hashes here.

Supported by

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