util
file_cache(*, ext, domain)
Caches the result of a function to a file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ext
|
str
|
The file extension for the cache file. |
required |
domain
|
str
|
The domain name for the cache file. |
required |
Returns:
| Type | Description |
|---|---|
Callable
|
A wrapper function that caches the result of the original function. |
Source code in src/finch/util/cache.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
get_version()
Get the version of finch.
Source code in src/finch/util/config.py
79 80 81 82 83 84 | |