Configuration

class ioiocore.configuration.Configuration(**kwargs)[source]

Bases: dict

A dictionary-based configuration class with validation and reserved metadata handling.

class Keys[source]

Bases: object

Placeholder for configuration keys. Should be extended by subclasses.

class ReservedKeys[source]

Bases: object

Reserved keys that cannot be used as configuration fields.

__init__(**kwargs)[source]

Initialize a configuration instance with validation.

Parameters:

**kwargs (dict) – Key-value pairs representing configuration fields.

Raises:

ValueError – If a required field is missing, None, or empty.

delitem(key)[source]

Prevent deletion of configuration fields.

Raises:

ValueError – If an attempt is made to delete a configuration field.