from os import path2 as path
The os.path library replacement with simple API.
>>> from os import path2 as path
>>> path('/var/log')
/var/log
>>> path('/var', 'log')
/var/log
>>> path('/home/you/file').user
'you'
>>> [(element.user, element.group, element.mod) for element in path('.')]
[('user', 'user', '0664'),
('user', 'user', '0664'),
('user', 'user', '0664'),
('user', 'user', '0664'),
('user', 'user', '0664'),
('user', 'user', '0664'),
('user', 'user', '0664'),
('user', 'user', '0775'),
('user', 'user', '0664')]
Status
Library seems to be pretty stable. Feel free to use it as you want. But I think this no the final version of API.
Install
You can install it from PyPi, by simply pip:
$ pip install os.path2
only if you don’t have pip installed, an alternative method is easy_install:
$ easy_install os.path2
to test it, launch python
>>> from os import path2 as path
Supported platforms
Python2.6
Python2.7
Python3.3
PyPy1.9
Tests
>>> python setup.py test
Metadata
Release files for os.path2 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| os.path2-0.0.4.tar.gz | 6.5 kB | Without provenance | Details for os.path2-0.0.4.tar.gz |
Release files / os.path2-0.0.4.tar.gz
| Download URL | os.path2-0.0.4.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
089d8d5443258a1fa4bc55ff2c2055599278b50a22d58f59b2d90aeff53c9595
|
|
BLAKE2b-256 checksum How to use checksums |
3eb426b7e2e9320052ac2dc067546d97d1202ca94e1f16b132f7f90a07e3a6aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for os.path2 0.0.4
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.