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

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

Built distribution (wheel)

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

Total release size: 33.9 kB

Release files / openmeteo_sdk-1.31.1.tar.gz

Download URL openmeteo_sdk-1.31.1.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fab920d9be9f2c7759dda7b51c235c97ceee8bef70adac85107da8d7913ae50a
BLAKE2b-256 checksum
How to use checksums
5594519548eb4b3aeabe8166e5cefa6d10c48fc9cbf269c6c1cb4e522c23c2a0
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.1-py3-none-any.whl

Download URL openmeteo_sdk-1.31.1-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f54942c4f94eb78f4e8ad554a1c115b21074eae9040b1d36bad1f371b9c7a0c8
BLAKE2b-256 checksum
How to use checksums
35293a5ad7f4be05e865d66a9e270f16ed39f3f22dcd152e882eac491166e9ab
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.1

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