Alternative to Python modules os, os.path and shutil
45.99 KB
built 2026-10-17 14:39:11 GMT
Description
Unipath is a package for doing pathname calculations and filesystem
access in an object-oriented manner, an alternative to functions in
os.path, shutil and glob, and even some functions in os.* It's based
on Jason Orendorffs path.py but does not adhere as strictly to the
underlying functions' syntax, in order to provide more user
convenience and higher-level functionality. For example:
o p.mkdir() succeeds silently if the directory already exists, and
o p.mkdir(True) creates intermediate directories a la os.makedirs.
o p.rmtree(parents=True) combines shutil.rmtree, os.path.isdir,
os.remove, and os.removedirs, to recursively remove whatever it is
if it exists.
o p.read_file("rb") returns the file's contents in binary mode.
o p.needs_update([other_path1, ...]) returns True if p doesn't exist
or has an older timestamp than any of the others.
o extra convenience functions in the unipath.tools module. dict2dir
creates a directory hierarchy described by a dict. dump_path displays
an ASCII tree of a directory hierarchy.
Dependencies
11 totalRequires6
- python(abi) = 3.15
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PartialHardlinkSets) <= 4.0.4-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides5
- python-unipath = 1.1-33.fc45
- python3-unipath = 1.1-33.fc45
- python3.15-unipath = 1.1-33.fc45
- python3.15dist(unipath) = 1.1
- python3dist(unipath) = 1.1
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
29
Files 1–29 of 29
Component of
buildroots that installed this RPMNo Buildroots
