Update download.py
Browse files- download.py +1 -21
download.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
"""Download
|
| 2 |
The repository contains 2GB tar shards of ``.tar.zst`` archives,
|
| 3 |
with each archive's shard id / byte offset / size recorded in a
|
| 4 |
parquet arrow table. The shards and two metadata files
|
|
@@ -8,26 +8,6 @@ This script auto-discovers every available
|
|
| 8 |
source (by scanning for ``pkgs`` parquet files), downloads
|
| 9 |
the metadata and shard tars, and decompresses + extracts each inner
|
| 10 |
``.tar.zst`` on the fly into a local directory tree.
|
| 11 |
-
CLI examples::
|
| 12 |
-
# List every available source without downloading anything
|
| 13 |
-
python download.py /tmp --list
|
| 14 |
-
# List only mujoco sources
|
| 15 |
-
python download.py /tmp --list --source mujoco
|
| 16 |
-
# Download *all* sources (auto-discovered) into a base directory.
|
| 17 |
-
# Each source is extracted into <base_dir>/<data_type>/<name>,
|
| 18 |
-
# e.g. /data/assets/objects/thor
|
| 19 |
-
python download.py /data/assets
|
| 20 |
-
# Download only mujoco sources
|
| 21 |
-
python download.py /data/assets --source mujoco
|
| 22 |
-
# Download a single source
|
| 23 |
-
python download.py /data/assets --data_source_dir mujoco/objects/thor/20251117
|
| 24 |
-
Programmatic::
|
| 25 |
-
# Discover what is available
|
| 26 |
-
sources = discover_sources()
|
| 27 |
-
# Download everything
|
| 28 |
-
download_all("/data/assets")
|
| 29 |
-
# Download a single source
|
| 30 |
-
download_and_extract("mujoco/objects/thor/20251117", "/tmp/thor_objects")
|
| 31 |
"""
|
| 32 |
|
| 33 |
import io
|
|
|
|
| 1 |
+
"""Download molmospaces data.
|
| 2 |
The repository contains 2GB tar shards of ``.tar.zst`` archives,
|
| 3 |
with each archive's shard id / byte offset / size recorded in a
|
| 4 |
parquet arrow table. The shards and two metadata files
|
|
|
|
| 8 |
source (by scanning for ``pkgs`` parquet files), downloads
|
| 9 |
the metadata and shard tars, and decompresses + extracts each inner
|
| 10 |
``.tar.zst`` on the fly into a local directory tree.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"""
|
| 12 |
|
| 13 |
import io
|