Scan your whole stack
From OX Research Newsroom
Are you using flypse?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.0
flypse was last scanned on 24 Nov 2026 at version 0.2.0. Risk score 5 of 100 (low). No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0 LATEST | 24 Nov 2026 | 1 rule fired |
| 0.1.0 | 5 Nov 2026 | No rules fired |
Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The package's maintainer or owner differs from the previous version. This is usually benign, such as a transfer or reorganization, but account takeovers look the same at first. Shown for awareness.
LOWThe score describes 0.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
FLYPSE is a Python library for experimenting with federated learning on the cloud–edge continuum. Write what each participant does, connect the participants in any topology, place them on an infrastructure, and study how learning behaves as data, devices and links differ and change.
FLYPSE is designed for researchers and developers evaluating federated protocols under realistic systems: synchronous or asynchronous, centralised, hierarchical or decentralised. It builds on ECLYPSE, which places and emulates the participants.
step, which sends and receives models. There is no round loop, no role and no barrier in the core: rounds, deadlines, buffers and gossip are what the entities do.FLYPSE keeps two graphs apart, so that either can change without the other:
A placement maps the first onto the second: one device per entity ("mirror", the default), all on one device ("singleton"), or any infrastructure and placement strategy. Entities then run as services on Ray actors, with real code and real messages, and no container or root access.
Delays are modelled, not shaped: FLYPSE waits for the cost of each message, in real time. Messages do not compete for bandwidth, and packet loss and transport protocols are outside the model.
FLYPSE is available on PyPI and requires Python >=3.11,<3.15. Install it with pip:
pip install flypse
Or add it to a uv project:
uv add flypse
We strongly suggest a virtual environment. See the installation guide for environment setup.
Save this as quickstart.py. Three clients estimate the mean of a dataset split among them: each moves the global estimate towards the mean of its own data, and the server averages their estimates, weighted by their number of samples.
import numpy as np
from flypse.data import UniformDataset
from flypse.federation import Entity, FederatedModel, get_star
from flypse.process import FederatedProcess
from flypse.strategies import aggregation, weighting
class MeanModel(FederatedModel):
"""A model whose only parameter is an estimate of the mean."""
def _read_parameters(self):
yield "mean", self.model["mean"]
def _write_parameter(self, name, value):
self.model[name] = value
class Client(Entity):
"""Moves the global estimate towards the mean of its own data."""
def __init__(self, entity_id):
super().__init__(entity_id)
self.model = MeanModel({"mean": np.zeros(1)})
async def step(self):
estimate = self.model.get_parameters()
local_mean = np.mean(list(self.data))
record = self.model.update_version(
estimate + 0.5 * (local_mean - estimate), "local"
)
await self.send("server", record, n_samples=len(self.data))
message = await self.receive()
self.model.load_version(message.record)
class Server(Entity):
"""Averages the estimates of the clients, weighted by their data size."""
def __init__(self, entity_id):
super().__init__(entity_id, with_data=False)
self.model = MeanModel({"mean": np.zeros(1)})
async def step(self):
messages = [await self.receive() for _ in await self.get_neighbors()]
weights = weighting.normalise(weighting.by_samples(messages))
average = aggregation.mean([m.record.parameters for m in messages], weights)
record = self.model.update_version(average, "global")
self.report(round=record.version[0], estimate=average[0])
await self.bcast(record)
federation = get_star(Server("server"), [Client(f"client_{i}") for i in range(3)])
data = UniformDataset(list(range(100)))
process = FederatedProcess(federation, data, step_every_ms=100.0, seed=0)
process.run(seconds=5)
last = process.reported[-1]
print("Rounds:", last["round"])
print("Estimate:", round(last["estimate"], 2))
Run it:
python quickstart.py
After the runtime logs, the last two lines show the result:
Rounds: 380
Estimate: 49.5
The clients hold the integers from 0 to 99, so the estimate converges to their mean, 49.5. The number of rounds depends on the speed of your machine.
Nothing above mentions the network. To put one client behind a slow link, describe the infrastructure and pass it to the same process:
from flypse.system import SystemConfig, get_mirror, get_mirror_strategy
infrastructure = get_mirror(federation, seed=0)
infrastructure.edges["client_0", "server"]["latency"] = 500.0 # ms
system = SystemConfig(infrastructure, get_mirror_strategy(federation))
process = FederatedProcess(federation, data, system, step_every_ms=100.0, seed=0)
The server waits for every client, so one slow uplink holds back the whole federation: the same 5 seconds now fit about 9 rounds.
To adapt this experiment, replace the step of the server with one that has a deadline, connect the entities with get_tree or get_ring, or split the data with DirichletDataset. Continue with your first federation and inspecting results.
Each module of flypse.strategies is one decision of a federated round. Strategies are called by an entity in its step, on plain numpy vectors, so they combine freely.
| Module | Decides | Examples |
|---|---|---|
selection |
whom to engage | uniform, poisson, proportional, clustered |
screening |
which contributions to use | krum, bulyan, dnc, nnm, cosine_bipartition |
weighting |
how much each counts | by_samples, polynomial_staleness, metropolis_hastings, pfedgraph |
aggregation |
how they are combined | mean, trimmed_mean, geometric_median, centered_clipping |
optimization |
how the model moves | SGD, Adam, Yogi, Adagrad, fedexp |
Follow these examples in order, or choose the scenario closest to your experiment:
Runnable source is available in examples/. Run one from the root of the repository, e.g. python -m examples.fedavg.main.
See CONTRIBUTING.md for development setup, tests, documentation checks, and pull request guidelines.
If you use FLYPSE in your work, please cite it with the metadata in CITATION.cff. ECLYPSE, which FLYPSE builds on, is described and assessed in:
Jacopo Massa, Valerio De Caro, Stefano Forti, Patrizio Dazzi, Davide Bacciu, Antonio Brogi ECLYPSE: a Python Framework for Simulation and Emulation of the Cloud-Edge Continuum, Journal of Software: Evolution and Process, 2026.
@article{massa2026eclypse,
title = {{ECLYPSE: A Python Framework for Simulation and Emulation of the Cloud-Edge Continuum}},
author = {Massa, Jacopo and De Caro, Valerio and Forti, Stefano and Dazzi, Patrizio and Bacciu, Davide and Brogi, Antonio},
journal = {Journal of Software: Evolution and Process},
volume = {38},
number = {1},
pages = {e70081},
year = {2026},
month = {1},
doi = {10.1002/smr.70081},
}
FLYPSE is released under the MIT License.
FLYPSE is maintained by Valerio De Caro and Jacopo Massa.
If you want to get in touch with us, drop us an e-mail!
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.