This release is a pre-release and may not be stable for production use.
CRC SDK
Scientific data, modelling workflows, and canonical datasets for Climate Risk Commons.
The SDK owns data identity, temporal and spatial declarations, provenance, and columnar storage. crc-framework owns numerical laws, quantile evidence, fitting specifications, measurements, and mathematical impacts.
Install
python -m pip install --upgrade --pre "crc-sdk>=1.0.0a1,<2"
1.0 is in prerelease; a plain pip install crc-sdk installs the latest 0.x
release. Python 3.11 or later is required. H3 and geometry validation are part of the core
package. Source-format extras are raster, netcdf, and zarr.
Source readers import those dependencies only when needed.
Upgrading from 0.x? Start with the 1.0 migration guide.
Query a dataset
Supply quantile values as columns in a Python mapping. This example has two depth values in metres at the same point and queries the 10-year and 100-year event levels at a colocated asset.
from crc_framework import DepthAboveGround, LengthUnit, Tail
from crc_sdk import Assets, Dataset, Probability, Variable
depth = Dataset.from_quantiles(
{
"support_id": ["station-a", "station-a"],
"longitude": [24.0, 24.0],
"latitude": [60.0, 60.0],
"probability": [0.90, 0.99],
"value": [0.3, 0.85],
},
variable=Variable(
"company:water-depth",
measurement=DepthAboveGround(unit=LengthUnit.METRE),
),
probability=Probability.annual(tail=Tail.UPPER),
)
assets = Assets({"asset_id": ["warehouse"], "longitude": [24.0], "latitude": [60.0]})
events = depth.evaluate(assets).return_periods([10, 100]).read()
assert events.table["value"].to_pylist() == [0.3, 0.85]
The final read() validates the inputs, matches the asset, and evaluates the
two supplied knots. Use your own variable, support, and asset IDs. Supply a
scenario or period when your source establishes those facts. Evaluation guide
Documentation
- Scientific declarations: variables, periods, probability, measurements, and exact catalogs.
- Canonical datasets: current rows, numerical variants, provenance, spatial support, and storage validation.
- Execution and persistence: automatic upstream execution, explicit fitting, previews, reusable executions, streaming, and atomic writes.
- Sources and native evidence: typed providers, temporal aggregation, user evidence, and explicit asset inputs.
- Collections: selected scientific members and portable bundles.
- Evaluation: match assets, query event levels, and add calibrated named responses.
- Python interface contract: canonical imports and installed-package enforcement.
- Development: setup, checks, generated contracts, and releases.
- Migrating to 1.0: 0.x to 1.0 changes with before/after examples.
- Release notes
Contributors
Thanks to the people who shape this project through code, reviews, research, discussion, and ideas.
@ChrisHampu 💻 👀 |
@woozyking 💻 👀 |
@awiebe42 💻 👀 🔬 |
@kylalangotsky 🔬 |
@reshmasoman 🔬 |
@rkodamana 🔬 👀 |
@dilshank 🔬 |
@shlyakh 💻 |
Contribution types: 💻 code · 👀 review · 🔬 research. We recognize contributions both on and off GitHub using All Contributors.
License
The SDK is licensed under AGPL-3.0-or-later. Source data have their own terms. Resource records retain their actual license, attribution, retrieval time, and content identity; unknown facts are not replaced with guessed terms.
Metadata
Release files for crc-sdk 1.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crc_sdk-1.0.0a1.tar.gz | 401.9 kB | With provenance | Details for crc_sdk-1.0.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crc_sdk-1.0.0a1-py3-none-any.whl | Python 3 | none | any | Details for crc_sdk-1.0.0a1-py3-none-any.whl |
Total release size: 718.0 kB
Release files / crc_sdk-1.0.0a1.tar.gz
| Download URL | crc_sdk-1.0.0a1.tar.gz |
|---|---|
| Size | 401.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
829ce487c639fed86fb4334d39e0bb9f0b35cde598351a0953e58c286daf2aac
|
|
BLAKE2b-256 checksum How to use checksums |
17d35fa6487313e6ef48f9e717687afc7985dd91ea4695034964a8f20800ffb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / crc_sdk-1.0.0a1-py3-none-any.whl
| Download URL | crc_sdk-1.0.0a1-py3-none-any.whl |
|---|---|
| Size | 316.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56bc8e48f430f15c6bbc444d3d58ad65e38d7b48ab950b69d8c681876fa6f3a3
|
|
BLAKE2b-256 checksum How to use checksums |
ff84899d915fedba66c2398769906bb12e9d480c2b0eece8dbd86ee1f4e1a2c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for crc-sdk 1.0.0a1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for crc_sdk-1.0.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA 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.