Registry / data / circt
library1.149.0pypypiunverified

CIRCT (Circuit IR Compilers and Tools) Python bindings for interacting with MLIR-based hardware compilation tools. Current version 1.145.1. Released roughly monthly.

pip install circt
INSTALL
IMPORT
SIG · CIRCT
C
circt
datapythonv1.149.0
Install
5.4s avg
Import
70ms
Disk
122MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.149.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 4s
py 3.11
✕ build_error
✓ 4.5s
py 3.12
✕ build_error
✕ build_error
py 3.13
✕ build_error
✓ 7.2s
py 3.9
✕ build_error
✓ 5.8s
122MB installed
● package 122MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

circt
import circt
import circt.ir
Submodules are accessed via circt.ir, circt.dialect, etc., not direct import.
Module
from circt.ir import Module
from circt import Module
Module is in circt.ir, not top-level.

Create and print an MLIR module using CIRCT's IR bindings.

import circt from circt.ir import Context, Location, Module with Context() as ctx: loc = Location.unknown(ctx) module = Module.parse(ctx, ''' module { func.func @main() -> i32 { %0 = arith.constant 42 : i32 return %0 : i32 } } ''') print(module)
circt-opt --version
Debug
Known issues
breakingCIRCT uses MLIR's Python bindings with breaking changes across versions. Ensure circt version matches the MLIR version used.
fix
Pin circt version in requirements.txt and check with MLIR version.
affects: >=1.0
deprecatedThe 'circt.support' module is deprecated; use 'circt.ir' directly.
fix
Replace imports from circt.support with circt.ir.
affects: >=1.20
gotchaContext creation is mandatory before any IR operations; forgetting leads to cryptic errors.
fix
Always use 'with circt.ir.Context() as ctx:' block.
affects: all
Upgrade
Version history
1.149.0latest on PyPI · released May 30, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
circt — pip install circt · libregistry