ai4-flwr
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)
),
)
Metadata
Release files for ai4flwr 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai4flwr-0.2.0.tar.gz | 15.4 kB | Without provenance | Details for ai4flwr-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai4flwr-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ai4flwr-0.2.0-py3-none-any.whl |
Total release size: 31.6 kB
Release files / ai4flwr-0.2.0.tar.gz
| Download URL | ai4flwr-0.2.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc585d9f488a6991ef3717cbd69b308cd48387c68e1a3c810a5a43606ddbb438
|
|
BLAKE2b-256 checksum How to use checksums |
d3fb5cd9281d706eb2f25e28f3849be8699fb16b359fcc19a387bd60ccada2b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure
|
Release files / ai4flwr-0.2.0-py3-none-any.whl
| Download URL | ai4flwr-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b78dfac0bee8ade2aaf7ed9547fa7027a9ecdd6755da05e48cbccbbf1463730d
|
|
BLAKE2b-256 checksum How to use checksums |
518cf080240bc170f13d2e396f3b20c379b2343656d4a43244f926d77c180273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure
|
Security for ai4flwr 0.2.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.