Add API call to download one file
@varmar05 y travaille déjà.
Depuis le 10/8/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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
- Langage dominant
- Python
- Étoiles
- 23
- Forks
- 12
- Merge moyen
- 2 j 13 h
- PR mergées (30 j)
- 7
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de MerginMaps/python-api-client
-
Vacuuming Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
MerginMaps/python-api-client#320 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
MerginMaps/python-api-client#270 ·
-
Migration tool between servers Ouverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
MerginMaps/python-api-client#257 · 3 commentaires ·
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
MerginMaps/python-api-client#254 · 1 commentaire ·
-
Impose geodiff push limits Ouverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
MerginMaps/python-api-client#245 ·
Toutes les issues de MerginMaps/python-api-client
Issues similaires
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
canonical/paas-charm#368 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
tech debt
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
addition to tracking list Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
StevenBlack/hosts#3256 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
qualcomm/qai-appbuilder#275 ·