appsettingsreader-1.0.0
توضیحات
Read appSettings values from .NET XML config files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | appsettingsreader-1.0.0 |
| نام | appsettingsreader |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | STFC User Programme Software |
| ایمیل نویسنده | FacilitiesBusinessSystem@stfc.ac.uk |
| آدرس صفحه اصلی | https://github.com/isisbusapps/BISAppSettingsReader |
| آدرس اینترنتی | https://pypi.org/project/appsettingsreader/ |
| مجوز | - |
# 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
```py
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.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl appsettingsreader-1.0.0:
pip install appsettingsreader-1.0.0.whl
نصب پکیج tar.gz appsettingsreader-1.0.0:
pip install appsettingsreader-1.0.0.tar.gz