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

toml-rs

Latest version: v0.4.4

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: chiri
35 Stars
1 Forks
2 Versions
14.6K Downloads
Rust Repo language

Scan summary

toml-rs was last scanned on 23 Nov 2026 at version 0.4.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 23 Nov 2026.
  • Findings: No rules fired in version 0.4.4.
  • Downloads: 14,577 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.4 LATEST 23 Nov 2026 No rules fired
0.4.3 18 Oct 2026 No rules fired

No rules fired in 0.4.4

Findings

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

README

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

toml-rs

A High-Performance TOML v1.0.0 / v1.1.0 parser for Python written in Rust

Features

  • The fastest TOML parser in Python (see benchmarks)

  • Drop-in compatibility with most tomllib use cases (see below)

Installation

pip install toml-rs
uv pip install toml-rs
poetry add toml-rs

Examples

import tomllib
from pprint import pprint

import toml_rs

toml = """\
title = "TOML Example"

[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00

[database]
enabled = true
ports = [ 8000, 8001, 8002 ]
data = [ ["delta", "phi"], [3.14] ]
temp_targets = { cpu = 79.5, case = 72.0 }

[servers]
[servers.alpha]
ip = "10.0.0.1"
role = "frontend"
[servers.beta]
ip = "10.0.0.2"
role = "backend"
"""

tomllib_loads = tomllib.loads(toml)
toml_rs_loads = toml_rs.loads(toml)
toml_rs_dumps = toml_rs.dumps(toml_rs_loads)

assert tomllib_loads == toml_rs_loads

print("toml_rs.loads:")
pprint(toml_rs_loads)
print("toml_rs.dumps:")
print(toml_rs_dumps)

Differences with tomllib

  1. More understandable errors
import tomllib

t = """\
x = 1
y = 2
v = 
"""
print(tomllib.loads(t))
# tomllib.TOMLDecodeError: Invalid value (at line 3, column 5)
import toml_rs

t = """\
x = 1
y = 2
v = 
"""
print(toml_rs.loads(t))
# toml_rs.TOMLDecodeError: TOML parse error at line 3, column 5
#   |
# 3 | v = 
#   |     ^
# string values must be quoted, expected literal string
  1. Supports serialization like tomli-w (toml_rs.dumps and toml_rs.dump)
from pathlib import Path

import toml_rs

data = {
    "title": "TOML Example",
    "owner": {"name": "Alice", "age": 30},
}

print(toml_rs.dumps(data))

toml_rs.dump(data, Path("example.toml"))
# or `toml_rs.dump(data, "example.toml")`

Contributors

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 toml-rs

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

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

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

Vulnerability Insights

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

Frame 2085668439 (1)
Group 1261154229