Skip to main content

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. Please note that we share the same name as the scikit package but we are not related to each other.

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


Download files

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

Source Distribution

skconfig-0.3.8.tar.gz (376.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skconfig-0.3.8-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file skconfig-0.3.8.tar.gz.

File metadata

  • Download URL: skconfig-0.3.8.tar.gz
  • Upload date:
  • Size: 376.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for skconfig-0.3.8.tar.gz
Algorithm Hash digest
SHA256 c8e9f190ec1ec86ca8202be8f99d727119afe9c9a27ccdfc29790ca5d8d57781
MD5 e69aec395f4a8a7ed6c59eda4d3da1d4
BLAKE2b-256 963cd711b1e9edccf4773fc7f55db2f23ac8913261e0b255b6df71ef53bdf3da

See more details on using hashes here.

Provenance

The following attestation bundles were made for skconfig-0.3.8.tar.gz:

Publisher: release.yml on usask-arg/skconfig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skconfig-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: skconfig-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for skconfig-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4eba06314be687dbebe0e149a2e56e59b11024cf9de0d4a6d2b89c41db857c75
MD5 d24cf9860aadab9c7ab7838ff91aa470
BLAKE2b-256 d6f438d3c2eab766a61b339f5bf8ff5441998c71edc287eb33e167ae083cddaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for skconfig-0.3.8-py3-none-any.whl:

Publisher: release.yml on usask-arg/skconfig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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