piffle
piffle copied to clipboard
Add IIIIF dataclasses
Summary
Review #26 first
This PR adds dataclasses for parsing various different types of IIIF presentation/image API files.
Needed for MapReader IIIF development (https://github.com/maps-as-data/MapReader/pull/554)
Describe your changes
- Adds
iiif_dataclasseswith methods for reading presentation2, presentation3, image2 and image3 apis. - Adds
load_iiif.py - Updates pre-commit/ruff
Checklist before assigning a reviewer (update as needed)
- [ ] Self-review code
- [ ] Ensure submission passes current tests
- [ ] Add tests
- [ ] Update relevant docs
- [ ] Update changelog
Reviewer checklist
Please add anything you want reviewers to specifically focus/comment on.
- [ ] Everything looks ok?