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.0

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.0
File Size Uploaded Provenance Actions
circuitgen-1.0.0.tar.gz 199.0 kB Without provenance Details for circuitgen-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 364.5 kB

Release files / circuitgen-1.0.0.tar.gz

Download URL circuitgen-1.0.0.tar.gz
Size 199.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d95e35c721ebd769da31eedba06a5d8abb1634b3a3e3b6f6b1831f67abc49979
BLAKE2b-256 checksum
How to use checksums
c9fde1f27ffac927c61d5a32ca1ba96e0076f5904425b63d3ec0599caba974da
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.0-py3-none-any.whl

Download URL circuitgen-1.0.0-py3-none-any.whl
Size 165.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6ea578887dddf49d49e4d3189995edea0ac0124910cc0b1c34dec830f08dc7b
BLAKE2b-256 checksum
How to use checksums
a48e9b1608ee1bc3a596b2c4c85528897147b39a463cce143c1f0ee6b729e9e6
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.0

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