Skip to main content

CrashMetrics

Python tools for automotive crash engineering calculations.

Development status: Alpha — not validated for regulatory compliance.

Features

  • Head Injury Criterion (HIC), for example HIC15 and HIC36, via crashmetrics.pedestrian.calculate_hic
  • Euro NCAP headform grid scoring in crashmetrics.pedestrian: HIC colour bands, verification tolerance, correction factor, blue, default red and A-pillar points, and the head score for the 2023 and 2026 protocols (headform_score)
  • Euro NCAP legform scoring in crashmetrics.pedestrian: aPLI femur and knee/tibia (apli_score), upper legform pelvis (upper_legform_score) with the impact energy check (upper_legform_energy), sliding scales, leg colours and the total passive VRU score (vru_score)
  • Signal processing in crashmetrics.signals: SAE J211 CFC filtering (cfc_filter), resultants (resultant), unit conversion (to_g, to_seconds) and uniform resampling (resample_uniform)
  • Acceleration metrics in crashmetrics.acceleration: peak value and time (peak) and the 3 ms clip, cumulative or continuous (clip_3ms)
  • Vehicle pulse metrics in crashmetrics.pulse: Occupant Load Criterion (olc) and a pulse summary with delta-V, time to zero velocity, maximum displacement, rebound and deceleration (pulse_summary)
  • Lower-extremity criteria in crashmetrics.lower_extremity: Tibia Index (tibia_index) and femur compressive force against a force–time limit (femur_force_criterion)
  • Generic exceedance helpers in crashmetrics.acceleration: exceedance_level and exceedance_duration
  • Simulation energy checks for any load case in crashmetrics.energy_check (energy ratio, hourglass, negative contact, damping, added mass, eroded energy, per-part hourglass and negative internal energy), LS-DYNA glstat/matsum readers in crashmetrics.lsdyna, and the crashmetrics-energy command
  • LS-DYNA d3hsp reader (read_d3hsp): run information, termination status, warnings and errors, model size and settings, keyword counts, part masses, smallest time steps, timing and memory
  • Energy and force–displacement metrics in crashmetrics.energy: velocity and displacement from acceleration (integrate_acceleration), cumulative absorbed energy (absorbed_energy), crush summary with peak and mean force, crush force efficiency and specific energy absorption (crush_metrics), and kinetic_energy

Installation

python -m pip install crashmetrics

To get the latest unreleased changes, install from GitHub instead:

python -m pip install "git+https://github.com/vsk1729/crashmetrics.git"

Requires Python 3.10 or later and NumPy 1.24 or later.

Example

from crashmetrics.pedestrian import calculate_hic

time = [0.0, 0.005, 0.010, 0.015]
acceleration = [10.0, 10.0, 10.0, 10.0]

result = calculate_hic(
    time,
    acceleration,
    window_ms=15.0,
)

print(result.value)
print(result.duration_ms)

From LS-DYNA output to HIC15

For a headform model in the mm-ms-kg unit system, with axis accelerations ax, ay, az in mm/ms² and time_ms in ms (uniformly sampled):

from crashmetrics.pedestrian import calculate_hic
from crashmetrics.signals import cfc_filter, resultant, to_g, to_seconds

t = to_seconds(time_ms, "ms")

# Filter each component with CFC 1000, then form the resultant.
components_g = [
    cfc_filter(t, to_g(a, "mm/ms^2"), cfc=1000) for a in (ax, ay, az)
]
a_res = resultant(*components_g)

hic15 = calculate_hic(t, a_res, window_ms=15.0)
print(f"HIC15 = {hic15.value:.0f} over {hic15.duration_ms:.2f} ms")

The same filtered resultant gives the peak and the 3 ms clip:

from crashmetrics.acceleration import clip_3ms, peak

a_peak = peak(t, a_res)
print(f"Peak = {a_peak.value:.1f} g at {a_peak.time * 1000:.2f} ms")
print(f"3 ms clip = {clip_3ms(t, a_res):.1f} g")

If the output interval is not uniform, use resample_uniform(t, a, sample_rate) before filtering.

Simulation energy checks (any load case)

Check the energy balance of LS-DYNA runs from the command line. Each run is a directory with glstat (and optionally matsum), or a glstat file:

crashmetrics-energy run01 run02 run03
crashmetrics-energy run01 --hourglass 0.05 --added-mass 2 --ratio-min 0.9 --ratio-max 1.1
== run01
Energy check: FAILED (1 check)
Reference energy: 100000

Check                   Value    Limit         Status  Where
----------------------  -------  ------------  ------  -------
energy_ratio            1        0.95 to 1.05  PASS    t=0
hourglass               0.03093  <= 0.1        PASS    t=0.1
negative_contact        0        <= 0.05       PASS
damping                 0        <= 0.05       PASS
added_mass              2        <= 5 %        PASS    t=0.1
part_hourglass          0.14     <= 0.1        FAIL    part 2
part_negative_internal  0        <= 0.01       PASS

- failed parts: 2

The exit code is 0 if every run passes, 1 if a check fails and 2 if a run could not be read, so it fits batch scripts and job queues. Use off to switch a limit off, for example --hourglass off.

From Python:

from crashmetrics.energy_check import EnergyLimits, check_energies
from crashmetrics.lsdyna import check_run, read_glstat, read_matsum

report = check_run("run01", limits=EnergyLimits(hourglass=0.05))
print(report.summary())
if not report.passed:
    for check in report.failures:
        print(check.name, check.value, check.part)

# Or from the files / your own arrays:
report = check_energies(read_glstat("run01/glstat"), read_matsum("run01/matsum"))
Check Value Default limit
energy_ratio total / (initial total + external work), min and max over the run 0.95 to 1.05
hourglass peak hourglass / peak internal energy ≤ 0.10
negative_contact most negative contact (sliding) energy / reference energy ≤ 0.05
damping peak system damping energy / reference energy ≤ 0.05
added_mass peak added mass, % of model mass ≤ 5 %
eroded_energy peak eroded energy / reference energy reported only
part_hourglass per part: peak hourglass / peak internal energy ≤ 0.10
part_negative_internal per part: most negative / peak internal energy ≤ 0.01
  • The reference energy is the largest initial total energy plus external work, so impacts (initial kinetic energy) and prescribed motion or quasi-static cases (external work) are both handled.
  • Part checks cover parts with at least 1 % of the model's peak internal energy (part_min_internal_share); every part's values are in report.parts.
  • Hourglass, damping and rigidwall energies are only in the output when HGEN, RYLEN and RWEN are 2 in *CONTROL_ENERGY; missing channels are reported as skipped, with a hint.
  • The 10 % hourglass limits follow LS-DYNA's rule of thumb; the other defaults are common rules of thumb. Set your own guideline values in EnergyLimits or on the command line.
  • The readers find values by label (glstat) and key= (matsum), so the line order and optional channels of different LS-DYNA versions do not matter. Part names come from the matsum legend and per-part added mass from +mass=; the summary lists the parts with the most added mass.
  • Verified on real LS-DYNA R14.1 and R16.1 output: every parsed value matches the files, and the total-energy and energy-ratio formulas reproduce LS-DYNA's own values to the file's 6-digit precision. For binout output, read the variables with a binout reader (such as lasso-python) and pass them to GlobalEnergies.from_mapping and PartEnergies.from_mapping, which accept glstat and binout names.

LS-DYNA d3hsp reader

from crashmetrics.lsdyna import read_d3hsp

