https://github.com/Universal-Commerce-Protocol/python-sdk
The official Python SDK for UCP
https://github.com/Universal-Commerce-Protocol/python-sdk
Last synced: 3 months ago
JSON representation
The official Python SDK for UCP
- Host: GitHub
- URL: https://github.com/Universal-Commerce-Protocol/python-sdk
- Owner: Universal-Commerce-Protocol
- License: apache-2.0
- Created: 2026-01-06T09:11:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-03-07T21:03:46.000Z (3 months ago)
- Last Synced: 2026-03-07T22:25:07.484Z (3 months ago)
- Language: Python
- Homepage:
- Size: 183 KB
- Stars: 66
- Watchers: 5
- Forks: 32
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-ucp - Official Python SDK - The official Python library for UCP with Pydantic models (Implementations)
- awesome-agentic-commerce - UCP Python SDK - Official Python SDK (UCP - Universal Commerce Protocol / 🐍 SDKs & Implementations)
- awesome-agentic-commerce - UCP Python SDK
README
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)](https://ucp.dev). 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:
```bash
# 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:
```bash
uv sync
./generate_models.sh
```
The generated code is automatically formatted using `ruff`.
## Contributing
We welcome community contributions. See our [Contribution Guide](https://github.com/Universal-Commerce-Protocol/.github/blob/main/CONTRIBUTING.md) for details.
## License
UCP is an open-source project under the [Apache License 2.0](LICENSE).