Skip to main content

Environment Manager CLI wrapping package managers calls as serialized config file

Project description

kloch

documentation badge Made with Python

[!WARNING] Despite being public, this repository is still in development stage and have not been tested extensively yet.

banner with logo and logotype

kloch /klˈoʃ/ is a configuration system for launching software. Configurations are yaml files referred as "environment profile" which specify the parameters for one or multiple pre-defined launchers.

Launchers are internally defined python objects that specify how to execute a combinations of options and (optional) command.

In a very abstract way, kloch is a system that:

  • serialize the arguments passed to a pre-defined function as yaml files.
  • execute that function by unserializing the parameters provided at runtime.

kloch was initially designed as the environment manager layer when used with the rez package manager.

features

  • offer a CLI and a public python API
  • custom config format for environment profiles:
    • inheritance
    • inheritance merging rules with token system
  • arbitrary profile locations with flexible configuration
  • plugin system for launchers

programming distinctions

  • robust logging.
  • good amount of unittesting
  • good documentation with a lot of doc created at code level
  • python 3.7+ support (EOL was in June 2023).
  • PyYAML as only mandatory external python dependency.
  • flexible "meta" configuration from environment variable or config file.
  • clear public and private API

quick-start

pip install kloch
kloch --help
# or:
python -m kloch --help 

documentation

Check the detailed documentation at https://knotsanimation.github.io/kloch/

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

kloch-0.13.1.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

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

kloch-0.13.1-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file kloch-0.13.1.tar.gz.

File metadata

  • Download URL: kloch-0.13.1.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for kloch-0.13.1.tar.gz
Algorithm Hash digest
SHA256 0bd4df2aab26a21f9aa09851686bbbc3be19f83e17c3c32874daf6c459160394
MD5 7e29c5da6f369ee83e5655ca790bd0bc
BLAKE2b-256 2c1280cd80e1d08cf80f50cd9091a0a9b0c21abcf9c7b7db063cde292e812a41

See more details on using hashes here.

File details

Details for the file kloch-0.13.1-py3-none-any.whl.

File metadata

  • Download URL: kloch-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for kloch-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2bfbe342aa19de6e045593955fabed72456db641962e8f5afa69fee30c0895f
MD5 173361b3024bf5be3e3f46d1d7cbc075
BLAKE2b-256 d43625106ec9afce5194be7b11a5f1bba48637c4568d689e4b11fa20112bfe6e

See more details on using hashes here.

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