The algorithm is the interesting part. The scaffolding around it — C library, Python bindings, CMake, tests, and packaging — is the same boilerplate every project needs and nobody wants to write again.
just-makeit new
Generates everything, tested and passing, so you can start on the algorithm immediately.
A complete C library and Python extension — both tested and passing — before
you write a line of your algorithm. Fill in step() and ship.
Get it¶
install
Pick a method. Each one gets you just-makeit and its build dependencies.
jbx is the recommended one, the same line on every platform; without jbx
yet, getting jbx is one line first.
Run in a project's root, it installs into that project's .venv; anywhere else, if jm is not found in a new shell, run jbx update-path once.
A project's root is a directory holding pyproject.toml or
just-makeit.toml: there jm lives in the project's venv, and jbx puts
it on this shell's PATH at once. Anywhere else it goes into a per-user
venv that survives a reboot; on Linux and macOS jbx runs the curl
installer, which links jm into ~/.local/bin, beside jbx, and says so
if that directory is not on your PATH. From Windows PowerShell it runs
the Windows installer in the window itself, so jm is on its PATH at
once.
From PowerShell, without jbx:
jm goes into its own venv, on this window's PATH; the compiler is
Visual Studio's clang-cl. See Building on Windows.
Note
install-deps installs cmake, a C compiler, pkg-config and, on Linux,
patchelf (auditwheel needs it to repair a wheel) through your system
package manager (only when one of them is missing),
then numpy and just-makeit into a Python venv. The curl installer does the
same, and also activates the venv in your shell; just-makeit install-deps
prints the source <venv>/bin/activate line to run. In a project's root
the venv is that project's .venv; anywhere else it is a per-user venv
that survives a reboot (just-makeit install-deps --help names it). To
put it elsewhere, append the path to any of the commands above — e.g.
. <(curl -fsSL …/install.sh) ~/my-venv. Both take
--check to report what is missing without installing anything; the curl
installer also takes --force to reinstall just-makeit.
Info
The installer picks the package manager from your platform — on Linux,
from the ID in /etc/os-release:
| Platform | Package manager | Distros (ID) |
|---|---|---|
| Linux | apt | ubuntu, debian, linuxmint, pop |
| Linux | dnf | fedora, rhel, centos, rocky, almalinux |
| Linux | pacman | arch, manjaro, endeavouros |
| Linux | zypper | opensuse*, sles |
| Linux | apk | alpine |
| macOS | Homebrew | — |
On any other distro it installs no system packages and names the missing ones for you to install yourself.
Next steps¶
| Goal | Page |
|---|---|
| Scaffold → implement → test loop | Workflows |
| All generated file layouts | Artifacts |
| Tour every feature in one project | Feature tour |
| Runnable bundled examples | Examples |
| Generated C and Python API reference | Workflows → Project layout & API |
| Command options | Commands → Scaffold |
Requirements¶
- Python 3.9+
- CMake ≥ 3.16
- A C99 compiler: GCC or Clang, or on Windows clang-cl — see Does it work on Windows?
- NumPy (runtime, for generated projects)
Authors¶
Matthew T. Hunter, Ph.D. and Claude Code