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.5.20231206134700.tar.gz (3.5 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.5.20231206134700-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pathcache-0.0.5.20231206134700.tar.gz
Algorithm Hash digest
SHA256 695ac674535ae3393cb9de93867af4120f7e0e0eb39427bae4dc0a928032196c
MD5 262518875a4e53979cab4cbc086f87a0
BLAKE2b-256 9e7c7d16558abc3d465adfb4b179ea87d729326a7258905d4b413cfebc3c947a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pathcache-0.0.5.20231206134700-py3-none-any.whl
Algorithm Hash digest
SHA256 227129e17a388aaad5d56af41fcbcc6b067a0b5e844f2f2b900665795d4d6870
MD5 ad0b8fc505cbd09fef3a1fc97b0a450c
BLAKE2b-256 14686b794019955522e44b74b7bd80443013f339fa43f0625a6b99b42c8f5ac1

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