YAML based configuration, adds an extension to use yaml-based macros and environment variables
Project description
skconfig
THis package provides configuration information using YAML based files/text. We have added extensions that allow MACROS and environment variables to be used. This functionality could be used for many applications, but we developed it to create a yaml based description of various instrument calibration files that was portable from one machine and location to another.
The location of the calibration files is defined in the YAML file using a combination of yaml-based macros, environment variables and regular yaml text. The package resolves the macros and environment variables and combines them with the regular yaml text to form the exact location of the filename. Other applications of the package are entirely possible.
Installation
pip install skconfig
We recommend running the unit tests, see below, after installation to download Earth rotation data files.
Building a wheel
The python wheel can also be built from source code,
conda install setuptools build
python -m build --wheel
Usage
Documentation can be found at ReadTheDocs skconfig
Unit Tests
It is useful to run the unit tests as the tests will automatically download leap-second files and earth rotation information. Needless to say you must have an internet connection to successfully run the unit tests
python -m unittest discover -s skconfig.tests
License
This project is licensed under the MIT license.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skconfig-0.3.6.tar.gz.
File metadata
- Download URL: skconfig-0.3.6.tar.gz
- Upload date:
- Size: 375.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bea892b56fe567fa8cc121254bfd90bebf9e171df0808783a4f3c3afb5c10bf7
|
|
| MD5 |
22939b4085542bceeab1285a4c3eb562
|
|
| BLAKE2b-256 |
13a58aa20482a0e23ff287b3759d4761597db6b9edb9e3e94b5a44c80efd17a2
|
Provenance
The following attestation bundles were made for skconfig-0.3.6.tar.gz:
Publisher:
release.yml on usask-arg/skconfig
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
skconfig-0.3.6.tar.gz -
Subject digest:
bea892b56fe567fa8cc121254bfd90bebf9e171df0808783a4f3c3afb5c10bf7 - Sigstore transparency entry: 188002501
- Sigstore integration time:
-
Permalink:
usask-arg/skconfig@ff121d38a0791178f49d19cd7d1cc62de0b078a0 -
Branch / Tag:
refs/tags/v0.3.6 - Owner: https://github.com/usask-arg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ff121d38a0791178f49d19cd7d1cc62de0b078a0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file skconfig-0.3.6-py3-none-any.whl.
File metadata
- Download URL: skconfig-0.3.6-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c39580b1fbaa75d6a6f0196f35f70994d4e3a04de3f6bfe678c3eb0e02545a24
|
|
| MD5 |
0f0c610642e19a967cfc0ff4cce45719
|
|
| BLAKE2b-256 |
59f87adc282b8bc1fe074bd1ba7b917cfb61825cd93661e839075da4d622032a
|
Provenance
The following attestation bundles were made for skconfig-0.3.6-py3-none-any.whl:
Publisher:
release.yml on usask-arg/skconfig
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
skconfig-0.3.6-py3-none-any.whl -
Subject digest:
c39580b1fbaa75d6a6f0196f35f70994d4e3a04de3f6bfe678c3eb0e02545a24 - Sigstore transparency entry: 188002502
- Sigstore integration time:
-
Permalink:
usask-arg/skconfig@ff121d38a0791178f49d19cd7d1cc62de0b078a0 -
Branch / Tag:
refs/tags/v0.3.6 - Owner: https://github.com/usask-arg
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ff121d38a0791178f49d19cd7d1cc62de0b078a0 -
Trigger Event:
release
-
Statement type: