Skip to main content

Read appSettings values from .NET XML config files

Project description

appsettingsreader

Read appSettings from XML configuration files, to share .NET configration with python applications.

As it is only valid for .config files to have a single appSettings element in .NET only the first will be read, and any others will be ignored.

Usage

from appsettingsreader import *

# Read from an arbitrary file
settings = read_appsettings("/some/pathlike/thing")

# Shortcuts for FBS configuration
bisappsettings = read_bis_appsettings("dev")
icat_settings = read_icat_appsettings("prod")

Releasing

Building and uploading a release require the build and twine python packages, respectively.

To make a release, update the version number in setup.cfg and run make release. Note that there's an issue with mintty and entering credentials for uploading, so prefix the command with winpty or use a different terminal.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appsettingsreader-1.0.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

appsettingsreader-1.0.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page