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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kloch-0.11.2.tar.gz
Algorithm Hash digest
SHA256 c29200401f47d22a5f81d1fd4301b0ba884133006c8a8cd3e956adc00f9d06d7
MD5 6beb2a7b3e8f6b2559221630a6411485
BLAKE2b-256 155e182e4ab6df5a362c5e9827bb9ab34186706f81bea0be474988d50d47224b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for kloch-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e888ce83844b050d7ea1de9763dc0f53870bcac96c4dc9caea58418dd7b072c
MD5 8e7f80c8dfbd932e936fe573c85882a9
BLAKE2b-256 b649e88a9c2c5bea873db1a4115cc66630d5f604ad8edbc90450fbbba843cd1b

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