Catalog PyPI
PACKAGE EXPLORERView in registry

ai4flwr

PyPI

AI4OS extensions to the Python Flower federated learning framework (https://flower.dev)

Versions collected1
Direct dependencies2From release 0.2.0
Last observed21 Oct, 09:46 UTC

README

Version 0.2.0 documentation
logo

ai4-flwr

Conventional Commits GitHub license GitHub release PyPI Python versions

This repository contains the AI4OS extensions for the Flower framework.

Authentication

Authentication for Flower is implemented directly via GRPC: interceptors (server side) and authentication medatata plugins (client side).

In order to use it, the server must be initialized with any object of the ai4flwr.auth package as interceptor. See the examples below for more details.

Bearer token authentication

In your server, start it as follows:

import ai4flwr.auth.bearer

fl.server.start_server(
    server_address="0.0.0.0:5000",
    certificates=(...),
    interceptors=[ai4flwr.auth.bearer.BearerTokenInterceptor()]
)

In your client, start it as follows:

import ai4flwr.auth.bearer

token = "Your token as configured in the server"

fl.client.start_numpy_client(
    server_address=f"localhost:5000",
    client=...,
    root_certificates=...
    call_credentials=grpc.metadata_call_credentials(
        ai4flwr.auth.bearer.BearerTokenAuthPlugin(token)
    ),
)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.010 Jan 20242

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:46 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:09b0c2ad62d5a76b3c29ec4aca4483d293e22359660b901d6e4957d87612cf07