Skeletonkey

Latest version: v0.3.0.1

Safety actively analyzes 640154 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.2.0

New Features

1. **Defining Flags in Configuration:**
- Flags can be defined in the configuration YAML using the `?` prefix.
- Command-line arguments can be used to override flags.

2. **Using Modular Subconfigurations (`keyring` feature):**
- Modularize configurations using subconfigurations.
- Define a `keyring` section in the main configuration file to reference various subconfigurations from separate files.

3. **Integration of Environment Variables in Configuration:**
- Incorporate environment variables in the configuration YAML using the `$` prefix.
- Enables users to store sensitive information outside the configuration file.

0.0.11

Provides a decorator and a function to simplify the management of complex configurations for applications using YAML files. The key features include:

- unlock decorator: It parses and injects configuration arguments into a main function from a YAML file. Given the name of the configuration file and an optional path to the directory containing the file, this decorator reads the configuration, creates an argument parser, and adds the arguments from the configuration to the parser. The arguments are then passed to the decorated main function.

- instantiate function: It instantiates a class object using a dictionary of keyword arguments. The dictionary should contain the keys "kwargs" and "target" to specify the class to instantiate and its arguments. This function is useful for dynamically creating class instances with their configurations at runtime.

By using this tool, you can easily manage complex configurations for your applications and dynamically load classes and their arguments at runtime.

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.