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
How to Use
$ polydown hdris
# download all available sizes of all hdris into current folder.
> 🔗(polyhaven.com/hdris['all sizes'])=>🏠
$ polydown <asset_type>
# download all assets of this asset type to the current folder in all available sizes.
# asset types: "hdris", "textures", "models".
$ polydown textures -c
# list of category in the given asset type.
$ polydown hdris -f hdris_down -s 2k 4k
# download all hdris with given sizes into "hdris_down" folder.
# /if there is no such folder it will create it./
> 🔗(polyhaven.com/hdris['2k', '4k'])=>🏠(hdris_down)
Example Usage
$ polydown models -c decorative -f folder -s 1k
# download all "models" with "1k textures" in the "decorative" category into the "folder".
Arguments:
<asset_type> "hdris, textures, models"
-h, --help show this help message and exit
-f, --folder target download folder.
-c, --category category to download.
-s, --sizes size(s) of downloaded asset files. eg: 1k 2k 4k
-o, --overwrite overwrite if the files already exists. otherwise the current task will be skipped.
-no, --noimgs do not download 'preview, render, thumbnail...' images.
-it, --iters amount of iterations.
-t, --tone Download 8K Tonemapped JPG (only HDRIs).
-ff, --fileformat file format for hdris (hdr, exr).
-v, --version show program's version number and exit
To-Do
- Unit Tests
- Progressbar for current download task(s)
- Select the file format to download
- Download a specific asset, "polydown hdris stuttgart_suburbs"
Requirements
- Python>3.7
Dependencies
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
polydown-0.3.2.tar.gz
(8.4 kB
view details)
Built Distribution
File details
Details for the file polydown-0.3.2.tar.gz
.
File metadata
- Download URL: polydown-0.3.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 130e457b9205c65aac403446a497daf067adb652c3f27ff8b4ecf562231944dc |
|
MD5 | db4cba62d7dcc894a31d9593f3e1b0c9 |
|
BLAKE2b-256 | 4622fa03405c8085c392690e2ebe52d269bfc40bea080ab63698b3754943ac92 |
File details
Details for the file polydown-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: polydown-0.3.2-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 691129c97f9321c3dbcb400c28b80bcd2fc2fb21296b5709e3ced378008b8524 |
|
MD5 | adcdf36c0ba822691cc3143d2d6d04db |
|
BLAKE2b-256 | 92b694e2d58295aaff49d1d59ba824eb1f74e53bf428864872c5523c50829f32 |