This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
mojo-pyformat v0.1.2
mojo-pyformat-public v0.1.2
Released: 2026-11-04 · Commit: d3e641f · Previous: v0.1.1
What it does
Python's format() for numbers in Mojo, with the same digits: {:.Nf}, thousands separators, g, e, and %, rounded on the double's exact binary value as CPython does.
Highlights
py_sumkeeps infinities like CPython; a width or precision that overflows raises instead of misformatting.- README has one install block and one example; a conda recipe ships the package.
Changes
Added
recipe.yaml: a conda package recipe.- CI, latest-release and license badges in the README.
Changed
- README: one install and quickstart block, one example.
Fixed
py_sumkeepsinflike CPython.- A width or precision that overflows raises an error.
Verified
| Check | Result |
|---|---|
ci-local at d3e641f: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 |
PASS |
Known limits
- As in v0.1.1.
Upgrade / run
uv sync # installs Mojo 1.2.0
Commits
d3e641ffix(release): pyproject.toml, recipe.yaml, uv.lock say 0.1.271c7742build: conda recipeab83ec8docs: one example, one install blocka6cf040docs: install and quickstart block0c9b45dfix(format): py_sum keeps inf like CPython; width/precision overflow raisescce527cfix(release): pyproject and uv.lock say 0.1.1, the version of the latest tag0e22c27docs: CI, latest-release and license badges