Skip to main content

apparel-monster (Python)

SDK and CLI for the Apparel Monster agent commerce API. Standard library only — no requests, no dependencies at all.

pip install apparel-monster
from apparel_monster import ApparelMonster

store = ApparelMonster()
found = store.search("denim shirt", limit=3)
store.add_to_cart(found["products"][0]["variants"][0]["id"])

cart = store.set_billing(
    email="shopper@example.com",
    line_one="1 Market St",
    city="San Francisco",
    region_id="CA",
    postal_code="94105",
)
store.set_shipping(cart["shipping_options"][0]["id"])
store.set_payment("tok_test_123")
order = store.checkout()

No API key: every call except order history is anonymous. Prices live on variants, never on the product.

apparel-monster search "denim shirt" --limit 3 --text
apparel-monster ask "coat" --stream
apparel-monster buy 118 --text

Errors name what they needed:

from apparel_monster import ApparelMonsterError

try:
    store.set_billing(line_one="1 Market St")
except ApparelMonsterError as error:
    error.code      # "missing_fields"
    error.missing   # [{"field": "city", ...}, {"field": "postal_code", "accepts": [...]}]

apparel.monster is a demo storefront: orders are placed against a test gateway, nothing ships and no money moves.

Full documentation: https://apparel.monster/developers · Source: https://github.com/mluggy/apparel-monster-dev

Metadata

Release files for apparel-monster 1.0.1

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

Source distribution (sdist)

Source distribution for apparel-monster 1.0.1
File Size Uploaded
apparel_monster-1.0.1.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apparel-monster 1.0.1
File Interpreter ABI Platform
apparel_monster-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / apparel_monster-1.0.1.tar.gz

Download URL apparel_monster-1.0.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
40abace24b4a4786bd271af27dac05ad2cddb0bab1bad2a69e89c7a30a1c5561
BLAKE2b-256 checksum
How to use checksums
4970380a91a310682b8e9c3f668fb9b007c79032323611907c36c8f5a4b163cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.15

Release files / apparel_monster-1.0.1-py3-none-any.whl

Download URL apparel_monster-1.0.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc73298d708e46f5a7b0c9749227614306bc4e54b31f38a5d87a7a8e96af997e
BLAKE2b-256 checksum
How to use checksums
69204c42ea35e497be72e3b4647437d2451f49cd271bd4e915983d7674ac6e16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.15

Release history Release notifications | RSS feed

1.0.2

2 release files

This release

1.0.1 This release

2 release files

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