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.30.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.30.0
File Size Uploaded Provenance Actions
openmeteo_sdk-1.30.0.tar.gz 13.3 kB Without provenance Details for openmeteo_sdk-1.30.0.tar.gz

Built distribution (wheel)

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

Total release size: 33.8 kB

Release files / openmeteo_sdk-1.30.0.tar.gz

Download URL openmeteo_sdk-1.30.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9b643ce593a557eddc880f8526da9c3700ef96f4388e6f43b5e2cadb6d92cff4
BLAKE2b-256 checksum
How to use checksums
60c20e813c57c380d87547ddd05f0f83cffc087dc5407afcee1bf045e1e12243
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.30.0-py3-none-any.whl

Download URL openmeteo_sdk-1.30.0-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59df0e8ded1dff6d1a024de41a685c411f435c47270b774fffd23c023e990fd1
BLAKE2b-256 checksum
How to use checksums
8f3bf205b41b0eda5c22f642d3aae8f233d5693a5a15e708177e6d42593c8e5b
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.30.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.30.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