Skip to main content

A python package that retrieves the latest Blender download URL

Project description

PyPI version Build Status codecov

pip install latest_blender_url

Get the latest Blender download URL and use it in a Travis CI scipt

Place the following lines in your travis.yml to download the latest Blender version (Linux 64-bit):

- pip install latest_blender_url
- url="$(python -c 'import latest_blender_url as lbu; lbu.get_latest()')"
- curl -L -o blender.tar.bz2 $url

Customizing the distribution to get

BlenderURLGetter class does all of the work. You can change the Blender download page and the archive to download by changing the class properties.

from latest_blender_url import BlenderURLGetter
getter = BlenderURLGetter()

# Set the download page
getter.download_page_url = "" 

# Set the archive pattern (see Blender download page for URL formats)
#getter.archive_pattern = 'linux.+?x86_64.+?bz2' # Linux 64bit
#getter.archive_pattern = 'macOS.+?dmg'          # MacOS
#getter.archive_pattern = ''        # Windows 64bit

# This will scrape the download page and get the matching url
url = getter.get_latest()

Feel free to fork or submit a pull request with new features

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

latest_blender_url-0.1.3.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distributions

latest_blender_url-0.1.3-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

latest_blender_url-0.1.3-py2-none-any.whl (3.7 kB view hashes)

Uploaded Python 2

Supported by

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