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_patterns intests\test_download.py
Feel free to fork or submit a pull request with new features
Metadata
Release files for latest-blender-url 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| latest_blender_url-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for latest_blender_url-0.1.6-py3-none-any.whl |
| latest_blender_url-0.1.6-py2-none-any.whl | Python 2 | none | any | Details for latest_blender_url-0.1.6-py2-none-any.whl |
Total release size: 7.6 kB
Release files / latest_blender_url-0.1.6-py3-none-any.whl
| Download URL | latest_blender_url-0.1.6-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd534df014d057321df5ec0ee361e2fd6c3f10d28eb82a7cbf4cb60c512572e6
|
|
BLAKE2b-256 checksum How to use checksums |
3283257aea34fe7dce72c39ee8be6aaa54f528b32776c8a7ff81b5aed581ca0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / latest_blender_url-0.1.6-py2-none-any.whl
| Download URL | latest_blender_url-0.1.6-py2-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b44af141fb54b87041b2ec3b7f7174d3ff746f4ef5cefbbe8634a7da471a1198
|
|
BLAKE2b-256 checksum How to use checksums |
a28758c28d6fef6b32ebfdc71bb1f525f8bf5070d35c595daae18d394edbefc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for latest-blender-url 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.