Skip to content

wry-ry/python-sdk

 
 

Repository files navigation

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:

# Create a directory for the SDK
mkdir sdk

# Clone the repository
git clone https://github.com/Universal-Commerce-Protocol/python-sdk.git sdk/python

# Navigate to the directory
cd sdk/python

# 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

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.

About

The official Python SDK for UCP

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Shell 1.0%