Ubiquerg

0.9.3 · active · verified Wed Apr 15

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.

Warnings

Install

Imports

Quickstart

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)

view raw JSON →