Skip to main content

Cache file using path

Project description

When using remote files, using the remote path will be slow, but you do not want to manually download to the local. You can use this library to automatically download management cache files, but still use the original remote path.

For example:

from pathcache import pathcachestr as pc

open(pc(r"/mnt/smb_01/xxx/yy/z.txt"))

This will create ./_pathcache/mnt/smb_01/xxx/yy/z.txt copy from /mnt/smb_01/xxx/yy/z.txt

Actully, the argument to the open() is str absolute path of "./_pathcache/mnt/smb_01/xxx/yy/z.txt"

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

pathcache-0.0.1.202209300413.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pathcache-0.0.1.202209300413-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file pathcache-0.0.1.202209300413.tar.gz.

File metadata

  • Download URL: pathcache-0.0.1.202209300413.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.5

File hashes

Hashes for pathcache-0.0.1.202209300413.tar.gz
Algorithm Hash digest
SHA256 0646695fcab35632be34b78e05ed4960c523dde6ac4927e63d9c1583849e1507
MD5 d8b9ba4469b237fac57b25b407f7fba8
BLAKE2b-256 032a19316d7e3c6f242250a77bc62fe9b680c1bfd5d266cd9449a74c6758d8b2

See more details on using hashes here.

File details

Details for the file pathcache-0.0.1.202209300413-py3-none-any.whl.

File metadata

  • Download URL: pathcache-0.0.1.202209300413-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.9.5

File hashes

Hashes for pathcache-0.0.1.202209300413-py3-none-any.whl
Algorithm Hash digest
SHA256 5269b91dae411943db9a465916fcb860cb78b850bad0e77c215577ba23edb7dd
MD5 c0d2c0aa767d89795abe2a21b4706992
BLAKE2b-256 5508b74cfd831a92c00019a2a77e8def61793886df354e62296f5717b1132b69

See more details on using hashes here.

Supported by

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