Skip to main content

WeatherCls

PyPI - Version

A Python library for storing and managing weather-related dataclasses from APIs.

Installation

pip install weathercls

Basic Usage

You can initialize the class manually or convert a Dictionary into the corresponding class using other libraries such as dacite.

from dacite import from_dict
from weathercls.weatherapicom import transform_to_snake_case
from weathercls.weatherapicom.forecast_weather.ForecastWeather import ForecastWeather

weather_forecast = {...}
weather_forecast = transform_to_snake_case(weather_forecast) # converts keys with dashes to underscores for better compatibility with dacite

forecast_weather = from_dict(data_class=ForecastWeather, data=weather_forecast)
print(forecast_weather)

List of Classes by Weather APIs

Name Package
weatherapi.com weathercls.weatherapicom

Metadata

Release files for weathercls 1.0.0

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

Source distribution (sdist)

Source distribution for weathercls 1.0.0
File Size Uploaded Provenance Actions
weathercls-1.0.0.tar.gz 4.3 kB Without provenance Details for weathercls-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.6 kB

Release files / weathercls-1.0.0.tar.gz

Download URL weathercls-1.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7d264308f4b017cbffb52574db647ecbe9d5d6456e008b4ab6d4633c56135097
BLAKE2b-256 checksum
How to use checksums
ab413ab8f73af0ab500bb63330ffc682640a150a33e0b5b94b0b80934f1ea0a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-49-generic

Release files / weathercls-1.0.0-py3-none-any.whl

Download URL weathercls-1.0.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74bec04874d3e92f89f847b50a6b65142401a630063b9dafc596014e2cc25c8a
BLAKE2b-256 checksum
How to use checksums
410d66f1c7993c6750a6fc03bc6cb61620c1f316163098ea056ab828d8886c73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-49-generic

Security for weathercls 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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