I am working on an application that stores cache files. I would like to do this in the proper directories and thus have a need for a function just like pip._internal.utils.appdirs.user_cache_dir. Is there any chance that this can be exposed to a public interface? Or is there a public function available that I missed? It seems like a version of this should go into the standard library os package or similar.
Thank you for any pointers.