run = read_d3hsp("run01/d3hsp")
print(run.summary())
Termination: NORMAL (10/23/26 14:41:58)
LS-DYNA smp s R14, revision R14.1.1-4-gaf1eb871e8, WINDOWS X64 SSE2
Input: ball_drop.k
Model: nodes 988, solid_elements 8, shell_elements 900, beam_elements 0, ...
Total mass: 0.000134069 (2 parts, 1 rigid)
Smallest time step: 8.409e-07 (shell 100099, part 1)
Problem time 0.0030004 in 3568 cycles
Elapsed: 1 s using 4 SMP threads, CPU 2 s
Warnings: 0, errors: 0
Attribute Content
termination, termination_time "normal", "error" or "incomplete" (no banner: still running or killed)
version, parallel, precision, release, revision, platform, ncpu, command_line, input_file, run_date Run information
messages, warnings, errors, message_counts() *** Warning 41123 (SOL+1123) messages with their text
model Nodes, elements by type, materials, contacts
parameters Every echoed label..... value setting, e.g. parameters["time_step_scale_factor"]
keyword_counts Keywords in the deck, e.g. keyword_counts["*CONTACT_option"]
part_masses, rigid_parts, total_mass Mass summary
smallest_timesteps, min_timestep The 100 smallest time steps table
problem_time, problem_cycles, cpu_seconds, elapsed_seconds, workers, worker_type, timing, memory Timing breakdown and memory

The reader was built and tested on real SMP d3hsp files from LS-DYNA R14.1 and R16.1. It accepts MPP runs (mpp in the version line, MPP procs in the elapsed-time line), but has not yet been checked on real MPP output; please report any MPP file it misreads.

Energy and crush metrics

For a crash box or rail with force in kN and crush in mm (energy in J):

from crashmetrics.energy import absorbed_energy, crush_metrics

energy_curve = absorbed_energy(crush_mm, force_kN)  # J at each sample

result = crush_metrics(crush_mm, force_kN, mass=1.2, max_displacement=150.0)
print(f"Energy {result.energy:.0f} J, mean force {result.mean_force:.1f} kN")
print(f"Peak {result.peak_force:.1f} kN at {result.peak_force_displacement:.1f} mm")
print(f"CFE {result.crush_force_efficiency:.2f}, SEA {result.specific_energy_absorption:.0f} J/kg")

max_displacement evaluates the metrics over a fixed stroke. Mean force is net energy divided by crush distance and CFE is mean force divided by peak force, so always report the stroke with them.

From a vehicle or impactor acceleration pulse (mm/ms² and ms give m/s and mm):

from crashmetrics.energy import integrate_acceleration, kinetic_energy

velocity, displacement = integrate_acceleration(time_ms, accel_mm_ms2, v0=15.6)
print(f"Dynamic crush {displacement.max():.0f} mm")
print(f"Initial kinetic energy {kinetic_energy(1200.0, 15.6) / 1000:.1f} kJ")

The energy functions do not convert units; use a consistent system. Integration amplifies sensor offset and drift, so check the input pulse before integrating test data.

Euro NCAP headform grid score

Give every grid point its predicted HIC15 (for example from CAE) or a colour, mark special points with a label, and add the test results:

from crashmetrics.pedestrian import headform_score

grid = {
    (9, 2): 541.0,          # predicted HIC15 -> green
    (1, -1): "yellow",      # or a predicted colour
    (12, -6): "red",
    (16, 8): "a_pillar",
    (18, 0): "default_red",
    (11, 1): "blue",
    # ... every grid point
}

result = headform_score(
    grid,
    verification={(9, 2): 558.9, (1, -1): 813.8},   # 40 km/h tests, HIC15
    blue_results={(11, 1): 1200.0},                  # per blue point
    a_pillar_results={(16, 8): [(20.0, 950.0)]},     # (km/h, HIC15), 2026 only
    protocol="euroncap_2026",
)
print(f"Head score {result.score:.3f} / {result.max_score:g} ({result.percentage:.1f} %)")
print(f"Correction factor {result.correction.factor:.3f}, accepted: {result.correction.accepted}")

Without verification, no correction is applied, which gives the predicted score from CAE results alone.

The rules follow the Euro NCAP protocols:

