Skip to content

just-makeit

CI Docs PyPI Python C99 C++11 MSVC ABI jbx

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.

just-makeit new my_project --object my_object just-makeit: creating project 'my_project'   create native/inc/my_project/my_object/my_object_core.h create native/src/my_object/my_object_core.c create native/src/my_object/my_object_ext.c create native/tests/test_my_object_core.c create src/my_project/my_object.pyi create src/my_project/tests/test_my_object.py create CMakeLists.txt Makefile pyproject.toml …   Done! cd my_project && make && make test   cd my_project && make && make test [ 27%] Building C object ...core.c.o [ 72%] Linking C shared library ... [100%] Linking C shared module my_object.so [100%] Built target my_object   1/1 Test #1: test_my_object_core ... Passed 0.00 sec 100% tests passed, 0 tests failed out of 1   test_create ... ok test_step_runs ... ok test_steps_shape_dtype ... ok -------------------------------------------- Ran 8 tests in 0.026s OK

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.

jbx just-makeit:install

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.

. <(curl -fsSL https://just-buildit.github.io/just-makeit/install.sh)
pip install just-makeit && just-makeit install-deps [path]
uv tool install just-makeit && just-makeit install-deps [path]

From PowerShell, without jbx:

irm https://just-buildit.github.io/just-makeit/install.ps1 | iex

jm goes into its own venv, on this window's PATH; the compiler is Visual Studio's clang-cl. See Building on Windows.

docker run --rm -it ghcr.io/just-buildit/jm-examples-linux:latest

No install needed - the container prints a welcome message with everything you need:

  • pre-built example projects in ~/examples/
  • commands to browse or re-run them
  • a quickstart for your own project
. <(curl -fsSL https://just-buildit.github.io/just-makeit/install.sh) ok Python 3.12 ok cmake 4.2.3 (already installed) ok C compiler (/usr/bin/gcc) (already installed) ok pkg-config (/usr/bin/pkg-config) (already installed) ok patchelf (/usr/bin/patchelf) (already installed) --> just-makeit (~/.local/share/just-makeit/venv) ==> Setting up venv at ~/.local/share/just-makeit/venv ✓ ok numpy 2.4.6 ok just-makeit 0.140.1   ==> Venv activated — just-makeit is ready:   just-makeit new my_project --object my_object

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