Skip to main content

meteoredpy

Libreria para consumir y parsear a JSON API de meteored.cl

Uso

Antes de comenzar, es necesario registrarse en la página de meteored.cl para así obtener una affiliate_id_(API KEY).

from meteoredpy import Meteoredpy
API_KEY = ''
clima = Meteoredpy(API_KEY).get('conce')
print(clima)
'''
puede entregar 4 resultados:
1. {'ciudad': 'Concepción [Biobío;Chile]', 'maxima': '18', 'error': 0}
2. {'error': 1, 'msg': NameError("name 'xmltodict' is not defined")}
3. {'error': 2, 'msg': 'La ciudad no existe'}
4. {'error': 3, 'msg': 'Hubo un problema al intentar conectarse a la API de búsqueda de ciudades'}
'''

Tipo de resultados

  • Si el resultado que entrega es el (1), quiere decir que la consulta fue realizada con éxito.
  • Si el resultado que entrega es el (2), quiere decir que hubo una excepción, tal como muestra el ejemplo, la cual se solucionaría instalando la librería faltante. También, puede mostrar otro tipo de excepciones, tales como que hubo problemas para conectarse a la API del meteored.cl
  • Si el resultado que entrega es el (3), quiere decir que la ciudad no existe.
  • Si el resultado que entrega es el (4), quiere decir que hubo problemas para conectarse a la API de búsqueda de ciudades.

Release files for meteoredpy 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meteoredpy 0.0.4
File Size Uploaded
meteoredpy-0.0.4.tar.gz 39.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meteoredpy 0.0.4
File Interpreter ABI Platform
meteoredpy-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 67.5 kB

Release files / meteoredpy-0.0.4.tar.gz

Download URL meteoredpy-0.0.4.tar.gz
Size 39.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d305f04ebaef8b023697c3a9549ed7e9eb3434ae04da274ea455ae92aef91081
BLAKE2b-256 checksum
How to use checksums
32237f2f86f4fe60ec279dd4f1b26b6fe3023634747a6b3edeee1a9ca1d169a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release files / meteoredpy-0.0.4-py3-none-any.whl

Download URL meteoredpy-0.0.4-py3-none-any.whl
Size 27.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b1ade4f0c6462b9bdea034e32d0afe5c50e630d73487903691281b0b357c9f2
BLAKE2b-256 checksum
How to use checksums
548d90a552d3ff71793000ec4bf1805f940b8a4ab035aaf7b54cf185e874a17d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.15

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page