Skip to main content

calc_rs

A strongly typed, spreadsheet-style expression engine — currency, tonnage, percentages, dates, durations, and tables are distinct first-class types, not just decorated numbers. A Rust rewrite of Attica-oss/calc, usable as a CLI, a Rust library, or a Python extension module.

Install

CLI — a prebuilt binary, no Rust toolchain needed:

uv tool install calc-rust          # then run: calc_rs
uvx --from calc-rust calc_rs '$5.00 * 3'
pipx install calc-rust

or from source:

cargo install --path . --bin calc_rs

Python library (import calc_rs) — also ships the CLI as python -m calc_rs, for locked-down environments that block standalone executables but allow pip packages:

pip install calc-rs-lang
python -m calc_rs '$5.00 * 3'
python -m calc_rs                 # REPL

(The pure-Python front end has no line editing or syntax highlighting, but the same value formatting — tables and all — via calc_rs.render.)

CLI usage

For the full language reference — every type, operator, cast, and built-in function, with worked examples — see docs/USAGE.md. The quick tour below covers the basics.

calc_rs '$5.00 * 3'            # $15.00  (currency)
calc_rs                        # start the REPL
calc_rs --bare '1 + 2 * 3'     # 7        (value only, for scripts)
calc_rs path/to/script.calc    # run a file — same as any other interpreter
calc_rs run main.calc          # run a project: main.calc can `import` its sibling files

That last form is what makes an editor's "run current file" binding a one-liner — see docs/LSP.md for editor setup (diagnostics, completion, hover) and this repo's own .zed/tasks.json for a worked Zed example (task: spawn → "calc: run current file").

A project is just a directory of .calc files — import "lib/tax" as tax loads lib/tax.calc, relative to the entry file's folder, as the namespace tax: everything it declares (fn, struct, enum, impl, let const) is reached as tax::name. See Projects and modules and the runnable examples/project/.

Statements are separated by ; or a newline, so scripts read naturally:

calc_rs $'let price = $12.50\nlet qty = 3\nprice * qty'   # $37.50

let is a one-time declaration for the rest of the session — let x = 1 a second time is an error. let mut x = 1 allows reassigning x later, to the same type freely or a different type only via an explicit cast (let x = x::TEXT). See docs/USAGE.md for the full rule.

struct/enum declarations persist the same way fn does, and a type name (like every enum variant) must start uppercase:

struct Person { name: text, age: int }
enum Status { Open, Pending, Closed }

let ada = Person { name: "Ada", age: 30 }
ada::name                              # "Ada"     — field access
match Status::Open { Status::Open => "new", _ => "old" }

A struct can grow methods in a separate impl block — Self stands for the enclosing struct, and receiver::method(args) calls one:

impl Person {
  fn is_adult(self: Self) -> boolean = self::age >= 18
}
ada::is_adult()                        # TRUE

See docs/USAGE.md for field-access rules, nominal typing, the struct-literal/match-subject disambiguation, and impl blocks and methods.

:: is genuinely overloaded between a scalar cast (x::DATE) and field access (t::date, ada::name) — the target's case, as written, decides which every time, and a column/field name is itself always normalized to lower_snake_case ("Date of Service" → date_of_service), so a real field can never be shaped like an uppercase cast target in the first place. See docs/USAGE.md.

range(5) is [0, 1, 2, 3, 4]; range(start, stop[, step]) and the half-open 1..10 (== range(1, 10)) give integer sequences to iterate or pipe: range(1, 101) |> sum. 1..=10 is the inclusive counterpart ([1, .., 10]); single-quoted 'a'..'d'/'a'..='d' do the same over chars (['a','b','c']/['a','b','c','d']) — a char literal like 'a' is distinct from the double-quoted text "a".

