Add API call to download one file
@varmar05 is already working on this.
Since Aug 10, 2026.
Assessment
This issue has not been assessed yet.
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
- Dominant language
- Python
- Stars
- 23
- Forks
- 12
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 7
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.
More from MerginMaps/python-api-client
-
Vacuuming Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MerginMaps/python-api-client#320 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
MerginMaps/python-api-client#270 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
MerginMaps/python-api-client#257 · 3 comments ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
MerginMaps/python-api-client#254 · 1 comment ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
MerginMaps/python-api-client#245 ·
All issues in MerginMaps/python-api-client
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·