labthings / labthings/labthings-fastapi
Better BLOB handling
Open
Nobody has claimed this yet.
roadmap
- Dominant language
- Python
- Stars
- 9
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
It would be great to handle non-JSON outputs a bit better, in a few ways:
- Client-side support for specific media types - e.g. it will turn a dictionary with a mimetype and href into a
Blob, and if the mimetype matchesimage/jpegit might provide a subclass with methods to create anImageobject. - Consider minimising the need for
BaseModelwrappers, instead use annotated types as we do forNArray - Make it possible to return Blob types from properties (would need some logic around expiry)
- Managing calibration reports that must be retained for traceability
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing NArray and BaseModel handling mentioned in the issue, then review how properties and non-JSON outputs are represented. Done would require an agreed approach covering media-type-specific Blob support, annotated types, Blob-valued properties with expiry, and retained calibration reports; no files or tests are named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100