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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: polydown-0.2.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for polydown-0.2.2.tar.gz
Algorithm Hash digest
SHA256 02e3bbf563fdad48e591db5bfc94cb05044db7ce54355b3d53ca82f079382a12
MD5 ac641a61a679312c91aa6c918b1acc02
BLAKE2b-256 63dc58cba83d9558846b51a713f5338be0d086da4c1eba443f12baa296af11b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polydown-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for polydown-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19029614fd20a2c9d97c6ce50fd3bcc3cbdf54c28868c9522ae89391be74b8fb
MD5 74133e4646e460dfe631d240316d9b12
BLAKE2b-256 93a8191029801b7bf37ed644781d62d1a62276ca299157eb62fe725028bc1270

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