--- id: flwr version: "1.33.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # flwr — Flower: A Friendly Federated AI Framework License: permissive · Maintenance: active · Downloads: 188.8K/mo ## What it is and what it does Flower is a framework for implementing federated learning systems—distributed machine learning where model training happens across multiple clients that retain their data locally, with only model updates sent to a central server for aggregation. It abstracts away the complexity of coordinating training across heterogeneous devices and frameworks, allowing researchers and practitioners to focus on algorithm design rather than infrastructure. The framework is framework-agnostic and can work with PyTorch, TensorFlow, scikit-learn, JAX, XGBoost, and other ML libraries. Flower's core dependencies include gRPC and protobuf for client-server communication, cryptography libraries for secure aggregation, FastAPI and Uvicorn for server infrastructure, SQLAlchemy for state management, and rich/typer for CLI tooling. It is designed for customization and extensibility—users can override strategies, define custom client logic, and integrate with their existing ML pipelines. The framework targets both research (with baseline implementations of published algorithms) and production use, supporting modern Python versions (3.11, 3.12, 3.13). Use it for: - Train a model across hospitals' patient data without centralizing sensitive medical records. - Aggregate model updates from mobile devices in a federated learning pipeline using PyTorch or TensorFlow. - Implement custom federated learning strategies by extending Flower's Strategy class for research experiments. - Conduct federated analytics on distributed datasets without moving raw data to a central location. - Deploy a federated learning system with secure aggregation using Flower's cryptography integrations. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Flower is a framework for building federated learning systems where machine learning models are trained collaboratively across distributed clients without centralizing raw data. Yes. Flower is production-stable (Development Status 5), actively maintained with recent releases, has no known vulnerabilities, and low install friction. Install it if you need to build federated learning systems or conduct distributed model training while preserving data privacy. The permissive Apache-2.0 license and framework-agnostic design make it suitable for research and commercial use. ## Install pip install flwr uv add flwr poetry add flwr ## Installing flwr Before you install: Low install friction with a pure-Python wheel distribution. Active maintenance with a release 9 days old and recent commits; 7073 repository stars indicate established community adoption. License in practice: Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions, making it suitable for both research and production deployments. Quickstart: pip install flwr import flwr as fl strategy = fl.server.strategy.FedAvg() fl.server.start_server(config=fl.server.ServerConfig(num_rounds=3), strategy=strategy) Requires Python 3.11 or later; federated learning scenarios typically require multiple client processes or machines to demonstrate value. Verify before relying: - Whether the framework's gRPC and protobuf dependencies are suitable for all network environments (e.g., restrictive firewalls). - Performance characteristics and scalability limits for the number of clients and model sizes supported. - Whether privacy guarantees (differential privacy, secure aggregation) are built-in or require additional implementation. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 188.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags federated learning framework, distributed machine learning, privacy-preserving model training, federated AI systems, decentralized model aggregation, collaborative machine learning, federated analytics, federated-learning, distributed-training, privacy-preserving [View on SkillFed](https://skillfed.io/packages/flwr) · [View on PyPI](https://pypi.org/project/flwr/)