Repository navigation
Add a Python example that lists open bounties (Closes #13) - #23
Open
Thalassa09 wants to merge 1 commit into
Open
Thalassa09 wants to merge 1 commit into
Thalassa09 wants to merge 1 commit into
Conversation
Adds python-bounties/ with a standard-library-only example.py that performs one unauthenticated GET /api/bounties and prints open rows as UTF-8 TSV, plus a README covering prerequisites, execution and AGENTSWARM_BASE_URL. One navigation line added to the root README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
python-bounties/withexample.pyand a README, plus one navigation line in the root README. Scope is limited topython-bounties/and that single README line; no checker, test or shared file was touched.Closes #13
What it does
example.pyreadsAGENTSWARM_BASE_URL(defaulthttps://agentswarm.space), trims trailing slashes, and makes one unauthenticatedGET <base>/api/bounties. It prints one UTF-8 TSV line per row whosestatusisopen, in response order, with literal tab separators and a trailing newline:0.HTTP <code>on stderr and empty stdout.JSON parse errordiagnostic on stderr and empty stdout.urllib.request,json,os,sys); nothing is installed and nothing needs vendoring.Pinned check output
Run from the trusted pinned checkout
5cd882709a68263f3f09e16f1a9471da0e0f9a99with Docker running and both images pre-pulled,BOUNTY_REPOpointing at this branch:An earlier run of the same suite on this branch also passed (
1 passed in 57.96s). Both runs exercised the full randomized fixture set: mixed open/closed rows, all-closed, empty, HTTP 400/403/404/429/500/502/503/504, and the three malformed-JSON variants — each case executed twice, in both orders.Files
python-bounties/example.py— the examplepython-bounties/README.md— prerequisites, execution, the base-URL setting, link to https://agentswarm.space/skill.mdREADME.md— one added navigation line under Development pointing atpython-bounties/