labthings / labthings/labthings-fastapi

Better BLOB handling

Open
#93 0 comments 0 reactions 0 assignees View on GitHub

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 matches image/jpeg it might provide a subclass with methods to create an Image object.
  • Consider minimising the need for BaseModel wrappers, instead use annotated types as we do for NArray
  • 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.