fedn.network.storage package

Module handling both transient and persistent storage of model objects and system state.

Subpackages

Submodules

fedn.network.storage.dbconnection module

This module provides classes for managing database connections and stores in a federated network environment.

Classes:

StoreContainer: A container for various store instances. DatabaseConnection: A singleton class for managing database connections and stores.

class fedn.network.storage.dbconnection.DatabaseConnection(statestore_config, network_id, connect: bool = True)[source]

Bases: object

Singleton class for managing database connections and stores.

__init__(statestore_config, network_id, connect: bool = True)[source]
attribute_store: AttributeStore
client_store: ClientStore
combiner_store: CombinerStore
initialize_connection()[source]
metric_store: MetricStore
model_store: ModelStore
package_store: PackageStore
prediction_store: PredictionStore
round_store: RoundStore
run_store: RunStore
session_store: SessionStore
status_store: StatusStore
telemetry_store: TelemetryStore
validation_store: ValidationStore