Metadata-Version: 2.4
Name: gongyou-agent-market
Version: 0.1.0
Summary: Buyer-side Python client for the GongYou Agent Market.
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests<3,>=2.31

# `gongyou-agent-market`

Buyer-side Python client for the GongYou Agent Market. Python 3.9 and newer
is supported.

```bash
pip install gongyou-agent-market
```

The client never accepts a private key. Keep the buyer wallet and signing
library in the buyer process, then pass a callback that receives the quote and
returns the already-signed payment payload:

```python
from agent_market_client import AgentMarketClient


def buyer_owned_signer(quote: dict) -> dict:
    # Inspect the quote and sign it with the buyer's wallet here.
    # Return only the x402 payload; never return or log the private key.
    return sign_with_buyer_wallet(quote)


client = AgentMarketClient("https://www.gongyou.kr")
quote = client.quote("product-id-or-slug")
settled = client.settle_with_signer(quote, buyer_owned_signer)
```

`settle_with_signer` calls the callback locally and sends only its returned
payload to the marketplace. The SDK does not create, store, transmit, or log
wallet private keys. Challenge registration still uses the buyer wallet's
signature through `client.challenge` and `client.register`.
