Skip to main content

Open-Meteo Python SDK

https://pypi.org/project/openmeteo-sdk/

pip install openmeteo-sdk

Missing sunrise, sunset, moonrise, and moonset timestamps

VariableWithValues.ValuesInt64AsNumpy() returns raw Unix timestamps in seconds for sunrise, sunset, moonrise, and moonset. When an event does not occur during the local calendar day, the value is the missing timestamp sentinel INT64_MAX (9223372036854775807).

For pandas, convert the raw accessor result to NaT like this:

import numpy as np
import pandas as pd

missing_int64 = np.iinfo(np.int64).max

raw = variable.ValuesInt64AsNumpy()
timestamps = pd.to_datetime(
    pd.Series(raw).mask(raw == missing_int64),
    unit="s",
    utc=True,
)

Metadata

Release files for openmeteo-sdk 1.29.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 openmeteo-sdk 1.29.0
File Size Uploaded Provenance
openmeteo_sdk-1.29.0.tar.gz 13.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for openmeteo-sdk 1.29.0
File Interpreter ABI Platform
openmeteo_sdk-1.29.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.7 kB

Release files / openmeteo_sdk-1.29.0.tar.gz

Download URL openmeteo_sdk-1.29.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cbb927da212d7a02818743715ca07a84a83b951c4372e8399e20329c5de70fac
BLAKE2b-256 checksum
How to use checksums
9a245f3783f22b58fb32d1d55e2e2055b8eee0dd05c46c4d6f9f6da366497081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / openmeteo_sdk-1.29.0-py3-none-any.whl

Download URL openmeteo_sdk-1.29.0-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55db0a1e4943b816bd1a31093bc4578137d43c6077f8155f9f53c928eba6696d
BLAKE2b-256 checksum
How to use checksums
8dc3b50ec2d035fb0578e9a31425a864fc6e115565e7681dbea12e4e82e363dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for openmeteo-sdk 1.29.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.

Release history Release notifications | RSS feed

This release

1.29.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