全部搜尋項
bianca  ]
[ 原始碼: fscacher  ]

套件:python3-fscacher(0.4.3-0.3)

python3-fscacher 的相關連結

Screenshot

下載原始碼套件 fscacher

維護者:

外部的資源:

相似套件:

caching results of operations on heavy file trees

fscacher is a Python module which provides a cache and decorator for memoizing functions whose outputs depend upon the contents of a file argument.

If you have a function 'foo()' that takes a file path as its first argument, and if the behavior of 'foo()' is pure in the *contents* of the path and the values of its other arguments, 'fscacher' can help cache that function. It caches the outputs of 'foo()' will be cached for each set of input arguments and for a "fingerprint" (timestamps and size) of each 'path'. If 'foo()' is called twice with the same set of arguments, the result from the first call will be reused for the second, unless the file pointed to by 'path' changes, in which case the function will be run again.

其他與 python3-fscacher 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-fscacher

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 14。1 kB62。0 kB [檔案列表]