Registry / nr-util

nr-util

JSON →
library0.8.12pypiunverified

nr-util is a general-purpose Python utility library. It aims to provide common helper functions and tools for various programming tasks. The current version is 0.8.12, released on June 20, 2022. Its release cadence appears irregular, based on PyPI upload history.

pip install nr-util
INSTALL
IMPORT
SIG · NR-UTIL
N
nr-util
env0.8.12
Install
2.2s avg
Import
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.8.12 · 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.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.1MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.2s · import 0.000s · 21MB
18MB installed
● package 18MB
Code
Verified usage

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

anything
from nr.util import anything
The library is modular; specific utilities are imported from submodules or directly from the top-level package, e.g., 'from nr.util.fs import Path' or 'from nr.util.digraph import Digraph'.

This quickstart demonstrates basic usage of the `Digraph` utility for working with directed graphs.

from nr.util.digraph import Digraph g = Digraph() g.add_node('A') g.add_node('B') g.add_node('C') g.add_edge('A', 'B') g.add_edge('B', 'C') print(f"Nodes: {g.nodes}") print(f"Edges: {g.edges}") print(f"Is DAG: {g.is_dag()}")
Debug
Known issues
breakingThe library uses 0.x.y versioning, meaning minor version increments (e.g., 0.8.x to 0.9.x) may introduce breaking API changes without a major version bump. Users should review changelogs carefully when upgrading.
fix
Always pin to a specific patch version (e.g., `nr-util==0.8.12`) and manually review the GitHub repository's change history or module-specific PyPI descriptions (e.g., `nr.utils.re`) before upgrading.
affects: All 0.x.y versions
gotchaThe package name on PyPI is 'nr-util', but imports typically use 'nr.util' (e.g., `from nr.util import ...`). This discrepancy is common but can be confusing for new users.
fix
Remember that `pip install nr-util` corresponds to `import nr.util` in your Python code.
affects: All versions
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'nr.util.some_module'
Attempting to import a submodule or utility that does not exist, or using an incorrect import path.
fix
Consult the official GitHub repository for the correct module structure and available utilities. Verify the exact import path for the desired functionality. For example, some utilities might be under `nr.util.fs` or `nr.util.digraph`.
TypeError: 'module' object is not callable (when trying to use a utility directly after `import nr.util`)
The user is trying to call the top-level `nr.util` module directly as a function or object, rather than importing a specific utility function or class from it.
fix
Ensure you are importing specific components from `nr.util` or its submodules. For example, instead of `import nr.util; nr.util.some_function()`, use `from nr.util.some_module import some_function; some_function()`.
Upgrade
Version history
0.8.12latest on PyPI · released Jun 20, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

nr-util — pip install nr-util · libregistry