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:
# 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.
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.1.0.tar.gz.
File metadata
- Download URL: ucp_sdk-0.1.0.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux rodete","version":null,"id":"rodete","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0db526bd5e388563f1e340e4e8f6bb360d6ddd90b851fdf99cbc9fd3b35ab689
|
|
| MD5 |
748485d40fa99bb0ca07180d8b6c14a8
|
|
| BLAKE2b-256 |
afa7b758a7b721db98480b3ab933b9a684c2abc5a6ec6403e60e8b81bde45bcb
|
File details
Details for the file ucp_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ucp_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 93.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux rodete","version":null,"id":"rodete","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9e2324b5e752e626e8f7b056e48158011c63825b62e3e0e5b65d7bc266661e4
|
|
| MD5 |
d4567dccd0e96cff5150d76d7e7367ce
|
|
| BLAKE2b-256 |
386bdab615b5b7d2eeb5100422dd10c25e5755d13f8eeeac1d4e21b33a5ef24d
|