Skip to content

Ccnget library / add python api - #7

Merged
brian-learns merged 2 commits into
mainfrom
ccnget-library
Aug 3, 2026
Merged

Ccnget library / add python api#7
brian-learns merged 2 commits into
mainfrom
ccnget-library

Conversation

@brian-learns

Copy link
Copy Markdown
Owner

add python API

Hermes Agent added 2 commits August 2, 2026 17:29
with lookup(), retrieve(), fetch()

- New src/ccnget/api.py: pure library layer with dataclasses
  LookupEntry, LookupResult, FetchResult, and Ccnget exceptions
- Refactored geturl.py: CLI delegates to API, catches NotFoundError
  for clean stderr message on 404
- Updated __init__.py: public exports from api module
- 32 tests pass (all static checks clean)
@brian-learns
brian-learns merged commit 5e889d3 into main Aug 3, 2026
2 of 3 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.

1 participant