"euroncap_2026" "euroncap_2023"
Protocol Crash Protection – VRU Impacts v1.1 Assessment Protocol – VRU v11.4
Head maximum 10 points 18 points
Colour bands (HIC15) green < 650 ≤ yellow < 1000 ≤ orange < 1350 ≤ brown < 1700 ≤ red same
Points per grid point 1, 0.75, 0.5, 0.25, 0 same
Correction factor tested ÷ predicted points of the verification tests, rounded to 3 decimals, accepted 0.850–1.150 same
Verification colour predicted colour kept if HIC15 is within its 10 % tolerance range, else colour from the measured HIC15 same
Blue points scored from their tests, not corrected same
A-pillar points reward for the highest passing speed: 20 km/h HIC15 < 1000 → 1, 30 km/h < 1700 → 2, 40 km/h < 1700 → 3 default red

Score = min(corrected predicted points + blue points + A-pillar points, number of grid points) / number of grid points × head maximum. The tests reproduce the worked examples of both protocols (2023: 10.554 of 18 points; 2026: correction factor 1.120).

How the A-pillar rewards add to the grid total is this package's reading of the 2026 protocol (added to the grid score, maximum still the number of grid points); confirm it before relying on it.

Euro NCAP legform scoring and total VRU score

Units: force in N, bending moment in N m, MCL elongation in mm. Give every grid point (Euro NCAP names such as "L+3" or lateral indices) and the results of the tested points; untested points are filled automatically:

from crashmetrics.pedestrian import apli_score, upper_legform_score, vru_score

# aPLI: (femur moment, tibia moment, MCL elongation) per tested point.
# Peaks, several gauge peaks or time histories; the worst value is used.
grid_l = ["L+5", "L+4", "L+3", "L+2", "L+1", "L0", "L-1", "L-2", "L-3", "L-4", "L-5"]
apli = apli_score(grid_l, {
    "L+1": (400.0, 257.0, 20.0),
    "L+3": (438.0, 300.0, 29.0),
    "L+5": (385.0, 225.0, 36.0),
})
print(f"Femur {apli.femur.points:.3f} / {apli.femur.max_points}")
print(f"Knee/tibia {apli.knee_tibia.points:.3f} / {apli.knee_tibia.max_points}")

# Upper legform: sum of forces (N) per tested point.
grid_u = ["U+4", "U+3", "U+2", "U+1", "U0", "U-1", "U-2", "U-3", "U-4"]
pelvis = upper_legform_score(grid_u, {"U0": 5260.0, "U-2": 6800.0, "U-4": 4890.0})
print(f"Pelvis {pelvis.points:.3f} / {pelvis.max_points}")

total = vru_score(head_result, pelvis, apli.femur, apli.knee_tibia)
print(f"VRU crash protection {total.total:.3f} / {total.max_total:g}")

Each result keeps the score, colour and source of every grid point (scores, colours, sources), for example "worst adjacent 'L+3'".

Higher limit (1 point) Lower limit (0 points)
Upper legform sum of forces 5.0 kN 6.0 kN
aPLI femur bending moment 390 N m 440 N m
aPLI tibia bending moment 275 N m 320 N m
aPLI MCL elongation 27 mm 32 mm
  • Scores are linear between the limits and rounded to 3 decimals, as in the protocols' worked examples (round_to=None to keep them exact).
  • aPLI femur score: worst femur bending moment. Knee/tibia score: the lower of the tibia and MCL scores.
  • Untested points take the result of their mirror point (unless declared in asymmetric_points), else the worst result of the adjacent points, separately for each body region.
  • Region points = sum of grid-point scores / number of grid points × region maximum: pelvis 2.5, femur 2.5, knee/tibia 5 in "euroncap_2026" (total VRU 20 with the 10-point head); 4.5, 4.5 and 9 in "euroncap_2023" (total 36 with the 18-point head).
  • Leg colours: green 1.000, yellow ≥ 0.750, orange ≥ 0.500, brown ≥ 0.001, red 0.000 (leg_colour).

The upper legform impact energy decides whether a test is needed:

from crashmetrics.pedestrian import upper_legform_alpha, upper_legform_energy

