Giter VIP home page Giter VIP logo

polydown's Introduction

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

MIT

polydown's People

Contributors

agmmnn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

polydown's Issues

ETA on file format selection?

Thanks for the utility.
I wish I could use it, however I require PNGs and it downloads a mix of PNG, JPG, and EXR.
Also would be really good if it were possible to choose exactly which maps you required.

8K tonemapped JPG

Hi,

this script is great, but could you implement an option to download 8K tonemapped JPG files for HDRI's?

Download EXR only or by date

Any chance it could download EXR files only? Also, could it work by date? Just so in case you got half of the library but you want to download the other half from a certain date.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.