[Python-ideas] Add appdirs module to stdlib

Jonas Wielicki j.wielicki at sotecware.net
Sun Oct 18 13:32:35 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 01.09.2015 10:00, Philipp A. wrote:
> When defining a place for config files, cache files, and so on,
> people usually hack around in a OS-dependent, misinformed, and
> therefore wrong way.
> 
> Thanks to the tempfile API we at least don’t see people hardcoding
> /tmp/ too much.
> 
> There is a beautiful little module that does things right and is
> easy to use: appdirs <https://pypi.python.org/pypi/appdirs>
> 
> TI think this is a *really* good candidate for the stdlib since
> this functionality is useful for everything that needs a cache or
> config (so not only GUI and CLI applications, but also scripts that
> download and cache stuff from the internet for faster re-running)
> 
> probably we should build the API around pathlib, since i found
> myself not touching os.path with a barge pole since pathlib
> exists.
> 
> i’ll write a PEP about this soon :)

Is anyone working on this?

I would really like to see the functionality discussed in this thread.
I have no deep knowledge about Windows, MacOS or FreeBSD though, which
would make it hard for me to take this on my own.

If we could get together a team with knowledgeable people from each
platform, that would be great.

best regards,
jwi

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJWI4NSAAoJEMBiAyWXYliKfdwP/Rgi2w2ZyZA2tfFcjZMxh6ox
niJYz3Uq2Jcci7VJlvPIObu9ioS1pdc/KdLIqMCO9BZzkm0+V/d9/6TLecBtE73s
MDFBkVbBooK/km2xx1HCnfj3vT+Eh8+blPDwNABRKzVdGnuGLfZdQHGvw16NDYPI
zKcBboS8Xp1F7Njwdm3ozlW34A5ApLMZV0D2WrtrhZk3PBTbjNVBmKqVdNrBzsyO
F04F/8kPLoANBj4tBuI9O1KjnMbfwCN7snbu6LlDwhT8pAGW6kpTzOjxRZZdbjD6
NH6NyLbTjIWgVP8JgQ766vGXAwiatrd0ECQWoYHXgAhuP//KVgfmTBpIqoPPME7Y
eGmM8XclzI4FS5ud87bgf9Zgr4xZcycX5J/lcXIp/ZPAajHfyWxVbJPHZDocNw7V
ZDlEEfIfkbU4aT5faQutPF95eZgwXOxloOSNZI+u7a8Ke8iaTjeoawtksBlVzYbb
6MOLP6xdVXc+vg/9FFwbiDrLuOQiGv2YYENY2Lj3lMw6jvj6GL31XDKhVcyQQeJn
yE1ylKwrBQzq2hw57vLwCJD9Tdn0qgOjA74pgl7SHPvkFjNpPXre5YkMTUxI13jI
MGof+oR32WHLaA+Kt0dByzNSJPSdzubc4/zKKAT49G96znXua2MlM1nDdrRmhbHo
uihjjtEQzIZ1O/uNMV2n
=UtH/
-----END PGP SIGNATURE-----


More information about the Python-ideas mailing list