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.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81bbdcab895dcbb2a9e8157c98bcb839c83bdec1258a041dc0f20b3a52ae1d7d |
|
MD5 | d3664b06af6fcac2d631bfef9278ba2f |
|
BLAKE2b-256 | 2e9f21789d1c37259b95f98e5078da0f09b8617cd76f1e36ac402883b039798c |