User Guide¶
Comprehensive documentation for all Vidhi features.
Best Practices¶
Use enums for type discriminators - Provides type safety and IDE support
Provide sensible defaults - Make configurations easy to use out of the box
Document with help text - Use
field(help="...")for CLI documentationGroup related configs - Use nested dataclasses for organization
Validate in __post_init__ - Check constraints during initialization
Keep configs immutable - Don’t work around the frozen constraint
Generate JSON Schema - Enable IDE autocomplete for config files