Skip to content

Version

stacrs.version builtin

version(name: str | None = None) -> str | None

Returns this package's version, or the version of a upstream.

Parameters:

Name Type Description Default
name str | None

The name of the upstream version to return. Valid values are "stac", "stac-api", "stac-duckdb", or "duckdb".

None

Returns:

Name Type Description
str str | None

The version, or None if the name is not recognized as an upstream.

Examples:

>>> stacrs.version()
"0.2.0"
>>> stacrs.version("duckdb")
"1.0.0"