Skip to main content

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)

Source distribution for pathliberty 0.6.1
File Size Uploaded Provenance Actions
pathliberty-0.6.1.tar.gz 7.7 kB Without provenance Details for pathliberty-0.6.1.tar.gz

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

Security for pathliberty 0.6.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page