Materials-Consortia / Materials-Consortia/optimade-python-tools

Consider allow mounting a directory to serve static files in FastAPI

Open
#2,417 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
91
Forks
54
PR merge metrics
No merged PRs in 30d

Description

This will improve ergonomics in the use-case that providers want to have file meta data at /files but also directly serve them without hosting their own independent file server.

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

The issue names no files or tests. Start by locating the provider file-metadata route and the FastAPI application setup, then determine how a directory could be mounted to serve the same files. Done means providers can expose file metadata at /files while directly serving the corresponding files without an independent file server.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.