Registry / ecommerce / shop-system-models

shop-system-models

JSON →
library1.6.1pypypiunverified

Shared model definitions for shop system services. Currently at version 1.6.1, with ongoing active development and releases as needed.

pip install shop-system-models
INSTALL
IMPORT
SIG · SHOP-SYSTEM-MODELS
S
shop-system-models
ecommercepythonv1.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Product
from shop_system_models import Product
from shop_system_models import Product

Initialize a Product and an Order with pydantic model validation.

from shop_system_models import Product, Order from decimal import Decimal product = Product( name="Widget", price=Decimal("19.99"), sku="WID-001" ) print(product) order = Order( items=[product], total=Decimal("19.99") ) print(order)
Debug
Known issues
breakingModel fields use Decimal for prices, not float. Using float may cause serialization failures.
fix
Always use decimal.Decimal for price, tax, and total fields.
affects: >=1.0.0
breakingImport paths changed in v1.0.0 from 'shop.system.models' to 'shop_system_models'.
fix
Update imports: 'from shop_system_models import ...'
affects: <1.0.0
gotchaModel validators raise ValueError; be prepared to catch exceptions.
fix
Wrap model instantiation in try/except ValueError.
affects: >=1.5.0
Upgrade
Version history
1.6.1latest on PyPI · released May 24, 2026
Audit
Dependencies
pydanticrequiredUsed for model definitions with validation
Agent activity
16 hits · last 30 days
node
14
Resources

No resource links recorded.

shop-system-models — pip install shop-system-models · libregistry