Alle Optionen
trixie  ] [  forky  ] [  sid  ]
[ Quellcode: fscacher  ]

Paket: python3-fscacher (0.4.3-0.3)

Links für python3-fscacher

Screenshot

Debian-Ressourcen:

Quellcode-Paket fscacher herunterladen:

Betreuer:

Externe Ressourcen:

Ähnliche Pakete:

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.

Andere Pakete mit Bezug zu python3-fscacher

  • hängt ab von
  • empfiehlt
  • schlägt vor
  • erweitert

python3-fscacher herunterladen

Download für alle verfügbaren Architekturen
Architektur Paketgröße Größe (installiert) Dateien
all 14,1 kB62,0 kB [Liste der Dateien]