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

unipram

Latest version: v0.1.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: alilian
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

unipram was last scanned on 29 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.1.0

Findings

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

README

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

unipram: write a PRAM algorithm once, check it, run it anywhere

unipram is made to teach parallel algorithms. A PRAM algorithm is written once, in plain Python. The same code then runs on three machines:

Machine What it does
SimulatedPRAM(model, writes) an ideal machine, with as many processors as you need: it checks every memory access against EREW, CREW or CRCW, and counts steps and work
ThreadedPRAM(nb_threads) runs each step on a few threads (Brent's theorem); use free-threaded Python for a real speed-up
GpuPRAM(device) runs each step as a GPU kernel, with unigpu

Documentation (in French, like the error messages and the docstrings).

Install

python -m pip install unipram            # simulator and threads (needs only NumPy)
python -m pip install "unipram[metal]"   # with a GPU: metal, cuda, cuda13 or opencl

Example

from unipram import Model, SimulatedPRAM


def max_step(pe, jump, t):                # one processor, during one step
    if pe + jump < t.size:
        t[pe] = max(t[pe], t[pe + jump])


def maximum(machine, values):             # the program
    t = machine.array(values, name="T")
    jump = 1
    while jump < t.size:
        machine.parallel_for(t.size, max_step, jump, t)
        jump *= 2
    return int(machine.read(t)[0])


machine = SimulatedPRAM(Model.CREW)
print(maximum(machine, [3, 9, 4, 1]), machine.costs())
# 9 2 pas, travail 8, 4 PE au plus

During a step, every read sees the memory as it was at the start of the step, and writes take effect at its end. This algorithm is not EREW, and the simulator says so:

maximum(SimulatedPRAM(Model.EREW), [3, 9, 4, 1])
# AccessViolation: EREW violé au pas 1 : la case T[1] est lue par 2 PE (0, 1)

Only the simulator checks the accesses: debug there first. An instruction must be a plain function, defined with def in a file or a notebook. It takes the number of its processor, then numbers and shared arrays, and writes only to these arrays and its local variables. Every machine refuses anything else.

See every step

from unipram import TraceRecorder, TraceView, wait_for_enter

trace = TraceRecorder()
maximum(SimulatedPRAM(Model.CREW, observers=[trace]), [3, 9, 4, 1])
TraceView(print, pause=wait_for_enter).show(trace.records)

This shows what each processor reads and writes, then the arrays before and after the step. Changed cells are in brackets, and large data are shortened.

Extend it without changing it

  • Another model: Model("ERCW", concurrent_reads=False, concurrent_writes=True).
  • Another rule for concurrent writes: a subclass of WritePolicy, like ArbitraryWrite, ConsistentWrite and MergeWrite(operator).
  • Another measure: a subclass of StepObserver, given to the simulator.
  • Another machine: a subclass of PRAM.

To raise an error when the written values are incompatible, a WritePolicy raises WriteConflict.

Develop

python -m pip install -e ".[test]"
python -m ruff check .
python -m mypy
python -m pytest --cov

python -m pip install -e ".[docs]"
python -m mkdocs serve

License

MIT

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 unipram

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229