Registry / ubiquerg

ubiquerg

JSON →
library0.9.3pypypi✓ verified 86d ago

Ubiquerg is a Python utility package providing a collection of universally helpful, low-level functions. These functions are designed to be generic and have no external dependencies beyond standard built-in Python modules, making them suitable for use across many different applications. The library is currently at version 0.9.3, released in April 2026, with a regular release cadence.

pip install ubiquerg
INSTALL
IMPORT
SIG · UBIQUERG
U
ubiquerg
pythonv0.9.3
Install
1.5s avg
Import
71ms
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.9.3 · 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.920 runs
installs and imports cleanly · install 0.0s · import 0.074s · 17.9MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 1.5s · import 0.068s · 18MB
16MB installed
● package 16MB
Code
Verified usage

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

expandpath
from ubiquerg.paths import expandpath
is_filepath_like
from ubiquerg.files import is_filepath_like
deep_update
from ubiquerg.collection import deep_update

Demonstrates how to use `expandpath` to resolve user and environment variables in a path and `is_filepath_like` to check if a string represents a file path.

from ubiquerg.paths import expandpath from ubiquerg.files import is_filepath_like import os # Example 1: Expanding user and environment variables in a path expanded_path = expandpath("~/my_project/$USER_DATA") print(f"Expanded path: {expanded_path}") # Example 2: Checking if a path is file-like # Create a dummy file for demonstration dummy_file = "test_file.txt" with open(dummy_file, "w") as f: f.write("Hello, ubiquerg!") is_file_like = is_filepath_like(dummy_file) print(f"Is '{dummy_file}' a file-like path? {is_file_like}") # Clean up the dummy file os.remove(dummy_file)
Debug
Known issues
gotchaThe library is currently in 'Development Status :: 4 - Beta'. While generally stable, this status indicates that the API is not yet final and may undergo minor non-backward-compatible changes in future minor releases.
fix
Monitor release notes for potential API changes, especially when updating minor versions. Test your application thoroughly after updates.
affects: All versions up to 0.9.3
gotchaThe `mkabs` function (introduced in v0.8.0) was expanded to handle more cases. If you were relying on specific prior behavior for edge cases, or implicitly expecting a stricter interpretation, new versions might behave differently (e.g., resolving paths that previously failed).
fix
Review `mkabs` usage if migrating from versions prior to 0.8.0, especially with unusual path inputs, and test expected outputs to ensure compatibility with the expanded behavior.
affects: >=0.8.0
gotchaThe `is_url` function (changed in v0.8.0) now explicitly allows `Path` objects as input. While this is an enhancement, if your code implicitly assumed only string inputs and performed pre-processing, this change might subtly affect error handling or validation logic in downstream components.
fix
Verify calls to `is_url` if your application handles `Path` objects explicitly or relies on strict input type checking. Ensure no unintended behavior arises from `Path` object acceptance.
affects: >=0.8.0
gotchaThe `deep_update` function (ported in v0.8.1) was brought over from `yacman`. While designed for recursive dictionary updates, users migrating from `yacman` or expecting a specific recursive merge behavior should test its exact functionality with complex nested structures to ensure it aligns with expectations, as subtle differences might exist.
fix
Carefully test the `deep_update` function with various nested dictionary scenarios if its precise behavior is critical to your application, particularly if you are accustomed to its implementation in other libraries.
affects: >=0.8.1
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'ubiquerg'
The 'ubiquerg' package is not installed in the current Python environment.
fix
pip install ubiquerg
AttributeError: module 'ubiquerg' has no attribute 'is_integer'
The function name 'is_integer' is incorrect; the correct function for checking if a value is an integer is 'is_int'.
fix
ubiquerg.is_int(value)
TypeError: 'int' object is not iterable
The 'count_unique' function expects an iterable (like a list or tuple) as its argument, but an integer was provided.
fix
ubiquerg.count_unique([1, 2, 2, 3])
ModuleNotFoundError: No module named 'ubiquerg.utils'
The 'ubiquerg' library does not expose a submodule named 'utils'; many common utility functions are directly available from the top-level 'ubiquerg' module.
fix
from ubiquerg import is_int
Upgrade
Version history
0.9.3latest on PyPI · released Apr 2, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ubiquerg — pip install ubiquerg · libregistry