Skip to content

feat(batches): add get_scraped_stats() method - #10

Open
Olostep-devs wants to merge 3 commits into
mainfrom
feat/batches-scraped-stats
Open

feat(batches): add get_scraped_stats() method#10
Olostep-devs wants to merge 3 commits into
mainfrom
feat/batches-scraped-stats

Conversation

@Olostep-devs

Copy link
Copy Markdown
Contributor

Adds SDK support for the new GET /batches/stats/scraped endpoint (shipped in batches@883e42e1).

client.batches.get_scraped_stats(window=None, parser=None) returns scraped item counts and success rates for the authenticated team over a configurable time window.

Changes:

  • olostep/models/response.pyBatchScrapedStatsResponse model
  • olostep/backend/api_endpoints.pyBATCH_SCRAPED_STATS endpoint contract
  • olostep/frontend/batch_menu.pyget_scraped_stats() method on BatchMenu
  • olostep/__init__.py — export BatchScrapedStatsResponse
  • tests/api_contracts/as_is/test_batch_scraped_stats.py — 13 contract tests

@ZeeshanAdilButt ready for review.

Olostep Dev added 3 commits June 25, 2026 12:29
New method on BatchMenu for GET /batches/stats/scraped.

- models/response.py: add BatchScrapedStatsResponse model
- backend/api_endpoints.py: add BATCH_SCRAPED_STATS endpoint contract
- frontend/batch_menu.py: add get_scraped_stats(window, parser) method
- __init__.py: export BatchScrapedStatsResponse
- tests/api_contracts/as_is/test_batch_scraped_stats.py: 13 contract tests
  covering response model parsing, field validation, and contract definition
@Olostep-devs

Copy link
Copy Markdown
Contributor Author

@ZeeshanAdilButt tagging you as reviewer — all CI checks are now passing (lint, sync/async tests across 3.11/3.12/3.13, contract tests). This adds get_scraped_stats() to the batch namespace. Ready to merge when you have a moment.

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.

1 participant