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.3.20221101233900.tar.gz (3.4 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.3.20221101233900-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pathcache-0.0.3.20221101233900.tar.gz
  • Upload date:
  • Size: 3.4 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.13

File hashes

Hashes for pathcache-0.0.3.20221101233900.tar.gz
Algorithm Hash digest
SHA256 15d89cec092a3f8055f95cbdab5cf9e5ad5b3aa0c5a632f03e2573b4948e7d9b
MD5 99d3a138245505ae2aa67b14d731f482
BLAKE2b-256 9efd339bacb38c620f3f50898e5dd390f1bd5092011bae7a5c96ac2053ed130f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pathcache-0.0.3.20221101233900-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.13

File hashes

Hashes for pathcache-0.0.3.20221101233900-py3-none-any.whl
Algorithm Hash digest
SHA256 339c25a78a5196e3a3f1095906c15c391259e57493e6c15aae4fb9b472b7f73d
MD5 017bf95cb49674d120f587707b846b7d
BLAKE2b-256 db8be66eb2ac0cb8af47a9926c90769d3121c03845f41b7c25219043812bd576

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