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.
-t, --tone        Download 8K Tonemapped JPG (only HDRIs).
-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

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.1.tar.gz (8.4 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.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polydown-0.3.1.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

Hashes for polydown-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f90c9de0ce0d8347e8a9877ca6a484ac69b89cd01e3601a478e31879714d41de
MD5 016c7419b5df18fb60ed487293eae616
BLAKE2b-256 7ccb4fd147a7f7723a0b4bce26ddac7b578a1f246889a33d344be448e91361e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polydown-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58379e686ef98eabc4e25ae4e9fe68614aa5809f0ee45d472e5138338fd0a034
MD5 496b5a675f168764b147eed0c2ff96ca
BLAKE2b-256 30e9ab0bb568fef7afc65a8f3bdef33c8811f2804dc5f282a745d9f02d01f2d3

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