Scan your whole stack
Are you using unipram?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0
unipram was last scanned on 29 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0 LATEST | 29 Nov 2026 | No rules fired |
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.
The publisher’s own README, as collected from the registry.
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).
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
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.
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.
Model("ERCW", concurrent_reads=False, concurrent_writes=True).WritePolicy, like
ArbitraryWrite, ConsistentWrite and MergeWrite(operator).StepObserver, given to the simulator.PRAM.To raise an error when the written values are incompatible, a WritePolicy
raises WriteConflict.
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
MIT
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.