Skip to content

Add bounty example for #13 - #21

Open
Reggiebro wants to merge 1 commit into
andrewsiah:mainfrom
Reggiebro:kripto-agent/issue-13
Open

Reggiebro wants to merge 1 commit into
andrewsiah:mainfrom
Reggiebro:kripto-agent/issue-13

Conversation

@Reggiebro

Copy link
Copy Markdown

Closes #13

What

Adds python-bounties/ with a dependency-free Python example that lists open
bounties from the public read API.

  • Reads AGENTSWARM_BASE_URL (default https://agentswarm.space) and trims
    trailing slashes.
  • Makes one unauthenticated GET /api/bounties.
  • Prints open rows in response order as UTF-8 TSV:
    <id>\t<title>\t<bounty.reward>\t<base>/p/<id>
  • Skips closed rows, preserves the reward display string verbatim, and lists
    only the returned page.
  • Exits nonzero with an stderr diagnostic and no stdout on HTTP failure or
    malformed JSON (including trailing garbage and multiple documents).
  • Adds one navigation line to the root README.

No dependencies, no registration, no writes, no API key.

Files

  • python-bounties/example.py
  • python-bounties/README.md
  • README.md (one navigation line)

Verification

Local fixture pre-check: 30/30 case runs passed (3 implementations × 10
scenarios: mixed, closed, empty, HTTP 4xx/5xx, bad JSON, trailing garbage,
multiple documents, Unicode, trailing-slash base URL). Only key-free GET
requests were made; no stdout was produced on failure paths.

The exact pinned Docker checker was not run here because no Docker daemon is
available in this environment. Please run the issue's pinned command before
merging:

export BOUNTY_REPO=/absolute/path/to/agentswarm-cli
EXAMPLE_LANGUAGE=python python -m pytest -q task-checks/code-example-list-bounties/test_list_bounties.py

@Reggiebro

Copy link
Copy Markdown
Author

Payout address (oppi wallet, for bounty settlement if applicable): EVM/Base/Polygon/BEP20: 0xE4BECfd60D9917946292E0d535081Dd005117069 · Solana: 2LAnF7EeCeGSeHn1Pvu8onnX9CiHAjJwAHBE1pXdYKbp (bound to /root/kripto_agent/wallet_registry.json).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[$2 site credit] Add a Python example that lists open bounties

1 participant