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

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

Uploaded Python 3

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

Hashes for skconfig-0.3.6.tar.gz
Algorithm Hash digest
SHA256 bea892b56fe567fa8cc121254bfd90bebf9e171df0808783a4f3c3afb5c10bf7
MD5 22939b4085542bceeab1285a4c3eb562
BLAKE2b-256 13a58aa20482a0e23ff287b3759d4761597db6b9edb9e3e94b5a44c80efd17a2

See more details on using hashes here.

Provenance

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

Hashes for skconfig-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c39580b1fbaa75d6a6f0196f35f70994d4e3a04de3f6bfe678c3eb0e02545a24
MD5 0f0c610642e19a967cfc0ff4cce45719
BLAKE2b-256 59f87adc282b8bc1fe074bd1ba7b917cfb61825cd93661e839075da4d622032a

See more details on using hashes here.

Provenance

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