Skip to main content

ucpify (Python)

Generate UCP-compliant (Universal Commerce Protocol) servers for merchants from a simple schema.

Installation

pip install -e .

Quick Start

# Initialize a sample merchant config
ucpify init

# Edit merchant-config.json to add your products, shipping, payments

# Start the UCP server
ucpify serve merchant-config.json

CLI Commands

# Create sample configuration
ucpify init --output my-store.json

# Validate configuration
ucpify validate my-store.json

# Start server
ucpify serve my-store.json --port 8080

Programmatic Usage

from ucpify import create_flask_app, MerchantConfig, Item, ShippingOption

config = MerchantConfig(
    name="My Store",
    domain="http://localhost:3000",
    currency="USD",
    items=[
        Item(id="prod_1", title="Widget", price=1999)
    ],
    shipping_options=[
        ShippingOption(id="standard", title="Standard", price=500)
    ]
)

app = create_flask_app(config)
app.run(port=3000)

License

MIT

Metadata

Release files for ucpify 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ucpify 1.2.0
File Size Uploaded Provenance Actions
ucpify-1.2.0.tar.gz 21.3 kB Without provenance Details for ucpify-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ucpify 1.2.0
File Interpreter ABI Platform Actions
ucpify-1.2.0-py3-none-any.whl Python 3 none any Details for ucpify-1.2.0-py3-none-any.whl

Total release size: 46.5 kB

Release files / ucpify-1.2.0.tar.gz

Download URL ucpify-1.2.0.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
78d51130e1b7368feb37429271bce749262d326296a115159da0701ef7206f42
BLAKE2b-256 checksum
How to use checksums
badebe6966d77ae976fc8782a7235b8fe97cffec15c28718198b9dbb6afd5570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / ucpify-1.2.0-py3-none-any.whl

Download URL ucpify-1.2.0-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a016467ec100aeef62f0a10f20e11e96f17a677b2951ed62b3e4b75b9ffc0c37
BLAKE2b-256 checksum
How to use checksums
e6ac312a48e0dcd0ebeb391dd7f937edc3a8a174d7a0a3c8846ea5355f4fd5cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for ucpify 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page