kaiju-config-validator is designed to work with kaiju-app library to validate
project configuration dictionary for a set of application service classes. It analyzes __init__ methods of services
to check the input data before creating an app object.
fastjsonschema library is used to validate JSONSchema files.
Installation
With pip and python 3.12+:
pip3 install kaiju-config-validator
How to use
The configuration process is straightforward. Use the standard application configuration process as described in the kaiju-app documentation.
from kaiju_config_validator import ConfigValidator
from kaiju_app import Application, ApplicationLoader, Configurator
loader = ApplicationLoader()
loader.service_classes[...] = ...
config = Configurator().create_configuration([...], [...])
As soon as a project config dict is produced you can pass it to the validator method along with service classes
map and an application class. The validator will either raise a InvalidConfiguration or return None if everything
is fine.
ConfigValidator().validate_project_config(Application, loader.service_classes, config)
Metadata
Release files for kaiju-config-validator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaiju_config_validator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kaiju_config_validator-0.1.0-py3-none-any.whl |
Release files / kaiju_config_validator-0.1.0-py3-none-any.whl
| Download URL | kaiju_config_validator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4130bc887aa5f4292d60d7ad6921338cc72720efa76c2d20cba24fb606a0fc64
|
|
BLAKE2b-256 checksum How to use checksums |
3acdf16f5aa0d554215fdb775bf59be11e3e4eacd5ddff820e8481bee26fa18d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.13.0a3
|
Security for kaiju-config-validator 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.