Registry / data / rio-stac

rio-stac

JSON →
library0.12.0pypypi✓ verified 84d ago

Create SpatioTemporal Asset Catalog (STAC) Items from raster datasets using Rasterio. Version 0.12.0 dropped Python 3.9 support. Release cadence is irregular, with several minor releases per year.

pip install rio-stac
INSTALL
IMPORT
SIG · RIO-STAC
R
rio-stac
datapythonv0.12.0
Install
5.5s avg
Import
Disk
193MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.12.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.5s · import 0.000s · 196MB
193MB installed
● package 193MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rio_stac
import rio_stac
from rio_stac import stac
rio_stac has no submodule named 'stac'; the main module is the package itself.
stac
import rio_stac
from rio_stac import stac
No 'stac' function; use rio_stac.create_stac_item() directly.

Create a basic STAC Item from a raster URL.

import rio_stac from pystac import Item # Create a STAC item from a raster file item = rio_stac.create_stac_item( "https://example.com/sample.tif", input_datetime="2023-01-01T00:00:00Z", assets={"image": {"href": "https://example.com/sample.tif"}}, ) print(item.to_dict())
rio --version
Debug
Known issues
breakingDropped Python 3.9 support in version 0.12.0. Python 3.10+ required.
fix
Upgrade Python to 3.10 or higher, or pin rio-stac to <0.12.0.
affects: >=0.12.0
gotchaThe `input_datetime` parameter is required for `create_stac_item()`. If the raster's TIFF tags contain a datetime, it can be parsed automatically (use `input_datetime=None`), but this may fail silently.
fix
Always supply `input_datetime` explicitly, or ensure the raster has valid TIFF DateTime tags.
affects: all
deprecatedThe `geom` parameter in `create_stac_item` was deprecated in 0.10.0 in favor of `geometry`.
fix
Use `geometry` instead of `geom`.
affects: <0.10.0
gotchaWhen using `assets` parameter, the 'href' inside each asset must be an absolute URL or local path; relative paths may cause unexpected errors.
fix
Use absolute URIs for asset hrefs.
affects: all
Errors
Common errors & fixes
AttributeError: module 'rio_stac' has no attribute 'stac'
Incorrect import pattern: `from rio_stac import stac` or `rio_stac.stac(...)`
fix
Use `rio_stac.create_stac_item()` directly.
TypeError: create_stac_item() missing 1 required positional argument: 'input_datetime'
Missing the required `input_datetime` parameter.
fix
Pass an ISO datetime string or set to None (but prefer explicit datetime).
rio_stac.errors.DateParsingError: Could not parse datetime from raster metadata
The TIFF tags do not contain a valid datetime or the format is unsupported.
fix
Always provide an explicit `input_datetime` parameter.
Upgrade
Version history
0.12.0latest on PyPI · released Sep 17, 2025
Audit
Dependencies
rasteriorequiredCore dependency for raster I/O
pystacrequiredFor STAC item creation
Agent activity
42 hits · last 30 days
node
36
OpenAI (training)
1
Resources
rio-stac — pip install rio-stac · libregistry