| 1 | Source: fscacher |
| 2 | Section: python |
| 3 | Priority: optional |
| 4 | Maintainer: Yaroslav Halchenko <[email protected]> |
| 5 | Build-Depends: debhelper-compat (= 13), |
| 6 | pybuild-plugin-pyproject, python3-setuptools, |
| 7 | python3-all, |
| 8 | python3-joblib, |
| 9 | python3-platformdirs, |
| 10 | python3-pytest, |
| 11 | python3-pytest-cov, |
| 12 | python3-pytest-mock, |
| 13 | python3-pytest-rerunfailures, |
| 14 | Standards-Version: 4.7.0 |
| 15 | Testsuite: autopkgtest-pkg-pybuild |
| 16 | Homepage: https://github.com/con/fscacher |
| 17 | Rules-Requires-Root: no |
| 18 | Vcs-Git: https://salsa.debian.org/debian/fscacher.git |
| 19 | Vcs-Browser: https://salsa.debian.org/debian/fscacher |
| 20 | |
| 21 | Package: python3-fscacher |
| 22 | Architecture: all |
| 23 | Depends: ${misc:Depends}, ${python3:Depends}, |
| 24 | Description: caching results of operations on heavy file trees |
| 25 | fscacher is a Python module which provides a cache and decorator for |
| 26 | memoizing functions whose outputs depend upon the contents of a file argument. |
| 27 | . |
| 28 | If you have a function 'foo()' that takes a file path as its first argument, |
| 29 | and if the behavior of 'foo()' is pure in the *contents* of the path and the |
| 30 | values of its other arguments, 'fscacher' can help cache that function. |
| 31 | It caches the outputs of 'foo()' will be cached for each set of input arguments |
| 32 | and for a "fingerprint" (timestamps and size) of each 'path'. If 'foo()' is |
| 33 | called twice with the same set of arguments, the result from the first call |
| 34 | will be reused for the second, unless the file pointed to by 'path' changes, |
| 35 | in which case the function will be run again. |