Skip to content

Add SearchItems API#12

Merged
zhenghaoz merged 1 commit into
gorse-io:mainfrom
zhangzhenghao:add-search-items
Jun 19, 2026
Merged

Add SearchItems API#12
zhenghaoz merged 1 commit into
gorse-io:mainfrom
zhangzhenghao:add-search-items

Conversation

@zhangzhenghao

Copy link
Copy Markdown
Contributor

Adds SearchItems support to the PyGorse client, following gorse-go commit 062d740c10a2aaef57c533fc007c3fb9244b83d3.

Changes:

  • Add Gorse.search_items(query, n=10) for GET /api/items?q=...&n=...
  • Add AsyncGorse.search_items(query, n=10)
  • Add sync and async integration tests for searching Toy Story

Verification:

  • python3 -m py_compile gorse/__init__.py tests/test_gorse.py

Not run:

  • python3 -m pytest tests/test_gorse.py -q because pytest is not installed in this environment
  • python3 -m unittest tests.test_gorse -v because aiohttp is not installed in this environment

@zhenghaoz zhenghaoz merged commit 046ae08 into gorse-io:main Jun 19, 2026
4 checks passed
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 participants