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

handcalcs

Latest version: v2.0.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: connorferster
5,816 Stars
453 Forks
7 Versions
20.0K Downloads
Python Repo language

Scan summary

handcalcs was last scanned on 27 Nov 2026 at version 2.0.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 2 were published within 4 days (24–27 Nov 2026).
  • Findings: No rules fired in version 2.0.1.
  • Downloads: 20,002 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.1 LATEST 27 Nov 2026 No rules fired
2.0.0 24 Nov 2026 No rules fired
2.0.0rc5 19 Nov 2026 No rules fired
2.0.0rc4 11 Nov 2026 Not shown
2.0.0rc3 6 Nov 2026 Not shown

No rules fired in 2.0.1

Findings

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

README

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

handcalcs turns ordinary Python calculation code into a formatted calculation: the symbolic formula, then the formula with every value substituted in, then the result. Because the substitution step is shown, anyone can check the calculation by hand.

The same calculation can go to different renderers: Markdown and LaTeX for Jupyter and documents, HTML for web pages, ASCII text for terminals and logs, a live, formula-based Excel worksheet and Word documents. You can restyle the built-in renderers or write your own.

handcalcs 2.0

handcalcs 2.0 is a rewrite around a parsed node tree and pluggable renderers. Most notebooks written for 1.x need only a few changes: import handcalcs instead of import handcalcs.render, and # hc: comment commands instead of %%render arguments.

  • Coming from handcalcs v1 lists everything that changed.
  • hc-migrate converts 1.x notebooks for you (pip install hc-migrate, then hc-migrate beam.ipynb --to ipynb), or turns notebooks into handcalcs 2 scripts (--to py).
  • To stay on 1.x for now, install "handcalcs<2".

Read the v2 documentation: getting started, every renderer, a cookbook of recipes, and how to customize or write a renderer.

Example

from math import sqrt   # hc: -i
## Hypotenuse of a right triangle
# Both sides are measured from the site drawings.
a = 2.5  # Side a, in m
b = 4.0  # Side b, in m
c = sqrt(a**2 + b**2)

In Jupyter this is typeset as maths. With the ASCII renderer it reads:

==============================
Hypotenuse of a right triangle
==============================

Both sides are measured from the site drawings.
a = 2.5 (Side a, in m)
b = 4 (Side b, in m)
c = √(a² + b²) = √(2.5² + 4²) = 4.717

Installing

pip install handcalcs

handcalcs needs Python 3.11 or newer. Extras add the Excel and Word renderers (handcalcs[excel], handcalcs[word]). See Installation.

Quick start

In Jupyter, import handcalcs once, then start any cell with %%render:

import handcalcs
%%render
a = 2
b = 3
c = 2*a + b/3

From a script, render a string or a .py file with any renderer:

import pathlib
from handcalcs import HandCalcs
from handcalcs.renderers import LatexRenderer

latex = HandCalcs(LatexRenderer())(pathlib.Path("beam.py"))

On a function, @handcalc(renderer) returns the result and the rendered calculation.

From the command line, render a script without writing any Python around it:

handcalcs beam.py                  # ASCII text in the terminal
handcalcs beam.py -o beam.docx     # a Word document (needs handcalcs[word])

python -m handcalcs is the same command. See Command line.

Renderers

Markdown (the Jupyter default), LaTeX, HTML, ASCII text, a live formula-based Excel workbook, and Word documents with native equations. Subclass one to change its look, or write your own. See Renderers.

Gotchas

Jupyter cells can run out of order. handcalcs looks up values in the notebook's namespace, so if you re-use variable names, a cell run out of order can render a beautiful but completely incorrect calculation. Run your notebook top to bottom before you rely on it.

If you use handcalcs for any kind of reporting that may become a legal document (e.g. design engineering calculations), it is up to YOU to ensure that the results are what you expect them to be. handcalcs is free and open-source software, and the author(s) are not responsible for incorrect calculations that result from its use.

That said, the whole point of showing the substitution is to make calculations easy to check by hand.

YouTube tutorials

These cover handcalcs 1.x; the ideas carry over.

License

Apache 2.0. See LICENSE.

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 handcalcs

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

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?

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

Frame 2085668439 (1)
Group 1261154229