Skip to main content

Batch downloader for polyhaven (polyhaven.com).

Project description

screenshot

GitHub release (latest by date) PyPI

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".

screenshot file structure

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.
-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.5

Dependencies

License

MIT

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.2.2.tar.gz (8.8 kB view hashes)

Uploaded source

Built Distribution

polydown-0.2.2-py3-none-any.whl (9.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page