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.7.tar.gz (375.6 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.7-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skconfig-0.3.7.tar.gz
  • Upload date:
  • Size: 375.6 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.7.tar.gz
Algorithm Hash digest
SHA256 cee31042944535d5be50df898701127f823bc31b8207477a62168bcd880842f3
MD5 de4a6396df0b22fa9fe1b6eb881f0ab5
BLAKE2b-256 78ca3cadb6bec0fb5e434972724bb0b90da293ffa4d50813464bcb95d433dd44

See more details on using hashes here.

Provenance

The following attestation bundles were made for skconfig-0.3.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: skconfig-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 13.7 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7fb5ec00c6323e48875407e7eefd634549b528bcf502858fb1d6eaa44d8311b3
MD5 76b5b03f0e691e6631ef222948c03a89
BLAKE2b-256 07639e41f9a86dc126db8fabcaa15ab0b0443bb20729cafe3eb34c31faf4309e

See more details on using hashes here.

Provenance

The following attestation bundles were made for skconfig-0.3.7-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