Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ucp_sdk-0.3.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ucp_sdk-0.3.0-py3-none-any.whl (96.8 kB view details)

Uploaded Python 3

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

Hashes for ucp_sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9eb5fd4a6457471dce22189bec10570681cdfd4d07dacb29e74242800026776e
MD5 b534ca14567d56aaac04036e46c85391
BLAKE2b-256 87fbb20db6f7455b4690849d855b79b3df4e760ca08b61fd9d512ea1a7bf00f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ucp_sdk-0.3.0.tar.gz:

Publisher: release.yml on Universal-Commerce-Protocol/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ucp_sdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 feeb6e922e0d8849c633453c25ebd0e4daf660b94cb14a2f8533998bd01ffb17
MD5 b083e6605f4f5b417f265849316a4d3c
BLAKE2b-256 bcf9f051940426c42258226b60c4916313ac242e95e2ccc3fa0cb9cdeea19851

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page