Augmented pathlib. Everything else you could do with a path.
Project description
augpathlib
Augmented pathlib. Everything else you could do with a path.
Introduction
Do you like pathlib?
Have you ever wanted to see just how far you can push the path abstraction?
Do you like using the division operator in ways that could potentially cause
reading from the network or writing to disk?
Then augpathlib is for you!
Details
augpathlib makes extensive use of the pathlib Path object (and friends) by augmenting the base PosixPath object with additional functionality such as getting and setting xattrs, syncing with other mapped paths etc.
In essence there are 3 ways that a Path object can be used: Local, Cache, and Remote. Local paths return data and metadata that are local the the current computer. Cache paths return local metadata about remote objects (such as their remote id). Remote objects provide an interface to remote data that is associated with a path.
Remote paths should be back by another object which is the representation of the remote according to the remote's APIs.
Remote paths are only intended to provide a 1:1 mapping, so list(local.data) == list(remote.data) should always be true if everything is in sync.
If there is additional metadata that is associated with a local path then that is represented in the layer above this one (currently DatasetData, in the future a validation Stage). That said, it does seem like we need a more formal place that can map between all these things rather than always trying to derive the mappings from data embedded (bound) to the derefereced path object.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file augpathlib-0.0.5.tar.gz
.
File metadata
- Download URL: augpathlib-0.0.5.tar.gz
- Upload date:
- Size: 53.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d994e024e0784319c41942c73829e877601bc5bb371700f8a7fa2784d3b9c42d |
|
MD5 | 1698bc4d6200436054e6571d10b4f5ae |
|
BLAKE2b-256 | 0021bef958a4bd5cf54dcb78c355c2cd4bcd680e57c2b642119ec90fd321cf4b |
File details
Details for the file augpathlib-0.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: augpathlib-0.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 49.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2afcf9171044c5474b5b6b964d8871390fe2a582da8b4bf4fdf346f77bf1db08 |
|
MD5 | 49a0718ae9393f03952ceb3749c32208 |
|
BLAKE2b-256 | 8feb3693c3a5f4a7611e0e7119d9c6bbd9ab80172de8fa2183da6278495e5f6e |