UCP Python SDK
Project description
UCP Python SDK
Official Python library for the Universal Commerce Protocol (UCP).
Overview
This repository contains the Python SDK for the Universal Commerce Protocol (UCP). It provides Pydantic models for UCP schemas, making it easy to build UCP-compliant applications in Python.
Installation
For now, you can install the SDK using the following commands:
# Clone the repository
git clone https://github.com/Universal-Commerce-Protocol/python-sdk.git
# Navigate to the directory
cd python-sdk
# Install dependencies
uv sync
Development
Prerequisites
This project uses uv for dependency management.
Generating Pydantic Models
The models are automatically generated from the JSON schemas in the UCP Specification.
To regenerate the models:
uv sync
./generate_models.sh <version>
Where <version> is the version of the UCP specification to use (for example,
"2026-01-23").
If no version is specified, the main branch of the
UCP repo will be used.
The generated code is automatically formatted using ruff.
Contributing
We welcome community contributions. See our Contribution Guide for details.
License
UCP is an open-source project under the Apache License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ucp_sdk-0.3.0.tar.gz.
File metadata
- Download URL: ucp_sdk-0.3.0.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eb5fd4a6457471dce22189bec10570681cdfd4d07dacb29e74242800026776e
|
|
| MD5 |
b534ca14567d56aaac04036e46c85391
|
|
| BLAKE2b-256 |
87fbb20db6f7455b4690849d855b79b3df4e760ca08b61fd9d512ea1a7bf00f7
|
Provenance
The following attestation bundles were made for ucp_sdk-0.3.0.tar.gz:
Publisher:
release.yml on Universal-Commerce-Protocol/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ucp_sdk-0.3.0.tar.gz -
Subject digest:
9eb5fd4a6457471dce22189bec10570681cdfd4d07dacb29e74242800026776e - Sigstore transparency entry: 1203319665
- Sigstore integration time:
-
Permalink:
Universal-Commerce-Protocol/python-sdk@a79c66e31efd22f1bfb977de6fddd2673bc9deaf -
Branch / Tag:
refs/tags/v2026-01-23 - Owner: https://github.com/Universal-Commerce-Protocol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a79c66e31efd22f1bfb977de6fddd2673bc9deaf -
Trigger Event:
release
-
Statement type:
File details
Details for the file ucp_sdk-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ucp_sdk-0.3.0-py3-none-any.whl
- Upload date:
- Size: 96.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feeb6e922e0d8849c633453c25ebd0e4daf660b94cb14a2f8533998bd01ffb17
|
|
| MD5 |
b083e6605f4f5b417f265849316a4d3c
|
|
| BLAKE2b-256 |
bcf9f051940426c42258226b60c4916313ac242e95e2ccc3fa0cb9cdeea19851
|
Provenance
The following attestation bundles were made for ucp_sdk-0.3.0-py3-none-any.whl:
Publisher:
release.yml on Universal-Commerce-Protocol/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ucp_sdk-0.3.0-py3-none-any.whl -
Subject digest:
feeb6e922e0d8849c633453c25ebd0e4daf660b94cb14a2f8533998bd01ffb17 - Sigstore transparency entry: 1203319672
- Sigstore integration time:
-
Permalink:
Universal-Commerce-Protocol/python-sdk@a79c66e31efd22f1bfb977de6fddd2673bc9deaf -
Branch / Tag:
refs/tags/v2026-01-23 - Owner: https://github.com/Universal-Commerce-Protocol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a79c66e31efd22f1bfb977de6fddd2673bc9deaf -
Trigger Event:
release
-
Statement type: