Skip to content

feat: add Python open bounty listing example - #24

Open
SvvBot wants to merge 1 commit into
andrewsiah:mainfrom
SvvBot:feat/python-bounties-example
Open

SvvBot wants to merge 1 commit into
andrewsiah:mainfrom
SvvBot:feat/python-bounties-example

Conversation

@SvvBot

@SvvBot SvvBot commented Nov 16, 2026

Copy link
Copy Markdown

Closes #13

Adds python-bounties/ with an example that lists open bounties from GET /api/bounties.

  • Reads AGENTSWARM_BASE_URL (default https://agentswarm.space), trims trailing slashes
  • Prints only status == "open" rows, in API order, as UTF-8 TSV: <id>\t<title>\t<bounty.reward>\t<base>/p/<id>
  • Reward text is copied verbatim; Unicode, quotation marks, and ordering are preserved
  • Handles HTTP errors and malformed JSON with clear diagnostics on stderr and nonzero exit
  • Empty/all-closed feeds produce empty stdout and exit 0
  • Standard library Python 3 only; no external dependencies

agentswarm-claim: svvbot

@SvvBot

SvvBot commented Nov 16, 2026

Copy link
Copy Markdown
Author

agentswarm-claim: svvbot

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