x! is postfix factorial (5! == 120, ints 0..=20), and A @ B is real matrix multiplication (distinct from A * B's elementwise one): matrix(array(1,2),array(3,4)) @ matrix(array(5,6),array(7,8)) == [[19,22],[43,50]].

Conditionals

if COND then A else B is an expression — it has a value, so it nests and pipes like any other. It's sugar for the lazy if(COND, A, B) builtin: only the taken branch is evaluated, and both branches must have the same type.

if score >= 90 then "A"
else if score >= 80 then "B"
else "C"

match compares one value against a list of alternatives and usually needs a _ catch-all last:

match status {
  "OPEN"    => 1,
  "PENDING" => 2,
  _         => 0,
}

Every arm must share a type and each pattern must be comparable to the subject with =. The subject (status, here) is evaluated exactly once no matter how many patterns it's checked against; patterns past the one that matches are never evaluated. (if, then, else, match, and _ are ordinary identifiers everywhere else — if(...) is still the builtin call.)

_ can be left out only when every case is provably covered some other way — currently just a match over an enum with every variant named by a literal Enum::Variant pattern:

enum Status { Open, Closed }
match Status::Open { Status::Open => 1, Status::Closed => 0 }   // no '_' needed

See docs/USAGE.md for why _ is otherwise mandatory (there's no general exhaustiveness checking) and what does/doesn't count as covering a variant.

Text

split("a,b,c", ",")            # ["a", "b", "c"]
concat(" / ", false, parts)    # "a / b / c"    (also works on a column)
replace("2026-01-02", "-", "") # "20260102"
contains(s, "err")  ·  starts_with(s, "S")  ·  ends_with(s, ".csv")
trim("  x  ")  ·  pad_left("7", 3)  ·  pad_right("7", 3)

Double-quoted strings interpolate ${…}: "Hi ${name}, ${n + 1} rows". Each ${expr} is cast to text; write a literal ${ as \${. The expression can hold balanced braces ("${match n { 1 => 10, _ => 0 }}") but not its own " — use concat(...) for that.

Sequences

map / filter / reduce / any / all / reverse work on an array or a column. Their expression argument is row-scoped like a table verb's, with [_] bound to the current element (and [acc] to the running total in reduce):

range(1, 11)
  |> filter([_] % 2 == 0)     # [2, 4, 6, 8, 10]
  |> map([_] * [_])           # [4, 16, 36, 64, 100]
  |> reduce(0, [acc] + [_])   # 220

any(scores, [_] < 50)         # is anyone failing?

map and filter return a plain array; reduce returns whatever its starting value's type is, and its expression must match that type. Equality is = (or ==); % and // stay integer when both operands are integers. sort works on arrays/columns too, ascending or sort(arr, "desc").

range(start, ∞) (or start..∞) gives a lazy sequence instead — nothing computed until take() asks for it. map/filter chain onto it without ever materializing an intermediate array:

1..∞ |> map(|x| x * 2) |> filter(|x| x % 3 == 0) |> take(5)   # [6, 12, 18, 24, 30]

Closure params in that position (|x|) take their type from the sequence and can't carry an annotation — same rule as [_]. reduce/any/all/ sort don't accept a lazy sequence yet; take() it into an array first.

Standard library

import "name" as name brings a bundled module of ordinary calc fns into scope as a namespace — math (clamp/lerp/sign), stats (mean/median/variance/stdev/zscore), finance (npv/fv/pv/ pmt), and calendar (is_weekend/next_business_day/fiscal_quarter). import "stats" exposing mean, median pulls just those names in unqualified; a bare import "stats" still works but is deprecated.

import "stats" as stats
import "finance" as finance

stats::median(scores)
scores |> stats::mean
finance::npv(0.08, cashflows)

See docs/USAGE.md for every function's signature — and its source, stdlib/*.calc, if you want to see map/filter/reduce used for real.

Prelude

fn and let definitions persist across a REPL session but not between them. To keep a library of helpers, put them in a .calc file: ~/.config/calc_rs/prelude.calc is loaded automatically, or pass --prelude FILE (--no-prelude skips it). It applies to one-shot runs too.

# ~/.config/calc_rs/prelude.calc
fn age(dob: date) -> int = today()::YEAR - dob::YEAR
let vat = 20%
calc_rs 'age(1990-06-15)'          # 35
calc_rs --prelude team.calc 'headcount |> avg'

The REPL is a plain line editor with live syntax highlighting. A newline inside an expression is insignificant (1 +⏎2 is 3), and the prompt keeps reading while a line has an open (/[ or ends on an operator — so multi-line table(...) / sort(filter(...)) just work, with each continuation line auto-indented to its bracket depth. Press Enter on a blank line twice to force-submit anyway and let the parser point at whatever's unbalanced. ↑/↓ recall previous input.

REPL commands start with : so they never shadow your own names — :help, :vars (what's bound), :clear, :reset (forget every variable), :quit (or Ctrl-D). A trailing ; on an expression hides its value and shows only its type.

Tab completes function names, plus the variables and fns you've defined this session (sel⇥ → select; several matches fill in as far as they agree). Once you open a call, a dimmed signature trails the cursor — round( → x: number, digits: int = 0) — shrinking as you fill in arguments.

Editor support

calc_rs --lsp runs the same binary as a Language Server (diagnostics, completion, hover) — cargo install --path ., then see docs/LSP.md for editor wiring.

Tables

Tables are ordinary values — build, edit, query, and persist them with functions, in the REPL or one-shot:

table("item:text, qty:int, price:currency")   # empty, typed
column("day", "Mon", "Tue")                    # a named column
table(column("x", 1, 2), column("y", 3, 4))    # from columns
table(Item, rows)                # from an array of Item rows, in one pass

append(t, "Bolt", 250, $0.08)     # add a row      (type-checked)
append(t, Item { item: "Bolt", qty: 250, price: $0.08 })   # or the whole row as a struct
extend(t, "total", [qty] * [price])   # add a computed column
setcell(t, 0, "qty", 5)           # replace one cell
droprow(t, 2)  ·  rename(t, "price", "unit_price")

select(t, "item", "total")  ·  filter(t, [qty] > 100)
sort(t, [total], "desc")  ·  groupby(t, "item", "total", "sum")
lookup(t, "port", ports, "code", "name")   # add a matched column

open("sales.json")                # read a JSON workbench file
save(sort(open("sales.json"), [total], "desc"), "ranked.json")

load("shipments.csv")             # infer every column's type from the file
load("shipments.csv", "date:date, port:text, box:container, amount:currency")

load with no schema infers one when the script is checked — dates, $-amounts, %, numbers, booleans, else text; empty cells make a column optional (int?) — so the table is still statically typed. calc_rs schema shipments.csv prints that schema as a type alias to paste in and lock down. With a schema, load casts every cell to its type. A bad cell doesn't become text — it's reported with its line, column, raw value, and the reason, and load fails:

LoadSchemaError: shipments.csv: 2 problem(s):
  row 45, column "date": "2026-13-01" is not a valid date.
  row 184, column "box": Invalid container check digit: expected 6, got 0.

A declared struct works in place of the schema string, for both table() and load() — write the shape once, reuse it everywhere that shape recurs, rather than retyping the same "name:type, ..." string every time:

struct Shipment { date: date, port: text, box: container, amount: currency }

table(Shipment)                     # an empty table of that shape
load("jan.csv", Shipment)           # and the same shape for every file
load("feb.csv", Shipment)

Each verb returns a new table, so they compose. [col] inside filter / sort / extend refers to that column in the current row.

The |> operator threads a value into the next call's first argument — x |> f(a) is f(x, a) — so a pipeline reads top-to-bottom instead of inside-out. In the REPL a line that opens with |> continues from the last result (|> f runs _ |> f), so you can grow a pipeline one line at a time:

open("sales.json")
  |> filter([region] == "EU")
  |> extend("net", [gross] - [tax])
  |> groupby("region", "net", "sum")
  |> sort([sum_net], "desc")
  |> save("eu_by_region.json")

Python usage

import calc_rs

calc_rs.evaluate("$5.00 * 3")          # Currency($15.00)
calc_rs.evaluate("1 + 2 * 3")          # 7
calc_rs.check("$5.00 * 3")             # 'currency'  (no evaluation)

calc = calc_rs.Calculator()
calc.set("price", calc_rs.Currency("12.50"))
calc.eval("let qty = 3")
calc.eval("price * qty")               # Currency($37.50)
calc.get("qty")                        # 3

Currency, tonnage, percent, duration, and complex results come back as dedicated classes — Currency/Tonnage/Percent expose .amount, Duration exposes .months/.days/.seconds, Complex exposes .real/.imag. Numbers, text, booleans, and dates/times come back as native Python types. The wheel ships a type stub and py.typed.

Rust library

[dependencies]
calc_rs = { git = "https://github.com/Attica-oss/calc_rs" }

Everything the common cases need is re-exported at the crate root (or grab it in one line with use calc_rs::prelude::*):

use calc_rs::prelude::*;

// one-shot: an expression or a full `let x = 5; x + 1` script
let out = evaluate("$5.00 * 3")?;
assert_eq!(out.to_string(), "$15.00");
assert_eq!(out.ty.to_string(), "currency");

// a session that remembers variables and `_`, like the REPL
let mut calc = Calculator::new();
calc.eval("let price = $12.50")?;
calc.eval("let qty = 3")?;
assert_eq!(calc.eval("price * qty")?.to_string(), "$37.50");

// type-check without evaluating
assert_eq!(calc.check("price * qty")?.to_string(), "currency");

evaluate and Calculator::eval return an Evaluated — value (a Value), ty (the inferred Type), bindings (every let the script made), assigned, and used_vars. For a custom function registry, drop to calc_rs::run_script(source, vars, functions).

Notebook

A marimo notebook backed by this engine lives in notebook/, replicating the expression-editor and table-builder workflow of the original Python project's notebook:

pip install -e '.[notebook]'
maturin develop --release
marimo edit notebook/calc_notebook.py

Development

cargo test                     # engine tests
maturin develop --release      # build + install the Python extension

Changelog

0.3.0

Implements the amended language proposal. See docs/USAGE.md for everything below in full.

Syntax and modules

  • Infix and, or and not, short-circuiting; and()/or()/not() still work.
  • x in collection over ranges (d in 2026-01-01..=2026-03-31), arrays and columns.
  • Constants: let const tax_rate = 15% (or const …), visible inside fn bodies and allowed in modules.
  • Namespaced imports: import "stats" as stats then stats::mean(…), and import "stats" exposing mean, median. Declaration order no longer matters.

Types and functions

  • Optional and result types: int?, decimal | error, with error(message), try, x is T narrowing and is T name => match arms. parse_int/parse_decimal/parse_date return T | error.
  • do … end function bodies, and requires preconditions (ConstraintError).
  • Table (table{customer: text, ..}), struct and enum parameter types, and type Name = … aliases.
  • Generic functions: for any T where T supports add, plus cast(value, T). stats::mean now works on decimal, currency and tonnage.
  • Default parameters, many T variadic parameters, and recursion (up to 1,000 nested calls).

Data

  • load("sales.csv") infers the schema when the script is checked. It also takes partial schemas ("code:text, ..") and T? columns. schema_of(path) explains each column's type, and calc_rs schema sales.csv prints the schema as a type alias to paste in.
  • sum/avg/min/max skip blanks in optional columns.
  • New bundled modules: regex and shipping.

Fixes

  • Comparing an int with a decimal now compares their values: 0.0 = 0 is true and 5 < 2.0 is false.

Upgrading

  • A bare import "stats" still works but warns. Switch to import "stats" as stats, or use exposing for the names you want unqualified.
  • The container literal MSCU1234566 still works but warns. Write shipping::container("MSCU1234566") or "MSCU1234566"::CONTAINER instead.
  • const and try are now reserved words.
  • Declarations run before a script's other statements, and a module no longer sees the functions of the script that imports it.

0.2.1

  • Multi-file projects: calc_rs run and user modules, so a project can span more than one .calc file.
  • load()'s CSV import no longer rebuilds the whole built-in function registry for each cell of a tonnage/currency/duration/percent column, which makes a large import roughly 2x faster.
  • Fix: a // comment on its own indented line is now lexed as a comment, not floor division.
  • New example: examples/ops_2026_summary.calc, a multi-key groupby() + lookup() report ported from a spreadsheet QUERY().
  • CI: build and test on every push and PR, across Linux, Windows and macOS.

Earlier releases are listed on GitHub Releases.

License

MIT — see LICENSE.

Metadata

Release files for calc-rs-lang 0.3.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 calc-rs-lang 0.3.0
File Size Uploaded Provenance Actions
calc_rs_lang-0.3.0.tar.gz 418.3 kB With provenance Details for calc_rs_lang-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for calc-rs-lang 0.3.0
File Actions
calc_rs_lang-0.3.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for calc_rs_lang-0.3.0-cp310-abi3-win_amd64.whl
calc_rs_lang-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for calc_rs_lang-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
calc_rs_lang-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for calc_rs_lang-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
calc_rs_lang-0.3.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for calc_rs_lang-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
calc_rs_lang-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for calc_rs_lang-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 10.1 MB

Release files / calc_rs_lang-0.3.0.tar.gz

Download URL calc_rs_lang-0.3.0.tar.gz
Size 418.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a03489519e0d60ce362f2b506830515f0860b6ab69647c3baf8af060e9b7adf0
BLAKE2b-256 checksum
How to use checksums
7f4ee3190df354e481b5e279c32d90fe9d154d6ef4844c48f2c0979a66ddf027
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release files / calc_rs_lang-0.3.0-cp310-abi3-win_amd64.whl

Download URL calc_rs_lang-0.3.0-cp310-abi3-win_amd64.whl
Size 1.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c502602f9f831e5f59687486a0a67ba1e9ab796a693e3ea2468132d0289555e7
BLAKE2b-256 checksum
How to use checksums
b1b19df42a4a00bef04f7cc2524370da07fb943e6734eb664cf5f982e4b4780e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release files / calc_rs_lang-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL calc_rs_lang-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
2a40787d67f776eb1b22bddcb3657c8bbfdf2d3c2e26eb1e7712eb846de0a47e
BLAKE2b-256 checksum
How to use checksums
593af35d6d0ec006b64a0070e4321b6ccee1883b5d49065e3fe142d410b8565e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release files / calc_rs_lang-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL calc_rs_lang-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 2.1 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d8571cf93482b69ee762a252b1f36533b60a07ad1dd0d32831a8f50c4941451f
BLAKE2b-256 checksum
How to use checksums
d33718c99585acc74bf6265e80cfc7d98d5f823f5fbebb1d916267cc81d343a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release files / calc_rs_lang-0.3.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL calc_rs_lang-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Size 1.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8f519f8edf20a63c349e5b295913633a0f40bd2c07996baedac29c12103483fe
BLAKE2b-256 checksum
How to use checksums
d47b87124e4d2c56a8806b5c55ffecb01f32c0b5db62533ac2f5ac61bbb70209
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release files / calc_rs_lang-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL calc_rs_lang-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 1.9 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6dd7d6cb055de55a60c7c211f916d095fa48430d248d584f08e178e50b9288b9
BLAKE2b-256 checksum
How to use checksums
c71fbfcb41286cf9ec3d9548ef6b5e016cc6630e264147247c4dbf5394fda9e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Security for calc-rs-lang 0.3.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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for calc_rs_lang-0.3.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 Sep 29, 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