1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
Update 2013-01-27: Version 0.2.1 has been in production since 2008 and is supported. Few bugs have been reported so the code is solid. The next version (to be called 1.0 or 2.0, I’m not sure which) will be mostly moderninzing the documentation and Python 3 support. Python 2.4 and 2.5 support will probably be dropped as is the case with most other Python projects migrating to 3.
The source is at https://github.com/mikeorr/unipath. The old repository (http://bitbucket.org/sluggo/unipath) has some pending issues but is otherwise no longer in use.
Unipath is package for doing pathname calculations and filesystem access in an object-oriented manner, an alternative to os.path.*, shutil.*, glob, and some os.* functions.. It’s based on Jason Orendorff’s 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:
p.mkdir() succeeds silently if the directory already exists, and
p.mkdir(True) creates intermediate directories a la os.makedirs.
p.rmtree(parents=True) combines shutil.rmtree, os.path.isdir, os.remove, and os.removedirs, to recursively remove whatever it is if it exists.
p.read_file("rb") returns the file’s contents in binary mode.
p.needs_update([other_path1, ...]) returns True if p doesn’t exist or has an older timestamp than any of the others.
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.
The Path class subclasses AbstractPath, which contains only those methods that don’t consult the filesystem. Most users just use the Path class and ignore the base class, but it’s there for specialized uses.
Here’s a comparision of some Path operations and their stdlib equivalents:
# Reference a file that’s two directories above another file. p = os.path.join(os.path.dirname(os.path.dirname(“/A/B/C”)), “file.txt”) p = Path(“A/B/C”).parent.parent.child(“file.txt”) p = Path(“A/B/C”).ancestor(2).child(“file.txt”) p0 = Path(“/A/B/C”); p = Path(p0.parent.parent, “file.txt”)
# Change the extension of a path. p = os.path.splitext(“image.jpg”)[0] + “.png” p = Path(“image.jpg”).name + “.png”
Documentation is in the README and on the website.
Unipath is for Python 2.4 or higher, and comes with a test suite..
Metadata
Release files for Unipath 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Unipath-0.2.1.tar.gz | 149.8 kB | Without provenance | Details for Unipath-0.2.1.tar.gz |
Release files / Unipath-0.2.1.tar.gz
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | Unipath-0.2.1.tar.gz |
|---|---|
| Size | 149.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c337ea25e10c56b065dd8b4574bc2e490aa16eecf83a599b7b8a7541c64a287
|
|
BLAKE2b-256 checksum How to use checksums |
313c0d9c171043133affaee82154269da38a892727f13e8fa36bf221d7d979ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Unipath 0.2.1
Upload timing
Release file added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.