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

pypulseqpp

Latest version: v0.0.71

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: mcencini
2 Stars
0 Forks
33 Versions
21.5K Downloads
Python Repo language

Scan summary

pypulseqpp was last scanned on 23 Nov 2026 at version 0.0.71. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 33 versions; the latest 3 were published within 7 days (17–23 Nov 2026).
  • Findings: No rules fired in version 0.0.71.
  • Downloads: 21,470 downloads.

Versions

33 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.71 LATEST 23 Nov 2026 No rules fired
0.0.70 22 Nov 2026 No rules fired
0.0.69 17 Nov 2026 No rules fired
0.0.68 13 Nov 2026 Not shown
0.0.67 12 Nov 2026 Not shown

No rules fired in 0.0.71

Findings

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

README

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

Tests PyPI Python Docs: stable License: MIT

pypulseqpp is a fast drop-in replacement for PyPulseq, written in Python with a C++ backend. You write MR pulse sequences exactly as you write them in PyPulseq, and get back a sequence that is fast to build, check and write, however long it is. Change one line of your script,

import pypulseqpp as pp  # in place of: import pypulseq as pp

and it runs: the event factories, Opts and the Sequence methods keep PyPulseq's names, arguments and units. Underneath, the sequence is stored by a C++ core, so a scan of a million blocks is built, deduplicated and written in seconds.

You write the sequence; pypulseqpp does the rest. It stores and deduplicates your events, writes Pulseq text and binary files that any Pulseq interpreter plays, and checks the result against your scanner: timing, gradient amplitude and slew rate, peripheral nerve stimulation, mechanical resonances, acoustic noise and SAR.

How it works

A Pulseq sequence is a list of blocks played back to back, and each block holds at most one event per channel: an RF pulse, a gradient on each axis, an ADC window, a delay. You build it in five steps:

  1. Describe your scanner: field strength, gradient amplitude and slew-rate limits, raster times and dead times. This is the system object, a pp.Opts.
  2. Design the events with the factories (pp.make_sinc_pulse, pp.make_trapezoid, pp.make_adc...). Each one is solved against system, so a gradient you ask for by its area comes back as the shortest trapezoid your hardware plays.
  3. Add the events to the sequence block by block, in a loop over the lines of k-space.
  4. Check it. seq.check_timing() checks every block against the rasters and dead times; the gradient, PNS, mechanical-resonance and SAR checks look at the whole scan.
  5. Write the .seq file, and play it on the scanner through your vendor's Pulseq interpreter.

Here is a 2D gradient echo, written the PyPulseq way:

import numpy as np

import pypulseqpp as pp

system = pp.Opts(max_grad=32, grad_unit="mT/m", max_slew=130, slew_unit="T/m/s")
fov, n = 256e-3, 64

rf, gz, gz_reph = pp.make_sinc_pulse(
    flip_angle=np.deg2rad(15),
    duration=2e-3,
    slice_thickness=5e-3,
    time_bw_product=4,
    system=system,
    return_gz=True,
)
gx = pp.make_trapezoid("x", flat_area=n / fov, flat_time=3.2e-3, system=system)
adc = pp.make_adc(n, duration=gx.flat_time, delay=gx.rise_time, system=system)
gx_pre = pp.make_trapezoid("x", area=-gx.area / 2, duration=1e-3, system=system)

seq = pp.Sequence(system)
for line in range(n):
    gy_pre = pp.make_trapezoid(
        "y", area=(line - n / 2) / fov, duration=1e-3, system=system
    )
    seq.add_block(rf, gz)
    seq.add_block(gx_pre, gy_pre, gz_reph)
    seq.add_block(gx, adc)
    seq.add_block(pp.make_delay(10e-3))

ok, errors = seq.check_timing()
seq.write("gre.seq")

Sequences as functions

A script designs one protocol. Put the same code in a function of system and keyword arguments, and it designs any protocol you ask for:

def gre(system, *, fov=256e-3, n=64, flip_angle_deg=15.0) -> pp.Sequence:
    ...
    return seq
  • The keyword arguments are your protocol. Document each in a NumPy-style Parameters section, with its unit, and pp.cli.run(gre) turns them into a command line.
  • Return the sequence, or a list of sequences when the scan has prescans; the main sequence goes last.
  • This is the shape pulserver expects, so the same function becomes a sequence the operator edits in the scanner UI.

pypulseqpp ships 28 sequences written this way (gradient echo, spin echo, FSE, MPRAGE, bSSFP, EPI, ZTE, with Cartesian, radial, spiral and PROPELLER readouts), each one a module you can call or run from the command line:

from pypulseqpp import sequences

seq = sequences.gre2D_sequence(n_x=64, n_y=64)
python -m pypulseqpp.sequences.sequence.gre2D_sequence --help

They are built from sequence modules, ready-made excitations, preparations and readouts that you can reuse in your own functions.

The checks compute estimates. Passing them does not establish scanner or patient safety.

Installation

pip install pypulseqpp

Wheels are published for Linux x86-64, macOS (Apple silicon and x86-64) and Windows AMD64, Python 3.10 to 3.14.

Learn more

How to cite

pypulseqpp has no publication of its own. If you use it, please cite Pulseq and PyPulseq:

@article{layton2017pulseq,
  title   = {Pulseq: a rapid and hardware-independent pulse sequence prototyping framework},
  author  = {Layton, Kelvin J and Kroboth, Stefan and Jia, Feng and Littin, Sebastian
             and Yu, Huijun and Leupold, Jochen and Nielsen, Jon-Fredrik
             and St{\"o}cker, Tony and Zaitsev, Maxim},
  journal = {Magnetic Resonance in Medicine},
  volume  = {77},
  number  = {4},
  pages   = {1544--1552},
  year    = {2017},
  doi     = {10.1002/mrm.26235}
}

@article{ravi2019pypulseq,
  title   = {PyPulseq: A Python Package for MRI Pulse Sequence Design},
  author  = {Ravi, Keerthi Sravan and Geethanath, Sairam and Vaughan, John Thomas},
  journal = {Journal of Open Source Software},
  volume  = {4},
  number  = {42},
  pages   = {1725},
  year    = {2019},
  doi     = {10.21105/joss.01725}
}

License

MIT, except bundled or vendored third-party components, which keep their own licences. See License and third-party notices.

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 pypulseqpp

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

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

PolinRider Returns
Research

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

Frame 2085668439 (1)
Group 1261154229