STAC Transaction API Client¶
stac-transaction-api-client is a Python client for the STAC API Transaction
Extension. It provides sync and async endpoint helpers backed by httpx and
uses PySTAC objects for STAC item payloads and successful item responses.
Choose the documentation you need¶
- Tutorials: learn the client through a complete item lifecycle.
- How-to guides: install the package or perform a specific transaction.
- Reference: look up endpoint signatures, response types, and client options.
- Explanation: understand generation, PySTAC integration, and optimistic locking.
Quick start¶
Install the package with the PySTAC integration used by the transaction modules:
python -m pip install "stac-transaction-api-client[pystac]"
Create a client and retrieve an item:
from stac_transaction_api_client import Client
from stac_transaction_api_client.api.transaction import get_feature
client = Client(base_url="https://stac.example.com")
response = get_feature.sync_detailed(
"example-collection",
"example-item",
client=client,
)
item = response.parsed
if item is not None:
print(item.id)
Start with First steps for a guided create, read, replace, and delete workflow.