xdgpspconf - XDG Platform Suited Project configuration
Project description
XDG Platform Suited Project CONFiguration
Gist
Source Code Repository
Badges
Description
- Handle platform suited xdg-base to
- Read configuration from standard locations.
- supported formats:
yaml
toml
conf (ini)
Locate standard data directories
What does it do
Reads standard Windows/POSIX locations, current folder and optionally all ancestors and custom locations for xdg-configuration
- Platform-specific locations:
Windows Locations: Environment Variable %LOCALAPPDATA%\<PROJECT> or %USERPROFILE%\AppData\Local\<PROJECT>
POSIX [Linux/MacOS] Locations: Environment Variable $XDG_CONFIG_HOME/<PROJECT> or $HOME/.config/<PROJECT>
Environment-declared variable: %<PROJECT>RC% for Windows or $<PROJECT> for POSIX
Custom configuration path: supplied in function
Relative path: $PWD/.<PROJECT>rc
Ancestors: Any of the parents, till project root or mountpoint, that contains __init__.py, where,
project root is the directory that contains setup.cfg or setup.py
mountpoint is checked using pathlib.Path.drive on windows or pathlib.Path.is_mount() on POSIX
Lists all possible data-locations (existing and prospective)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for xdgpspconf-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70369c8825e723d48efcd4e6a5189bdf025598fa1ad71cd84f1e1803c76182a1 |
|
MD5 | 39dd69f9a11229900df5bf975f31fee4 |
|
BLAKE2b-256 | 6d59f2c7b056b5cad085a40039879cf04546815418683089c422a3c0bcefcbce |