Skip to main content

gongyou-agent-market

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

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:

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gongyou_agent_market-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gongyou_agent_market-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file gongyou_agent_market-0.1.0.tar.gz.

File metadata

File hashes

Hashes for gongyou_agent_market-0.1.0.tar.gz
Algorithm Hash digest
SHA256 585700bcb2caf35dec1f0ee5fceab127efaced35c53ba1ba210df0e01b81da42
MD5 336b99db886bae73d21503c77aa7eac3
BLAKE2b-256 91cfe84caa3da0499d99b8b6ae3ab29fc5eecd1261df1f1d0891ab0e1268e793

See more details on using hashes here.

File details

Details for the file gongyou_agent_market-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gongyou_agent_market-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3555098656e2893c85b49b5a0338a4cea20be06a2308f24e9b6fe924e96634ca
MD5 286eb3df4817843da373647e5f36feb3
BLAKE2b-256 0833595716ff82095f69a89eb5713009a99483aa7f131f193c8cd7018b4e7943

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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