The dependencies are listed in the pyproject.toml and you can install them as follows:
pip install -e .Tip: Your
pyproject.tomlfile can define more than just the dependencies of your Flower app. You can also use it to specify hyperparameters for your runs and control which Flower Runtime is used. By default, it uses the Simulation Runtime, but you can switch to the Deployment Runtime when needed. Learn more in the TOML configuration guide.
In the iot-fed directory, use flwr run to run a local simulation:
flwr run .Refer to the How to Run Simulations guide in the documentation for advice on how to optimize your simulations.
Follow this how-to guide to run the same app in this example but with Flower's Deployment Engine. After that, you might be interested in setting up secure TLS-enabled communications and SuperNode authentication in your federation.
You can run Flower on Docker too! Check out the Flower with Docker documentation.
- Flower website: flower.ai
- Check the documentation: flower.ai/docs
- Give Flower a star on GitHub: GitHub
- Join the Flower community!