Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

flypse

Latest version: v0.2.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: org:eclypse
26 Stars
0 Forks
2 Versions
90 Downloads
Python Repo language

Scan summary

flypse was last scanned on 24 Nov 2026 at version 0.2.0. Risk score 5 of 100 (low). No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 24 Nov 2026.
  • Findings: 1 rule fired in version 0.2.0 (1 low). The score describes this version only.
  • Downloads: 90 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 24 Nov 2026 1 rule fired
0.1.0 5 Nov 2026 No rules fired

Rules fired in 0.2.0: 1

Findings

1 Low

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.

Maintainer or owner changed

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.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

PyPI - Version PyPI - Python Version pre-commit

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.

Key features

  • Write the protocol, not a plugin: a participant is an entity with a 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.
  • Connect any topology: build federations as stars, trees, rings or custom graphs, and let entities ask who their parent, children and neighbours are.
  • Pay for communication: each message really takes as long as its size costs over the latency, bandwidth and processing time of every hop of its route.
  • Model heterogeneity: split data with label or quantity skew, and change devices and links while the federation runs.
  • Bring any model: models of any framework are exchanged as flat numpy vectors, with versions that tell where each one comes from.
  • Compose strategies: select, screen, weigh, aggregate and optimise with functions and small classes on those vectors, from federated averaging to Byzantine-robust and personalised aggregation.
  • Inspect results: entities report and evaluate whatever they need, and a seed makes the data, the system and the entities reproducible.

Federation and infrastructure

FLYPSE keeps two graphs apart, so that either can change without the other:

  • The federation says who takes part and who talks to whom. Its nodes are entities, and its edges are their connections.
  • The infrastructure says where they run. Its nodes are devices, and its edges are links with a latency and a bandwidth.

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.

Installation

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.

Quickstart

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.

Strategies

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

Examples

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.

Documentation

  • Getting started: first federation, infrastructure, and results.
  • Concepts: federations, entities, messages, models, data, systems, and the process.
  • Strategies: the decisions of a round, and how to compose an algorithm.
  • Building on ECLYPSE: infrastructures, placement and policies from ECLYPSE.
  • API reference: public modules and interfaces.
  • Changelog: release history.

Contributing

See CONTRIBUTING.md for development setup, tests, documentation checks, and pull request guidelines.

Publication

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},
}

License

FLYPSE is released under the MIT License.

Maintainers

FLYPSE is maintained by Valerio De Caro and Jacopo Massa.

Contact Us

If you want to get in touch with us, drop us an e-mail!

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases flypse

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229