drytoml.utils module¶
Miscellaneous utilities used throughout the project.
-
drytoml.utils.
cached
(func)¶ Store output in drytoml’s cache to use it on subsequent calls.
- Parameters
func – Function to decorate.
- Returns
Cached result with function result as fallback.
See also
drytoml.paths.CACHE
drytoml.app.cache
-
drytoml.utils.
request
(url: Union[str, drytoml.types.Url]) → str¶ Request a url using a GET.
- Parameters
url – The URL to GET.
- Returns
Decoded content.