A python package that retrieves the latest Blender download URL
Project description
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 = "https://www.blender.org/download/"
# Set the archive pattern (see Blender download page for URL formats)
#getter.archive_pattern = 'linux64.tar.xz' # Linux 64bit
#getter.archive_pattern = 'macOS.dmg' # MacOS
#getter.archive_pattern = 'windows64.zip' # Windows 64bit
# This will scrape the download page and get the matching url
url = getter.get_latest()
When Blender Download Page Changes (and daily build fails)
- Update the default pattern in
latest_blender_url\__init__.py
archive_pattern
s intests\test_download.py
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
File details
Details for the file latest_blender_url-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: latest_blender_url-0.1.6-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd534df014d057321df5ec0ee361e2fd6c3f10d28eb82a7cbf4cb60c512572e6 |
|
MD5 | 8af6220df75d309c5d6499a3cd18223e |
|
BLAKE2b-256 | 3283257aea34fe7dce72c39ee8be6aaa54f528b32776c8a7ff81b5aed581ca0b |
File details
Details for the file latest_blender_url-0.1.6-py2-none-any.whl
.
File metadata
- Download URL: latest_blender_url-0.1.6-py2-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b44af141fb54b87041b2ec3b7f7174d3ff746f4ef5cefbbe8634a7da471a1198 |
|
MD5 | cb5c45d7ffab0ad742a80a9ba1fd9d8f |
|
BLAKE2b-256 | a28758c28d6fef6b32ebfdc71bb1f525f8bf5070d35c595daae18d394edbefc5 |