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

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.31.2
File Size Uploaded Provenance Actions
openmeteo_sdk-1.31.2.tar.gz 13.4 kB Without provenance Details for openmeteo_sdk-1.31.2.tar.gz

Built distribution (wheel)

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

Total release size: 33.9 kB

Release files / openmeteo_sdk-1.31.2.tar.gz

Download URL openmeteo_sdk-1.31.2.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
439c2483f2a922baef3a61b4b25e59cc5eb0fb32675f50c589b3eb8088659c60
BLAKE2b-256 checksum
How to use checksums
dea6496978c248433cc1ab767aa8483dd202cee1a7b959a48fdf1682cb33d7d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.11.18

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

Download URL openmeteo_sdk-1.31.2-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cbee8ee1c00ff7ec30a9e215001306dab5edc37cc802206d07e8b1fa4b9e2b1
BLAKE2b-256 checksum
How to use checksums
1eac2eb269869af06bc5d3054f354d1ade23f3b9ebe9e20042f2466a4ef2e146
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.11.18

Security for openmeteo-sdk 1.31.2

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