Add API call to download one file
@varmar05 ya está trabajando en esto.
Desde el 10/8/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Currently, there's no simple way to fetch just one file from a project. There is download_file() API call, but it needs the project to be already downloaded (it is useful just to get older versions of a file).
One could either query MM server API directly, e.g.:
https://app.merginmaps.com/v1/project/raw/<workspace>/<project>?file=myfile.gpkg
(with appropriate auth token)
Alternatively, using python with a workaround like this (handles auth stuff):
from mergin import MerginClient
from mergin.utils import save_to_file
mergin_client = MerginClient(...)
res = mergin_client.get('/v1/project/raw/<workspace>/<project>', data={'file': 'myfile.gpkg'})
save_to_file(res, 'myfile.gpkg')
If we add support for this, maybe we could just update the existing download_file() implementation so that it will accept as the first argument either <workspace>/<project> or it would accept an existing the local directory with a project downloaded already.
No project checkout, download raw file
- Lenguaje dominante
- Python
- Estrellas
- 23
- Forks
- 12
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 7
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MerginMaps/python-api-client
-
Vacuuming Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MerginMaps/python-api-client#320 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
MerginMaps/python-api-client#270 ·
-
Migration tool between servers Abiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
MerginMaps/python-api-client#257 · 3 comentarios ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
MerginMaps/python-api-client#254 · 1 comentario ·
-
Impose geodiff push limits Abiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
MerginMaps/python-api-client#245 ·
Todos los issues de MerginMaps/python-api-client
Issues similares
-
货币战争手改优先级配置缺少列表元素类型校验(P3) Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Abiertoarea: ci bug perceived difficulty: 3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ClickHouse/clickhouse-connect#1057 ·