Batch downloader for polyhaven (polyhaven.com)
Project description
Batch downloader for polyhaven.com. Download HDRIs, textures, and models in any sizes you want.
This project uses Poly Haven's Public API.
Installation
pip install polydown
Usage
Basic Commands
Download all HDRIs:
polydown hdris
Download all Textures:
polydown textures
Download all Models:
polydown models
Note: These commands will download all available sizes for every asset in the category.
Advanced Usage
Download specific sizes to a specific folder:
polydown hdris -f my_hdris_folder -s 2k 4k
Downloads all HDRIs in 2k and 4k resolution to the
my_hdris_folder.
Download from a specific category:
polydown models -c decorative -f models_folder -s 1k
Downloads all "decorative" models with 1k textures into
models_folder.
List available categories for an asset type:
polydown textures -c
Granular Texture & Model Selection:
You can specify the specific file format (e.g. png, jpg, exr) and specific maps (e.g. diffuse, roughness) for both textures and models.
# Download only PNG textures
polydown textures -tf png
# Download only Diffuse and Roughness maps
polydown textures --maps Diffuse Rough
# Combine them: Download only EXR Normal maps
polydown textures -tf exr --maps nor_gl
# Works for models too (downloads specific texture maps for the model)
polydown models -tf jpg --maps Diffuse -s 1k
Arguments
| Argument | Description |
|---|---|
asset_type |
Type of asset to download: hdris, textures, models. |
-h, --help |
Show help message and exit. |
-f, --folder |
Target download folder. |
-c, --category |
Category to download (e.g., decorative, nature). If used without values, lists available categories. |
-s, --sizes |
Size(s) of downloaded assets. Example: 1k 2k 4k. |
-o, --overwrite |
Overwrite existing files. Otherwise, skips existing files. |
-no, --noimgs |
Do not download preview, render, or thumbnail images. |
-it, --iters |
Amount of iterations (limit number of assets). |
-t, --tone |
Download 8K Tonemapped JPG (HDRIs only). |
-ff, --fileformat |
File format for HDRIs (hdr, exr). |
-tf, --texture-format |
File format for Textures/Models (jpg, png, exr). |
--maps |
Texture maps to download (e.g., Diffuse, Rough, nor_gl). If used without values, lists available common map types. |
-w, --workers |
Amount of workers (threads) for concurrent downloads. |
-v, --version |
Show program's version number and exit. |
Development
This project uses uv for dependency management.
Setup
-
Install
uv:curl -LsSf https://astral.sh/uv/install.sh | sh
-
Sync dependencies:
uv sync -
Run the CLI:
uv run polydown --help
-
Run tests:
uv run pytest
To-Do
- Unit Tests
- Progressbar for current download task(s)
- Workers for concurrent downloads
- Select the file format to download
License
Project details
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 polydown-0.4.0.tar.gz.
File metadata
- Download URL: polydown-0.4.0.tar.gz
- Upload date:
- Size: 94.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"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 |
24b6e655cf1fb66e26e9532cf689c21c96609a9cb48fd8289f53a218019a6a3b
|
|
| MD5 |
cf42276b4d97b30cbc6d7ed3472bb182
|
|
| BLAKE2b-256 |
3ce03027c2cdc0b9ea2f1cf49cc77d6c2d125e5d415c20c5bf243db9b6b35877
|
File details
Details for the file polydown-0.4.0-py3-none-any.whl.
File metadata
- Download URL: polydown-0.4.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"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 |
9791a6753740dd0e5a1fd92b42dd4444140b33d498fc81d31a941a7e41b8cc13
|
|
| MD5 |
31372d2ad291a4fb7353897d9440d23f
|
|
| BLAKE2b-256 |
4a4d60e54ce9ec0092fd0694ebf988382f3977d756e577b8b8963c25ad0dcfd1
|