The os.path module replacement, with simple API.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
os.path2-0.0.3.tar.gz
(6.3 kB
view details)
File details
Details for the file os.path2-0.0.3.tar.gz
.
File metadata
- Download URL: os.path2-0.0.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ecc88527c58e284f663c4c5b0faa3522c0e417110c2458849e7031297391208 |
|
MD5 | e56d05722043f7372457da098433c21a |
|
BLAKE2b-256 | 70cf35756fcdfb5107282a6e287bfbb31f6005cb0c3684c2b8bb57485f33ca0c |