Registry / data / bpyutils

bpyutils

JSON →
library0.5.8pypypi✓ verified 22d ago

bpyutils by Achilles Rasquinha is a collection of various common Python utilities designed to assist with general programming tasks. The current version is 0.5.8. Its release cadence is irregular, typically driven by the addition or refinement of utility functions rather than a fixed schedule.

pip install bpyutils
INSTALL
IMPORT
SIG · BPYUTILS
B
bpyutils
datapythonv0.5.8
Install
1.6s avg
Import
297ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.5.8 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.314s · 18.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.280s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

common utility functions or classes
from bpyutils.util.system import get_os
import bpyutils.utils.system (common confusion with Blender's bpy.utils)
This `bpyutils` is distinct from Blender's `bpy.utils` module. Direct import of common utilities from submodules is the expected pattern. Specific module and function names will depend on the utility needed.

This quickstart demonstrates importing and using a couple of common utility functions from `bpyutils.util.system` and `bpyutils.util.datetime` to get the current operating system and a timestamp.

from bpyutils.util.system import get_os from bpyutils.util.datetime import get_timestamp print(f"Operating System: {get_os()}") print(f"Current Timestamp: {get_timestamp()}")
Debug
Known issues
gotchaDo not confuse this 'bpyutils' PyPI package with Blender's built-in 'bpy.utils' module. They are entirely separate libraries with different functionalities and import paths. This library (achillesrasquinha/bpyutils) is a general Python utility collection.
fix
Ensure you are importing from `bpyutils` (for this package) or `bpy.utils` (when scripting within Blender) as appropriate for your project.
affects: All versions
gotchaThe documentation for specific utility functions and their APIs within the `achillesrasquinha/bpyutils` repository can be sparse. Users may need to inspect the source code to understand exact function signatures and behaviors.
fix
Refer directly to the GitHub repository's source code for the most accurate and up-to-date API details if official documentation is insufficient.
affects: All versions
deprecatedAs a general utility collection, specific functions or modules within `bpyutils` may undergo changes or deprecation in minor versions without explicit warnings in the top-level README or PyPI page. Follow semantic versioning strictly and review changes between updates.
fix
Always test your application thoroughly after updating `bpyutils` to a new version, even minor ones. Monitor the project's GitHub for release notes or commit logs detailing changes.
affects: All versions
Errors
Common errors & fixes
bpyutils.exception.PopenError: Command '...' returned non-zero exit status 1.
This error occurs when a shell command executed by `bpyutils.util.system.popen` fails and returns a non-zero exit code, indicating a problem with the command itself rather than Python's execution.
fix
Examine the command string within the error message to identify the failing command. Debug the command independently in a shell to understand why it's failing (e.g., incorrect arguments, missing executable, permissions issues) and correct it.
ModuleNotFoundError: No module named 'bpyutils'
This error indicates that the 'bpyutils' library is not installed in the Python environment being used, or there is a typo in the import statement.
fix
Install the library using pip: `pip install bpyutils` (or `pip3 install bpyutils`). Ensure your Python environment is correctly activated if using virtual environments.
RecursionError: maximum recursion depth exceeded while pickling an object
While not directly thrown by `bpyutils` itself, this error can occur when an application using `bpyutils` attempts to serialize (pickle) an object graph that is too deep or contains self-referential structures, potentially involving `bpyutils`'s internal objects or data structures.
fix
Refactor the code to avoid deep recursion during pickling. This might involve simplifying object structures, breaking down large data into smaller parts, or explicitly excluding problematic attributes from serialization. You can also try increasing Python's recursion limit, though this is often a workaround rather than a fundamental solution: `import sys; sys.setrecursionlimit(new_limit)`.
Upgrade
Version history
0.5.8latest on PyPI · released Sep 14, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
1
Resources
bpyutils — pip install bpyutils · libregistry