Skip to main content

JITX

Design complex circuit boards by writing simple code and streamline your existing design process.

Development setup

This repo uses mise for toolchain management and task running, with Hatch handling env creation and the Python matrix under the hood. The test suite runs against Python 3.12, 3.13, and 3.14, so all three interpreters need to be available locally.

Prerequisites

Install mise: https://mise.jdx.dev/getting-started.html

Bootstrap

From the repo root:

mise trust           # accept this repo's mise.toml
mise install         # installs Python 3.12/3.13/3.14, pipx, and Hatch
mise run setup       # creates the default dev env at .hatch/envs/default

After mise install, open a new shell (or run eval "$(mise hook-env)") so newly installed tools land on your PATH.

Common tasks

Day-to-day commands are exposed as mise tasks:

mise run test              # full 3.12/3.13/3.14 matrix
mise run check             # ruff format check + lint + pyright
mise run check:fix         # ruff format + lint --fix + pyright
mise run dev:link-jitxcore # editable-install sibling ../py-jitxcore for local co-dev
mise tasks                 # full list

Drop to Hatch directly when you need finer control (hatch test, hatch test --cover, hatch -e types shell, etc.).

Hatch environments

All envs are declared in pyproject.toml under [tool.hatch.envs.*]. Hatch creates them on demand under .hatch/envs/.

Env Purpose Typical invocation
default Interactive dev shell with the project installed editable. hatch shell, hatch run python -m jitx ...
hatch-test Unit-test runner; pytest + coverage pre-wired. Runs across the 3.12 / 3.13 / 3.14 matrix ([[tool.hatch.envs.test.matrix]]). hatch test, hatch test --all, hatch test --cover — wrapped by mise run test.
hatch-static-analysis Ruff-only env used by hatch fmt. Pinned to ruff==0.14.9. hatch fmt, hatch fmt --check — wrapped by mise run check / check:fix.
types Pyright + sphinx for type checking. Exposes the check and stats scripts. hatch run types:check, hatch run types:stats.
integration Opt-in slow tests under integration/tests/. Only pytest on top of the default deps — uses a single Python, not the matrix. hatch -e integration run test — wrapped by mise run integration:test.

Reserved env names (hatch-test, hatch-static-analysis) are what Hatch itself looks up when you call hatch test / hatch fmt. The others are arbitrary project envs.

Run hatch env show to see the full resolved env list with their dependencies, scripts, and matrix expansion. It's the quickest way to catch a silently-ignored typo in an env name ([tool.hatch.envs.hatch-tests] won't warn — it'll just never run).

Integration tests

The integration/ tree contains a real-launcher harness that drives the jitx-client binary against a tiny test project. It requires a sibling jitx-client checkout with a built build/bin/launcher.

mise run integration:setup   # verifies symlinks + materializes jitx.params
mise run integration:test    # spawns launcher, signs in if needed, runs pytest

The first run signs in to JITX with shared dev credentials from integration/tests/credentials.py and caches the license under integration/jitx_root/licenses/ (gitignored). Unit tests (mise run test) ignore integration/ and stay fast.

The CLI surface (python -m jitx ... plus the legacy direct entrypoints python -m jitx.run.dependencies and python -m jitx.vscode.config) is exercised by integration/tests/test_cli.py, which shells out to the in-tree CLI via the integration/tests/harness/cli.py helper. These cases don't need the launcher — they use --help, --dry, and tmp_path — so they run in a couple of seconds as part of mise run integration:test.

Command-line interface

Installing this package exposes a jitx console script. The same surface is also reachable via python -m jitx ... and, for the two subcommands whose logic lives in their own modules, via python -m jitx.run.dependencies and python -m jitx.vscode.config directly.

Command What it does
jitx design find [PATH...] Walks the given paths (or the resolved project) and lists every discoverable Design subclass.
jitx design build [DESIGN...] Builds designs identified by dotted name (pkg.module.DesignClass) or .py file path. --all builds every discoverable design; with no positional and no --all, the project is scanned and a design is auto-picked (single match) or chosen interactively. Connects to a running JITX launcher over websocket; pass --uri, --port, --socket, or --host to point at it, or --dry to skip the connection and just exercise instantiation + translation. --no-dependency-check skips the up-front PyPI cooldown check; --generate-config (with --all) additionally writes .vscode/launch.json and tasks.json for the resulting design list.
jitx design export [DESIGN] --to FORMAT Exports a loaded design to a CAD format (--to {kicad,altium,edx,xml,odb,step}) via the runtime. Same connection flags as build; the design must already be built/loaded.
jitx design bom {show,export} [DESIGN] show prints a design's bill of materials; export --to {xlsx,tsv} writes it to disk. Both query the runtime over websocket with the same connection flags as build.
jitx project dependencies <subcmd> Checks or upgrades declared Python dependencies against PyPI. check (the default when no subcommand is given) reports updates available within the declared constraints and is rate-limited via a .venv_sync_last cooldown file in cwd. upgrade applies those updates. Both surface packages where a newer release exists outside the declared constraint. Shared flags: --allow-prereleases (alias --pre) to consider pre-releases, --check-include-group NAME to include an optional-dependency group; upgrade also takes --editable-install to reinstall the current project in editable mode afterward.
jitx project layout <subcmd> Manages the on-disk shape of a JITX project. Subcommands: init scaffolds a new project (writes pyproject.toml, .gitignore, .vscode/{launch,tasks,settings}.json, and a Python package containing __init__.py + a sample main.py); pyproject, gitignore, settings, and vscode each (re)write a single slice. All commands take an optional PATH (default cwd), and most accept --force to overwrite existing files instead of skipping or smart-merging. Run jitx project layout --help for the full subcommand list.

The legacy top-level jitx find, jitx build, and jitx build-all remain callable for back-compat (CI scripts, VS Code launch configs) but are hidden from --help; jitx design find / jitx design build (with --all) are the documented home.

Two global flags apply to every subcommand:

  • --format {json,text} switches between machine-readable JSON output and the default human-readable tree format.
  • --logging {DEBUG,INFO,WARNING,ERROR,CRITICAL} sets the root log level (default INFO).

Run jitx --help or jitx <command> --help for the full per-command flag list.

Metadata

Release files for jitx 4.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jitx 4.4.1
File Size Uploaded Provenance Actions
jitx-4.4.1.tar.gz 445.7 kB With provenance Details for jitx-4.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jitx 4.4.1
File Interpreter ABI Platform Actions
jitx-4.4.1-py3-none-any.whl Python 3 none any Details for jitx-4.4.1-py3-none-any.whl

Total release size: 826.1 kB

Release files / jitx-4.4.1.tar.gz

Download URL jitx-4.4.1.tar.gz
Size 445.7 kB
Tags Source
SHA-256 checksum
How to use checksums
219fb775189f24718dfd611d4a3b7f9224ab004c38968984c1401c46f7e3877f
BLAKE2b-256 checksum
How to use checksums
c3f5ec6c63e4076d91cffe8f4342c7c5728bcab1133bae1f11dd2163dca9317e
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 15, 2026.

Transparency log

Release files / jitx-4.4.1-py3-none-any.whl

Download URL jitx-4.4.1-py3-none-any.whl
Size 380.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72346e4cc9b85db9b667404aed2d3309f6412542874562c2f951e8869d9cb68f
BLAKE2b-256 checksum
How to use checksums
72ed76b4bc55cb39b611797931c0fb5e5053ff0f7870dc4459f7a1373226550d
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 15, 2026.

Transparency log

Security for jitx 4.4.1

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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jitx-4.4.1.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 15, 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