A CLI tool for bulk downloading from museum data service API with rich progress tracking.
Project description
MDS Exporter
A simple CLI tool, written in Python, to manage Museum Data Service (MDS) resume API tokens and download data from the MDS API.
Installation
The recommended way to install the tool is to use the pipx package manager. This will make the mds command available system-wide.
pipx install mds-exporter
It can also be installed to a specific environment:
pip install mds-exporter
Usage
Token Versions
Each stored token keeps track of three versions to help you pick up where you left off:
base: Your original starting token (never changes) - lets you restart the whole download from scratch if needed
last: Whatever token was used most recently - keeps track of where you are in any current download
latest: The token from your most complete download (the one that got the farthest)
This setup gives you options when things go wrong or go missing. You can always use base to redownload the whole dataset from the start. If a download gets interrupted, last lets you resume right where you stopped. And latest stays safe and untouched, so you can always go back to refreshing your best/most complete dataset without messing up your current download progress.
Token Management
Store and manage MDS API tokens:
# Add a token with auto-generated name (e.g., "ancient-river")
mds token add YOUR_MDS_TOKEN
# Add a token with custom name
mds token add --name my-token YOUR_MDS_TOKEN
# List all stored tokens
mds token list
# Remove a token
mds token remove my-token
Downloading Data
Download MDS data using stored tokens or direct tokens:
# Download using stored token (uses 'last' version by default)
mds download --name my-token
# Download using specific token version
mds download --name my-token:latest
mds download --name my-token:base
# Download using direct token
mds download --token YOUR_MDS_TOKEN
# Specify output file
mds download --name my-token --output my-data.jsonl
# Compress output using zstd (recommended for large datasets)
mds download --name my-token --compress --output my-data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mds_exporter-0.2.0.tar.gz.
File metadata
- Download URL: mds_exporter-0.2.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"42","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec58e57589d84bda30c2849274d26ee92076e7402bebfa8f6d4edee865f5a07f
|
|
| MD5 |
2915c8bd9a16bc0b4ff8b7d955eafa0c
|
|
| BLAKE2b-256 |
cac5682093d389624cfe6b6dc380b3afe626cda84f77711ba80127f0ffe78e80
|
File details
Details for the file mds_exporter-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mds_exporter-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"42","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed221b98ed20e96f868a1a100f0684ae95a5034bbcf8d682893bd4384ddde6be
|
|
| MD5 |
349d9d5957ee127f8290036d2568893a
|
|
| BLAKE2b-256 |
6aad3cd02e1df11f42bb2bbd3b57d2e5f5bd25c694b619d8290afb3aa0d1fd3a
|