Skip to content

feat: add classifiers command, expand spec to 946 lines#1

Open
tamnd wants to merge 1 commit into
mainfrom
feat/pr1-commands
Open

feat: add classifiers command, expand spec to 946 lines#1
tamnd wants to merge 1 commit into
mainfrom
feat/pr1-commands

Conversation

@tamnd

@tamnd tamnd commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add classifiers command that fetches all PyPI trove classifiers via /pypi/classifiers/ (plain-text newline-separated endpoint)
  • Support --filter flag for case-insensitive substring matching (e.g., pypi classifiers --filter license)
  • Add Classifiers(ctx) ([]string, error) method to the pypi client, with httptest coverage
  • Add Classifier struct to types.go for structured JSON/JSONL/CSV output
  • Expand spec 9226 from 802 to 946 lines: output format reference (section 10), error taxonomy (section 11), classifiers command spec (section 12), stats design (section 13), acceptance criteria (section 14)

Test plan

  • go test ./... passes (new TestClassifiers in pypi_test.go, httptest only, no real network)
  • go build ./... clean
  • pypi classifiers | head -20 returns trove classifiers from live PyPI
  • pypi classifiers --filter "license" -o json returns JSON rows with License classifiers only
  • pypi classifiers --filter "python :: 3" -o table shows Python version classifiers

Add the classifiers command that fetches all PyPI trove classifiers
via /pypi/classifiers/ and supports --filter for case-insensitive
substring matching. Expand spec 9226 with sections 10-14 covering
output format reference, error taxonomy, and acceptance criteria.
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