Skip to main content

CircuitGen
Generate circuit schematics from text descriptions or netlists.

GitHub Documentation PyPI

Overview

CircuitGen is a Python library and CLI for generating circuit schematics from text descriptions or netlists.

Battery, resistor, and LED schematic generated with CircuitGen

Features

  • Natural Language Generation

    Generate schematics from written circuit descriptions using your preferred AI provider.

  • Automatic Layout and Routing

    Place components and route wires automatically from a netlist.

  • Interactive CLI

    Generate, render, and validate circuits directly from your terminal.

  • Offline Rendering

    Render existing netlists without an API key or internet connection.

  • Flexible Export

    Save schematics as SVG, PNG, or PDF with customizable appearance.

Quickstart

Python library

pip install circuitgen

CLI

pip install circuitgen
circuit

If the CLI fails to start or behaves unexpectedly, run python -m circuitgen doctor to check your setup.

Python example

from circuitgen import generate

generate(
    "A 9 V battery connected in series with a 360 Ω resistor and a red LED.",
    provider="YOUR_PROVIDER",  # Replace with your provider.
    model="YOUR_MODEL_ID",     # Replace with a model available to your key.
    api_key="YOUR_API_KEY",    # Replace with your provider's API key.
    output="circuit.svg"
)

Requires a configured API key.

AI output can be wrong or invalid. Choose a model suited to your task and review generated circuits.

Command-line interface

CircuitGen interactive command-line interface

Documentation

Explore the documentation for installation guides, usage examples, and technical references.

Get Started API Reference Help

License

Released under the MIT License.

Metadata

Release files for circuitgen 1.0.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 circuitgen 1.0.1
File Size Uploaded Provenance Actions
circuitgen-1.0.1.tar.gz 199.6 kB Without provenance Details for circuitgen-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 365.1 kB

Release files / circuitgen-1.0.1.tar.gz

Download URL circuitgen-1.0.1.tar.gz
Size 199.6 kB
Tags Source
SHA-256 checksum
How to use checksums
be0ce81d20ada6fde70ff8f50ee09a433a75b528ed99f2fd438bab624ee03205
BLAKE2b-256 checksum
How to use checksums
02ff874c0b8b96be12f6d06f39bb5c5caeed07433509a2610131470454e3b7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / circuitgen-1.0.1-py3-none-any.whl

Download URL circuitgen-1.0.1-py3-none-any.whl
Size 165.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8cf249b06256dd7572e8c409f3835399decdb7844ba69d1d88932a666c0c901
BLAKE2b-256 checksum
How to use checksums
be0ff3406a479d6a60bd49478abe1e543429c55d116a4bb72221f746719bf43b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for circuitgen 1.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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