alpha = upper_legform_alpha(ibrl=(x_ibrl, z_ibrl), wad930=(x_930, z_930))  # x rearward
e = upper_legform_energy(alpha)
print(f"alpha {alpha:.1f} deg, En {e.energy:.0f} J, vt {e.test_velocity:.2f} m/s, "
      f"test required: {e.test_required}")

En = 0.5 × 7.4 kg × (11.11 m/s × cos(1.2α))², vt = √(2En / 10.5 kg), and no test is required below 160 J. Passing energies (J per grid point) to upper_legform_score scores untested points below 160 J as not_required_score (default 1.0) and only shares a symmetric or adjacent result when the energies differ by at most 10 %.

The tests reproduce the protocols' worked examples: 2023 upper legform 1.370 / 4.5, femur 1.898 / 4.5, knee/tibia 3.908 / 9; 2026 upper legform 0.761 / 2.5.

Occupant Load Criterion and pulse summary

Inputs are SI (s, m/s², m/s). The acceleration is the vehicle's longitudinal acceleration in its direction of travel, so it is negative while decelerating, and the record starts at T0:

from crashmetrics.pulse import olc, pulse_summary
from crashmetrics.signals import cfc_filter

a = cfc_filter(t, accel_x_m_s2, cfc=180)   # Euro NCAP uses CFC 180 for OLC
result = olc(t, a, v0=50 / 3.6)
print(f"OLC = {result.value:.1f} g (t1 = {result.t1*1000:.1f} ms, t2 = {result.t2*1000:.1f} ms)")

summary = pulse_summary(t, a, v0=50 / 3.6)
print(f"delta-V {summary.delta_v:.2f} m/s, max displacement {summary.max_displacement*1000:.0f} mm")

olc follows the Euro NCAP definition (Data Acquisition and Injury Calculation protocol): a virtual occupant moves 65 mm in free flight, then decelerates uniformly over a further 235 mm until it matches the vehicle velocity. The OLC is that deceleration, expressed in g using 9.81 m/s² as Euro NCAP does (change with gravity). The tests check it against the closed-form solution for constant deceleration and against an independent numerical formulation.

Tibia Index and femur force

Forces in N, moments in N m, compression negative by default (Euro NCAP convention):

from crashmetrics.lower_extremity import femur_force_criterion, tibia_index

ti = tibia_index(t, mx_upper, my_upper, fz_upper, dummy="hybrid3_50")
print(f"TI upper = {ti.value:.2f}")

femur = femur_force_criterion(t, fz_femur, limit="r94_hybrid3_50")
print(f"Peak {femur.peak_compression/1000:.2f} kN, utilisation {femur.utilisation:.2f}, passed {femur.passed}")
  • tibia_index: TI = |MR/MRc| + |Fz/Fzc| while the tibia is in compression, zero otherwise, with MR = sqrt(Mx² + My²). Critical values for Hybrid III 50th, 5th, 95th and THOR are taken from Euro NCAP CP 005 (TIBIA_INDEX_CRITICAL_VALUES); you can also pass your own.
  • femur_force_criterion: builds the exceedance curve (force reached or exceeded versus duration) and compares it with a force–time limit. "r94_hybrid3_50" is the UN-ECE R94 limit of 9.07 kN at 0 ms falling to 7.58 kN at 10 ms and longer; you can pass your own points. The default mode="cumulative" adds up separate intervals; use mode="continuous" if your regulation requires a single interval.

Check all constants against the protocol version you assess to.

3 ms clip

clip_3ms returns the highest level that the signal reaches or exceeds for 3 ms (change with duration_ms):

  • mode="cumulative" (default): 3 ms in total, possibly over several separate intervals. Computed exactly for the linearly interpolated signal.
  • mode="continuous": 3 ms in a single interval. Never higher than the cumulative value.

Check which definition your assessment protocol requires.

CFC filter

