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

rulfo

Latest version: v0.1.11

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: jorgeecardona
5 Versions

Scan summary

rulfo was last scanned on 27 Nov 2026 at version 0.1.11. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions, all published on 27 Nov 2026.
  • Findings: No rules fired in version 0.1.11.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.11 LATEST 27 Nov 2026 No rules fired
0.1.10 27 Nov 2026 No rules fired
0.1.9 27 Nov 2026 No rules fired
0.1.8 27 Nov 2026 Not shown
0.1.7 27 Nov 2026 Not shown

No rules fired in 0.1.11

Findings

Findings for v0.1.11. 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 score describes 0.1.11; other versions have their own rules, not their own score.

README

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


Overview

rulfo is a Python package on a C core. Two processes share one connection, and each side can send requests and answer them. A request has a key, a body of bytes and a deadline. It gets zero, one or many replies, in order, and then one outcome: completed, busy, expired or unroutable.

Use it between two services, or between a service and its workers, when the caller must know what happened to each request: it ran, it did not run, or that is unknown.

Status: early. Only the request operation is built, and the API can change.

Install

pip install rulfo      # or: uv add rulfo

Linux and macOS with CPython 3.12 or later, tested on 3.12 to 3.15. Free-threaded Python is not supported. There are wheels for Linux x86_64 and aarch64, and for macOS 11 or later (Apple silicon and Intel). Other machines build the package from source, with a C compiler and the Python headers (python3-dev for a Debian system Python).

Quickstart

One process here plays both sides: a server with two handlers and a client that sends three requests over TCP.

import asyncio

import rulfo


async def greet(request: rulfo.Request) -> bytes:
    return b"hello " + request.body  # one reply, then the end


async def count(request: rulfo.Request) -> None:
    for number in range(int(request.body)):
        await request.reply(f"item {number}".encode())  # many replies, then the end


async def main() -> None:
    # One Peer for each remote party. This server has one client.
    server = rulfo.Peer(handlers={"greet": greet, "count": count})

    async def accept(reader: asyncio.StreamReader, writer: asyncio.StreamWriter) -> None:
        await server.serve(rulfo.StreamTransport(reader, writer))

    listener = await asyncio.start_server(accept, "127.0.0.1", 0)
    port = listener.sockets[0].getsockname()[1]

    client = rulfo.Peer()
    reader, writer = await asyncio.open_connection("127.0.0.1", port)
    connection = asyncio.create_task(client.serve(rulfo.StreamTransport(reader, writer)))
    await client.wait_connected()

    greeting = await client.request("greet", b"world", timeout=5)
    print(greeting.outcome.value, greeting.one())

    numbers = await client.request("count", b"3", timeout=5)
    print(numbers.outcome.value, [reply.body for reply in numbers.replies])

    missing = await client.request("unknown", timeout=5)
    print(missing.outcome.value)

    await client.aclose()
    await server.aclose()
    await connection
    listener.close()
    await listener.wait_closed()


asyncio.run(main())

Output:

completed b'hello world'
completed [b'item 0', b'item 1', b'item 2']
unroutable

Outcomes

request returns one of four outcomes. timeout has no default: every request has a deadline.

Outcome What happened Did the handler run
completed The handler ran and every reply arrived. A reply can be an error reply. Yes
busy The other side refused the request. No
unroutable No handler for the key, or no connection. No
expired The deadline passed first. Unknown

A busy or unroutable request is safe to send as a new request. An expired one may have run. The rules are in Operations.

Why rulfo

HTTP: a call that times out, or whose connection drops, does not say whether the handler ran. A retry can run it twice unless you add your own request ids. Many replies need a stream, and resuming a stream that dropped is your code.

ZeroMQ: it gives you sockets and patterns. Its guide builds reliable request and reply as patterns in your own program: retries, and detecting a request that arrives twice.

rulfo has these rules built in, for request and reply only:

  • The requester sends an open request again after a reconnect, with the same id. The replier runs one id at most once while its process lives.
  • The end of a request has the number of replies. completed means that all of them arrived.
  • A request that the replier refuses ends busy. It did not run.

Use something else when you need publish and subscribe, work queues, a broker, discovery, a schema, or a language other than Python. rulfo has none of them.

Key features

  • Four outcomes: completed, busy, expired, unroutable. Two of them say it did not run.
  • A deadline on every request, also when the clocks of the two processes differ.
  • Zero, one or many replies, in order.
  • A request stays open across a reconnect. Replies lost in the reconnect are sent again, up to a memory limit.
  • Limits with a stated result: a replier at max_running refuses with busy.
  • Many clients: rulfo.Server keeps one Peer for each name, and your program accepts the connections.
  • A request that a second process can take over: request_copy sends an id and a deadline that you stored.
  • Any ordered byte stream: TCP and unix sockets with rulfo.StreamTransport, and a memory transport for tests. Two WebSocket adapters to copy are in the Python guide.
  • rulfo.PeerState: the same logic without I/O and without a clock, for another event loop.
  • The rules are checked with a musil model. A test replays 12000 random runs of that model on the library.

Limits

  • Only request is built. The newest value of a key and a check that the other side is gone are planned, and a work queue waits for a program that needs it: see Operations.
  • A Peer serves one remote party over one connection. rulfo.Server keeps one for each name.
  • rulfo does not encrypt or authenticate. Use a transport that does.
  • The body is bytes. rulfo has no serialization and no schema.
  • A replier that restarts forgets the ids it ran. A request that is still open runs again, and the handler sees request.repeat as true.
  • request keeps all replies in memory until the outcome.
  • Cancelling the task that awaits request does not stop the handler on the other side.
  • The model covers small cases only. Model lists what it proves and what it does not.

Links

Contributing

The build needs a C compiler, and the C tests need cmake. The toolchain, the checks and the release process are in CONTRIBUTING.md.

License

MIT © Jorge Cardona. See LICENSE.

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 rulfo

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229