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.2.20221019224600.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.2.20221019224600-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pathcache-0.0.2.20221019224600.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.13

File hashes

Hashes for pathcache-0.0.2.20221019224600.tar.gz
Algorithm Hash digest
SHA256 8099a38a9285bfa4fcb8604020490d51e50ea971cb1d18e25e7023549d29eaad
MD5 02fefeb83d418b0bdfb0bef92604c433
BLAKE2b-256 38d5d1ff94f011ea0ecfb7dc37debc2f84b921bff0c8ceadde23d7f3cd75997d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pathcache-0.0.2.20221019224600-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.2.20221019224600-py3-none-any.whl
Algorithm Hash digest
SHA256 e1431fc2f79f631244f58a3f7e39d70406549a15e986073f734db65a72ddd484
MD5 d6da3ae7b04f0feb9841f38b7c546f22
BLAKE2b-256 9c2d59b3567c5f0ccf410516e8ab4bcec547bf9c8f3851f0eab27c6d1278f968

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