Skip to main content

configize

Python library to find and fetch YAML configuration for a program, respecting the XDG base directory specification.

Example

from configize import configize


# This will use $XDG_CONFIG_HOME
# The following files will be searched for, and the first existing file will be used:
# (Note, NAME is populated from the class kwarg 'Name')
# - $XDG_CONFIG_HOME/NAME.yaml
# - $XDG_CONFIG_HOME/NAME.yml
# - $XDG_CONFIG_HOME/NAME/NAME.yaml
# - $XDG_CONFIG_HOME/NAME/NAME.yml
# - $XDG_CONFIG_HOME/NAME/config.yaml
# - $XDG_CONFIG_HOME/NAME/config.yml
c = configize(Name="myproject")

# Alternatively, if using a custom path instead of XDG:
c = configize(Name="myproject", Path="/etc/myproject")

# the path field contains a pathlib.Path object to the config file
print(c.path)

# the config field contains a deserialized dict from the YAML file contents
print(c.config)

Metadata

Release files for Configize 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Configize 1.0.1
File Size Uploaded Provenance Actions
Configize-1.0.1.tar.gz 26.0 kB Without provenance Details for Configize-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Configize 1.0.1
File Interpreter ABI Platform Actions
Configize-1.0.1-py3-none-any.whl Python 3 none any Details for Configize-1.0.1-py3-none-any.whl

Total release size: 52.4 kB

Release files / Configize-1.0.1.tar.gz

Download URL Configize-1.0.1.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
80e0961540153c6ac76b3e56f18e6955882ac5b7296f69e0c76bc2e0289b8317
BLAKE2b-256 checksum
How to use checksums
bf78b562991ee5f948c3a5c3cebbef6d263a6866112332508bd982b1c6d4e948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / Configize-1.0.1-py3-none-any.whl

Download URL Configize-1.0.1-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
761f34181b27f16aeeb7a55b561d49be6ebedf90b5f49ded175cef36f1f1f531
BLAKE2b-256 checksum
How to use checksums
b19c9c727b08170c350d054495245620a8e3a9e040563793720ba69e1375cc32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Security for Configize 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page