Skip to main content

Augmented pathlib. Everything else you could do with a path.

Project description

augpathlib

PyPI version Build Status Coverage Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

augpathlib-0.0.10.tar.gz (53.9 kB view details)

Uploaded Source

Built Distribution

augpathlib-0.0.10-py2.py3-none-any.whl (50.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file augpathlib-0.0.10.tar.gz.

File metadata

  • Download URL: augpathlib-0.0.10.tar.gz
  • Upload date:
  • Size: 53.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.6

File hashes

Hashes for augpathlib-0.0.10.tar.gz
Algorithm Hash digest
SHA256 22e7ff73f327b4642265da976996c4a14769308992c7ba0eaa8d2d7f76cd47c5
MD5 577b65f75aa60bf060ca965c06279527
BLAKE2b-256 4ad435ee66db100e93846da0e8def9f2c16af73fa879fe62af177e127b3937df

See more details on using hashes here.

File details

Details for the file augpathlib-0.0.10-py2.py3-none-any.whl.

File metadata

  • Download URL: augpathlib-0.0.10-py2.py3-none-any.whl
  • Upload date:
  • Size: 50.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.6

File hashes

Hashes for augpathlib-0.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 941f487982c76624751526681e670a1996b89960cbec14bb105f8d7eb1a9a9ec
MD5 f22c49175e78dee6ee845b55c1db07b3
BLAKE2b-256 3b4fc25d03de3c93fb00cee69c58a8dd96dbca3eee457f68094a652ed8ab082a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page