From 3db37494b97f1107491a0bd296db12a9a63e6ba7 Mon Sep 17 00:00:00 2001 From: Jochem Smit Date: Thu, 13 Jun 2024 10:43:29 +0200 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d18793..091faf5 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,15 @@ $ pip install hdxms-datasets ```python +from pathlib import Path from hdxms_datasets import DataVault -vault = DataVault() +# local path the download datasets to + +cache_dir = Path('.cache') + +# create a vault with local cache dir, set `remote_url` to connect to a different database +vault = DataVault(cache_dir=cache_dir) # Download a specific HDX dataset vault.fetch_dataset("20221007_1530_SecA_Krishnamurthy")