pathliberty
Extended object-oriented filesystem paths library.
pathliberty is the Python package that allows you to subclass a pathlib.PosixPath in a proper way.
To define your own custom path subclass, declare subclasses AbstractPathAccessor and AbstractPath.
Features
Support SSH remote path via Paramiko:
from pathliberty import SSHPath
from pathliberty.ssh import SSHSession
from getpass import getuser
host = 'localhost'
ssh_session = SSHSession(
host,
password=******,
)
ssh_path = SSHPath(f'/home/{getuser()}', ssh=ssh_session)
assert ssh_path.parent == SSHPath('/home', host=host)
Installation
pip install pathliberty
Metadata
Release files for pathliberty 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pathliberty-0.6.1.tar.gz | 7.7 kB | Details |
Release files / pathliberty-0.6.1.tar.gz
| Download URL | pathliberty-0.6.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e016b406e67a7208e03a81c2382693f31163696ea17641430196e386a57d0e52
|
|
BLAKE2b-256 checksum How to use checksums |
942c2e75867af5644b381e5c19d2e839cbf1a36aea3e7f890f057c8a09441107
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|