Xdg-base-dirs

Latest version: v6.0.2

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

5.0.1

This patch release changes the build backend to `poetry-core` in order to make PEP 517 builds faster, and not require Poetry and all its dependencies be installed.

5.0.0

This major release refactors the API to provide functions rather than variables. This means `xdg` will now respect changes to environment variables made after it is imported. The previous variable based API is maintained for backward compatibility, but is no longer documented.

4.0.1

This patch release adds a `py.typed` file to mark `xdg` as PEP 561 compliant.

4.0.0

With this major release, paths are no longer returned as strings but as [`pathlib.Path` objects](https://docs.python.org/3/library/pathlib.html#pathlib.Path), which are the new de facto standard for specifying file system paths in Python.

If your code expects strings rather than `pathlib.Path` objects, wrap the variable in a call to `os.fspath`, e.g.
python
import os
import xdg

config_home = os.fspath(xdg.XDG_CONFIG_HOME)

3.0.2

This patch release changes the test setup to allow easier distribution packaging. The test suite can now be run with `python setup.py test`.

3.0.1

The encoding of `README.rst` is now specified when it is opened in `setup.py`, to resolve an issue encountered when installing `xdg` with [Nix](https://nixos.org/nix/).

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.