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

maccha

Latest version: v0.1.1

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: darhnoel
0 Stars
0 Forks
2 Versions
252 Downloads
Rust Repo language

Scan summary

maccha was last scanned on 1 Dec 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 2 days (30 Nov and 1 Dec 2026).
  • Findings: No rules fired in version 0.1.1.
  • Downloads: 252 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 1 Dec 2026 No rules fired
0.1.0 30 Nov 2026 No rules fired

No rules fired in 0.1.1

Findings

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

README

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

maccha

Render Mermaid diagrams to SVG or PNG from Python. The renderer is written in Rust and compiled into the package: no browser, no Node.js, no other Python dependencies.

pip install maccha

It supports Python 3.9 and newer. One wheel per platform (Linux, macOS and Windows) serves every Python version.

Use it

import maccha

svg = maccha.render_svg("flowchart LR; A-->B-->C")            # str
png = maccha.render_png("flowchart LR; A-->B-->C", scale=2)   # bytes
dark = maccha.render_png("flowchart LR; A-->B", theme="dark", background="#1e1e1e")

open("out.svg", "w", encoding="utf-8").write(svg)
open("out.png", "wb").write(png)

Every argument after the diagram source is keyword-only:

Argument Applies to Meaning
theme both None (default), "default", "dark", "forest", "neutral" or "modern". Like mmdr -t: None leaves the theme to config["theme"], then to the built-in default; a name wins over config.
config both A dict like the JSON file given to mmdr -c (theme, themeVariables, flowchart, ...). A diagram's own %%{init}%% wins over it.
fonts both A maccha.Fonts(system=True, files=[], dirs=[], data=[]) to add fonts, or to ignore the system's (system=False)
strict_fonts both Raise RenderError if some text has no font that covers it
scale PNG Pixels per SVG unit; default 2.0
background PNG A hex color: "#ffffff" (#rgb, #rrggbb or #rrggbbaa; "#00000000" is transparent). Names such as "white" raise RenderError. Default is the theme's background.

For the same diagram, render_svg returns exactly what mmdr -e svg writes, and render_png(src, scale=1.0) what mmdr -e png writes.

Errors and warnings

try:
    maccha.render_svg("flowchart LR; A--")
except maccha.MermaidSyntaxError as e:    # a ValueError
    print(e.line, e.col, e.message)          # 1-based; col is 0 if unknown
  • MermaidSyntaxError: the diagram is not valid. It has line, col and message.
  • RenderError: any other failure, such as strict_fonts=True with missing glyphs.
  • MissingGlyphWarning: a UserWarning raised through warnings.warn when some text has no font that covers it.

The GIL is released while a diagram renders, so threads can render in parallel.

Fonts

A Noto Sans Khmer font (SIL Open Font License 1.1) is built in, so Khmer text renders with no font installed. For Japanese, Chinese, Korean or Thai text, the machine needs a font that covers it, or pass one with Fonts(files=[...]).

SVGs name their fonts but do not embed them; PNGs are drawn with the fonts that were measured.

Links

MIT license. The bundled font's license is included in the wheel.

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 maccha

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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?

Copy of Template Design OX Blog (1)
Research

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

Frame 2085668439 (1)
Group 1261154229