blext
NOTE: This software should be considered alpha aka. unstable. It is not ready for production use. The feature-set is incomplete. The documentation is still very sparse.
With that said, we already find it quite useful. We hope you'll consider sharing your experiences with us, good and bad - for example, in the Discussions / Issues sections!
A project manager for Blender extensions, facilitating rapid and reliable development.
Features
- All You Need is
uv: The absolute only prerequisite isuvandblender. Another opinionated Python packager? Trust me, it's great. - Intuitive and Fast:
uvx blext devruns Blender with your extension. If you only changed some code, it runs nearly instantly! - Effortless Deps: Need a Python package for your addon?
Just
uv add <pkgname>. The next time you runblext dev, your package will be available from your extension code. - Single Source of Truth: Manage your Blender extension entirely from
pyproject.toml, using the new table[tool.blext].blextis explicit about any mistakes you might make, and for your trouble, generates a correctblender_manifest.tomlwhen making the addon. - Extension Analysis: "Look inside" your extension with ease.
Need to check the generated
blender_manifest.toml? Re-run Blender's own extension validation? Or just check a platform-specific deduction? Just useblext show!
Running blext
If you have uv, just run:
uvx blext
This relies on uv tools, which is similar to pipx.
This is the recommended way of using blext.
Using blext
For now, see examples/simple in this repository for an example of a working Blender extension.
Particular attention should be paid to the [tool.blext] section of pyproject.toml.
More in-depth documentation TBD.
Installing blext
Apart from uvx, installation can be one more or less as with any Python package:
pip install --user blext: The standardpippackage manager should work fine. It is strongly suggested to use a venv.uv tool install blext: This allows runningblextwithout prependinguvx blext.uv add --dev blext: This enables runninguv run blextfrom any otheruvproject.- Install from Source: See the
Contributingsection.
Documentation
For now, run blext alone, or run blext --help explicitly.
Subcommands also have help text available.
For example, blext dev --help.
More documentation TBD
Contributing to blext
How do I...
Get Started?
# Install uv.
# Clone the Repository
git clone URL
cd blext
# Install pre-commit hooks
uvx pre-commit install
# That's it! Change some code!
Test some Local Changes?
# Run the Local 'blext'
## - Add any CLI options you want!
uv run blext
Make a Commit?
# Stage Files for the Commit
## - Generally, make sure that "one commit is one change".
git add ... ## 'git add -A' works too, due to thorough .gitignores.
# Use 'commitizen' for Semantic Commits
## - Commit messages **are** CHANGELOG messages, and can also ref/close issues.
## - So make them good! `cz c` makes that easy.
uv run cz c ## 'git commit' always works, but is less convenient.
# When pre-commit Makes Changes
## - For example, adding a license header or reformatting something.
## - Just re-stage and re-commit - `cz c` will remember the commit message.
git add ... ## 'git add -A' works too, due to thorough .gitignores.
uv run cz c
Overview of Tools
Development of blext relies on the following tools:
uv: Package and project manager. Required.pre-commit: Enforces conventions at commit-time. Strongly suggested.commitizen: Commit and release manager. Enforced bypre-commit.ruff fmt: Deterministic code formatter. Enforced bypre-commit.ruff lint: Code linter. Not enforced (planned).mypy: Static type analysis. Not enforced (planned).
Making Commits
Commits are subject to pre-commit hooks, if installed.
To set this up, simply run:
uvx pre-commit install
Then, all pre-commit hooks will run after each commit.
Sometimes it's nice to run all of the pre-commit hooks manually:
uvx pre-commit run --all-files
Metadata
Release files for blext 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blext-0.3.0.tar.gz | 115.0 kB | Without provenance | Details for blext-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blext-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for blext-0.3.0-py3-none-any.whl |
Total release size: 150.9 kB
Release files / blext-0.3.0.tar.gz
| Download URL | blext-0.3.0.tar.gz |
|---|---|
| Size | 115.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f3871e4384728816ba2297f04633d089b5dc6e43105182cd4b95a75f7a179e0
|
|
BLAKE2b-256 checksum How to use checksums |
a014d7217ce50873ff63087d9a5958ca53cabab2d500dea5606afc1809a6a55c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.18
|
Release files / blext-0.3.0-py3-none-any.whl
| Download URL | blext-0.3.0-py3-none-any.whl |
|---|---|
| Size | 35.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b05e3c39a91d4605a470f4f363cd54cd6815e3fc14c965180d2f5deb0e6201f
|
|
BLAKE2b-256 checksum How to use checksums |
ed4cdf37762c5448a43b79c223e4b77c2e81445f5321b0990683579ca2236f64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.18
|
Security for blext 0.3.0
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.