uv add nimlang
Use Nim in a Python project with nothing but uv.
nimlang is a Python package that ships the Nim compiler in its wheels and compiles C through
zig cc from the ziglang package, so you need no system
Nim and no C compiler.
Status: early scaffold, not on PyPI yet. See docs/design.md for what works and what is planned.
Use Nim in your project
uv add nimlang
uv run nim c -r hello.nim # nim and nimble live in your venv
uv run nimlang add nimpy # tracked in [tool.nimlang] in pyproject.toml
uv run nimlang build-ext fast.nim # build a nimpy extension module next to fast.nim
uv run nimlang info # bundled Nim version and where everything lives
Ship Nim code in a Python package
[build-system]
requires = ["hatchling", "nimlang"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.nimlang]
extensions = ["src/mypkg/nimcore.nim"] # importable as mypkg.nimcore
binaries = ["src/mypkg/mytool.nim"] # installed as the `mytool` command
[tool.nimlang]
dependencies = ["nimpy"]
uv build produces a py3-none-<platform> wheel that works on every CPython 3 version.
On Linux it is manylinux-compliant out of the box, and NIMLANG_TARGET=aarch64-macos uv build
cross-builds for other platforms. See examples/hello-nim.
Building nimlang wheels
python scripts/make_wheels.py --nim-dist nim-2.2.6-linux_x64.tar.xz --platform-tag manylinux_2_17_x86_64
CI builds them for Linux (x86_64, aarch64), macOS (arm64, x86_64) and Windows x86_64, and
publishes to PyPI when a v* tag is pushed. For development without a bundled Nim, set
NIMLANG_NIM_HOME or put nim on PATH.
What's next: ROADMAP.md.
Metadata
Release files for nimlang 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nimlang-0.0.1.tar.gz | 31.2 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| nimlang-0.0.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| nimlang-0.0.1-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| nimlang-0.0.1-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| nimlang-0.0.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| nimlang-0.0.1-py3-none-macosx_10_13_x86_64.whl | Python 3 | none | macOS 10.13+ x86-64 | Details |
Total release size: 75.5 MB
Release files / nimlang-0.0.1.tar.gz
| Download URL | nimlang-0.0.1.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d59a07a24ad016986e9b9b79cc67ac0fbb51ffa3962ada2ace60d133ef4fa79
|
|
BLAKE2b-256 checksum How to use checksums |
40854c59a9ed88648565d94c56775eb9a05995f8f605827b611814a512229241
|
| 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 Oct 6, 2026.
Transparency logRelease files / nimlang-0.0.1-py3-none-win_amd64.whl
| Download URL | nimlang-0.0.1-py3-none-win_amd64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
85b5a588a84e4f309187a46d5d1953a4a69d19772e6d5443d9d6ae24984391ef
|
|
BLAKE2b-256 checksum How to use checksums |
f02c74984789361f9be76daa831c60d5aec2df213b03a64e297deab0520c3227
|
| 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 Oct 6, 2026.
Transparency logRelease files / nimlang-0.0.1-py3-none-manylinux_2_17_x86_64.whl
| Download URL | nimlang-0.0.1-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 13.0 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
4519c51f298fb0c4f3480ae0589e38706f1d2e3f8b6b833524b69a2fc8e5fbb6
|
|
BLAKE2b-256 checksum How to use checksums |
fe5505ca164c1ba130329fb1ff69e373901e1569e34679b73d19a82b3a9a25bf
|
| 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 Oct 6, 2026.
Transparency logRelease files / nimlang-0.0.1-py3-none-manylinux_2_17_aarch64.whl
| Download URL | nimlang-0.0.1-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 29.7 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
99ee3587f6cd194a1b87a86d716a6a3e3776a287e06d9c34afafebacb37b37a4
|
|
BLAKE2b-256 checksum How to use checksums |
4e4f96c02a0ceccdb1b48a20d19786343502bc116c271ae1cb5e6a880721afb7
|
| 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 Oct 6, 2026.
Transparency logRelease files / nimlang-0.0.1-py3-none-macosx_11_0_arm64.whl
| Download URL | nimlang-0.0.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
47e6714eacc49312a7db8926084baa74acea1c9df2a10d037cb8053ddc9c8542
|
|
BLAKE2b-256 checksum How to use checksums |
eaa58668a75cc41518f1fcd6288047b35a4ade459ece03e87623aa5048d721ae
|
| 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 Oct 6, 2026.
Transparency logRelease files / nimlang-0.0.1-py3-none-macosx_10_13_x86_64.whl
| Download URL | nimlang-0.0.1-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 7.8 MB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
fbb8b20e0c2320d84dd6e2ca453dcbfa480a3f17c28d27d67fd4d48671faa102
|
|
BLAKE2b-256 checksum How to use checksums |
0e4987af3acf7e74ef878f6cdd6afda536f636174dc3c47d9e751c7f1734a01d
|
| 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 Oct 6, 2026.
Transparency log