cfc_filter implements the SAE J211-1 Appendix C digital filter: a 2-pole Butterworth low-pass run forward and backward, giving a phaseless 4-pole response. The tests check the gain against the J211 corridor points for CFC 60, 180, 600 and 1000 (flat to the CFC frequency, about −3 dB at 1.65 × CFC). The sample rate must exceed 2 × 2.0775 × CFC (about 4.2 kHz for CFC 1000).

Each end of the signal is padded by odd reflection (pad_ms, default 10 ms) to reduce start-up transients. This padding choice is part of this package, not of J211; confirm it matches your protocol.

HIC units and numerical method

  • Time input: seconds
  • Acceleration input: non-negative resultant magnitude in g
  • HIC window: milliseconds
  • Numerical integration: trapezoidal rule on a refined, linearly interpolated time grid

Results depend on the selected grid resolution and the numerical method.

If the record is shorter than window_ms, calculate_hic issues a UserWarning and evaluates HIC over the available duration. Make sure the record contains the whole impact.

Development

Clone the repository and install it in editable mode with the development tools (pytest, ruff, mypy, build):

git clone https://github.com/vsk1729/crashmetrics.git
cd crashmetrics
python -m pip install -e ".[dev]"

Run the same checks as CI before opening a pull request:

python -m pytest      # tests
ruff check .          # lint
mypy                  # type check

examples/hic_convergence.py shows how the HIC result changes with resolution_ms; run it after changing the HIC algorithm.

The version is set only in src/crashmetrics/__init__.py. Record user-visible changes in CHANGELOG.md.

Releasing

Releases are published by .github/workflows/release.yml using PyPI Trusted Publishing, so no API tokens are stored in the repository.

  1. Bump __version__ and add the CHANGELOG entry; merge to main.
  2. Optional dry run: run the Release workflow manually from the Actions tab to publish to TestPyPI.
  3. Publish a GitHub release with tag v<version>, for example v0.3.0. The workflow checks the tag matches __version__, builds and checks the sdist and wheel, and publishes to PyPI.

A version can be uploaded to PyPI only once; fix mistakes with a new version.

Engineering disclaimer

This software is an engineering calculation aid. Users must independently validate numerical results and confirm that input processing, filtering, sampling, and calculation methods match the applicable assessment protocol. The software does not certify regulatory compliance.

Trademarks and affiliation

crashmetrics is an independent open-source project. It is not affiliated with, endorsed by or sponsored by Ansys, Euro NCAP, UNECE or any other organisation whose software, file formats, protocols or regulations it refers to. LS-DYNA, Ansys and Euro NCAP are trademarks or registered trademarks of their respective owners and are used here only to describe compatibility.

The LS-DYNA readers were written from the text layout of output files; no LS-DYNA code or documentation is included.

License

MIT. See the LICENSE file.

Metadata

Release files for crashmetrics 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crashmetrics 0.6.0
File Size Uploaded Provenance Actions
crashmetrics-0.6.0.tar.gz 91.8 kB With provenance Details for crashmetrics-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crashmetrics 0.6.0
File Interpreter ABI Platform Actions
crashmetrics-0.6.0-py3-none-any.whl Python 3 none any Details for crashmetrics-0.6.0-py3-none-any.whl

Total release size: 153.4 kB

Release files / crashmetrics-0.6.0.tar.gz

Download URL crashmetrics-0.6.0.tar.gz
Size 91.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b17cfeb73164389b51cc7ef239096ff14fa6ca7c9f52a692e2fde59cc25c865c
BLAKE2b-256 checksum
How to use checksums
f875242c4ca7cabbc40675f31109b8214c26527698461af2c62a4ba5bca3a93f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / crashmetrics-0.6.0-py3-none-any.whl

Download URL crashmetrics-0.6.0-py3-none-any.whl
Size 61.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3132b0e61edbf95ae2e18e0870c0d919244c8b0aa4486f46fe1319c0fad4a0eb
BLAKE2b-256 checksum
How to use checksums
5c4629cbbd8c0890f3411bf08fbda63dd8a7154fe73fcc5d737a2991a0b4d911
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for crashmetrics 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for crashmetrics-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page