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.3.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polydown-0.3.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file polydown-0.3.0.tar.gz.

File metadata

  • Download URL: polydown-0.3.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Windows/10

File hashes

Hashes for polydown-0.3.0.tar.gz
Algorithm Hash digest
SHA256 299e19b909f8cb82ffb73f32a14d0921ec4a084bb8349e6bafdd4d7556d579b2
MD5 98456a677f367aced1e894bd016061a8
BLAKE2b-256 c4b305c498c496a97533dec2d5f1daf794678089d8e849b0e259fdb613ca398c

See more details on using hashes here.

File details

Details for the file polydown-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: polydown-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Windows/10

File hashes

Hashes for polydown-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31935adfcb9e975b87d9d6e56a06195d668f306ce528828cf2fe65331d86c8c3
MD5 cc1b1bc558d2943e989457620c13efea
BLAKE2b-256 bf6c6bc12fcc48e0bd91da6d4a2289fa2d30701c8ab4f25a56ddda67589b0b2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page